Uploaded image for project: 'Swift'
  1. Swift
  2. SR-10809

Honour ClientCapabilities for code completion snippets

    XMLWordPrintable

    Details

      Description

      We currently always return code-completion items with snippets. However, this is supposed to be configurable by the client/editor using

      TextDocumentClientCapabilities
      > completion
      > completionItem
      > snippetSupport
      

      https://microsoft.github.io/language-server-protocol/specification#initialize

      We should honour that capability, and when the editor does not support snippets, strip them out before returning the completion.

        Attachments

          Activity

            People

            Assignee:
            rockbruno Bruno Rocha
            Reporter:
            benlangmuir Ben Langmuir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: