Closed RLovelett closed 6 years ago
Content-Type: application/vscode-jsonrpc; charset=utf8
Content-Length: 312
{"id":2,"result":[{"label":"(x: Int, y: String)","kind":4,"detail":"bar.Bar (x: Int, y: String)","insertTextFormat":2,"insertText":"x: {{1:Int}}, y: {{2:String}}","textEdit":{"range":{"start":{"character":12,"line":3},"end":{"character":12,"line":3}},"newText":"x: {{1:Int}}, y: {{2:String}}"}}],"jsonrpc":"2.0"}
Still does not work. 🤔
The GIF above exemplifies the issue. Notice when it injects the code
Bar(x: {{1:Int}}, y: {{2: String}})
that VSCode is not treating the arguments as tab stops.It used to do this. This might have regressed Adopt SnippetString API. Though as far as I can tell we do this already.
My best guess right now is that the LSP defines a property
insertTextFormat
which is of typeInsertTextFormat
. Currently this implementation of the LSP has no such property or type. I do not remember that being there when I originally implemented this.Current CompletionItem Sent