Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.5.1
-
None
Description
I found some issues when connecting the QML language server to the LSP client of VS 2022. I'm attaching a short screencap video of each issue, as well as a log of messages exchanged between server and client.
Connection
Issue #1
Deleting a space will trigger the completion pop-up. This could inadvertently cause unwanted text to be inserted while typing.
1.qmllsp.log.txt
![](/images/icons/link_attachment_7.gif)
Issue #2
No completion options for known properties (e.g. anchors).
2.qmllsp.log.txt
![](/images/icons/link_attachment_7.gif)
Issue #3
Symbols recognized by the language server are nevertheless not offered as completion options.
In the example below, when starting to type a function name, while it is incomplete it's marked as an error, and then correctly recognized when the name is fully typed. However, at no point is the function name offered as a completion option.
3.qmllsp.log.txt
![](/images/icons/link_attachment_7.gif)
Issue #4
Incorrect list of members for an imported type.
4.qmllsp.log.txt
![](/images/icons/link_attachment_7.gif)
Issue #5
List of members of "well-known" types are correctly shown, but there's no completion options for structured properties (i.e. members with members). (Likely related to/the same as issue #2.)
5.qmllsp.log.txt
![](/images/icons/link_attachment_7.gif)
Attachments
Issue Links
- depends on
-
QTBUG-119839 qmlls: invalid completions after dots
-
- Closed
-
- is covered by
-
QTBUG-113727 qmlls: improve Code completion using new QQmlLSUtils stuff
-
- Closed
-