You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered: