Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-118025

qmllsp: Issues with completion in VS 2022

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7
    • 6.5.1
    • QML: Tooling
    • None
    • Windows

    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

      init.qmllsp.log.txt

      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

      Issue #2

      No completion options for known properties (e.g. anchors).


      2.qmllsp.log.txt

      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

      Issue #4

      Incorrect list of members for an imported type.


      4.qmllsp.log.txt

      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

      Attachments

        1. 1.mp4
          2.05 MB
        2. 1.qmllsp.log.txt
          27 kB
        3. 2.mp4
          2.54 MB
        4. 2.qmllsp.log.txt
          24 kB
        5. 3.mp4
          4.80 MB
        6. 3.qmllsp.log.txt
          89 kB
        7. 4.mp4
          2.46 MB
        8. 4.qmllsp.log.txt
          49 kB
        9. 5.mp4
          4.38 MB
        10. 5.qmllsp.log.txt
          100 kB
        11. init.qmllsp.log.txt
          9 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              qtqmlteam Qt Qml Team User
              mecfc Miguel Costa
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes