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

Implement Signature Help for qmlls

    XMLWordPrintable

Details

    Description

      The language server protocol provides support for completions/help when writing a function call.

      This is provided through https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_signatureHelp

      Currently we offer completions or functions that have the signature, but the better solution would be to provide signature help.

       

      See https://git.qt.io/famohame/lsp-description for a high level overview of qmlls.

      This jumps a bit in the deep end, but all things for it are available.

      There are two options (when either "(" or "," trigger it):

      1) wait to have the current document fully parsed (smaller but less responsive, and fails I for example parens are not yet closed)

      2) try to recover the argument and function with an ad-hoc parsing to the left of the cursor (going back), and look that function up

      Option 2 is more robust and faster, so I would go with that...

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            fawzi Fawzi Mohamed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes