protocol icon indicating copy to clipboard operation
protocol copied to clipboard

Error unmarshalling `ApplyEdit` response

Open dan1994 opened this issue 3 years ago • 0 comments

When testing against vscode, using client.ApplyEdit fails when unmarshalling the response. It looks like the response structure should be struct{Applied bool `json:"applied"`}, but it's unmarshalled directly into the boolean result. I was able to confirm this by creating my own client that implements a patched ApplyEdit. It's probably worth taking into account the other optional fields declared by the spec[1].

[1] https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#applyWorkspaceEditResult

dan1994 avatar Sep 09 '22 00:09 dan1994