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].
When testing against vscode, using
client.ApplyEdit
fails when unmarshalling the response. It looks like the response structure should bestruct{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 patchedApplyEdit
. 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