Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

Completion item insertTextFormat property should be only 1 or 2 #342

Closed
johngalambos opened this issue Nov 3, 2018 · 1 comment
Closed
Assignees
Labels
bug Something isn't working feature: intellisense
Milestone

Comments

@johngalambos
Copy link

Completion items are returning with insertTextFormat properties set to 0. For example:

        {
          "label": "and",
          "kind": 14,
          "detail": null,
          "documentation": null,
          "sortText": "1",
          "filterText": null,
          "preselect": null,
          "insertText": "and",
          "insertTextFormat": 0,
          "textEdit": null,
          "additionalTextEdits": null,
          "commitCharacters": null,
          "command": null,
          "data": null,
          "_kind": "keyword",
          "_values": null
        }

The spec is here (Search for InsertTextFormat). According to the spec, insertTextFormat be either 1 or 2.

I believe this is the last item that should get completion working in vim/neovim via https://github.com/autozimu/LanguageClient-neovim.

Thank you for this tool!

@jakebailey
Copy link
Member

Thank you again for taking the time to find this, @johngalambos! 😃

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working feature: intellisense
Projects
None yet
Development

No branches or pull requests

3 participants