Skip to content

All completion items are shown as snippets #992

Closed
@yoshi1123

Description

@yoshi1123

Describe the bug
The language server seems to send "insertTextFormat": 2 for all completion items, in a response to 'textDocument/completion' requests.

For example,

    "response": {
        "id": 20,
        "jsonrpc": "2.0",
        "result": {
            "items": [
                {
                    "label": "true",
                    "sortText": "0002",
                    "kind": 14,
                    "insertTextFormat": 2
                },

insertTextFormat should be set to '1' because '2' is for snippets (https://microsoft.github.io/language-server-protocol/specifications/specification-3-17/#insertTextFormat). Thus the client might display all completions as snippets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions