Closed
Description
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.