microsoft / language-server-protocol

Defines a common protocol for language servers.
https://microsoft.github.io/language-server-protocol/
Creative Commons Attribution 4.0 International
11.16k stars 785 forks source link

VsCode Supported codeAction json #1957

Closed MasonScarbro closed 3 months ago

MasonScarbro commented 3 months ago

Can Someone clarify what exactly the proper returned json would be??? Here is an example JSON that does NOT work: Content-Length: 281 {"result":[{"title":"Replace 'file' with 'somethingElse'","edit":{"changes":{"file:<someActualURI>.md":[{"range":{"start":{"line":1,"character":10},"end":{"line":1,"character":14}},"newText":"somethingElse"}]}},"command":null}],"jsonrpc":"2.0","id":22}