-
Notifications
You must be signed in to change notification settings - Fork 314
Update capability definitions to LSP 3.17 #671
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
public init(openClose: Bool? = true, | ||
change: TextDocumentSyncKind? = .incremental, | ||
willSave: Bool? = true, | ||
willSaveWaitUntil: Bool? = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused about what happened here. These fields were specified in LSP 3.14, but removed in 3.15 from the interface declaration. But they're still mentioned on the request itself, e.g.
Server Capability:
- property name (optional): textDocumentSync.willSaveWaitUntil
- property type: boolean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out the spec has two definitions of TextDocumentSyncKind
:
- Without
change
and friends: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentSyncOptions - With
change
and friends (scroll down a little from the link): https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_didRename
Since VSCode still has the options (https://github.com/microsoft/vscode-languageserver-node/blob/f02ec883a68c6ee0e07a512c2114847f5f8c9d29/protocol/src/common/protocol.ts#L1697) let’s continue to include them.
fa7ab55
to
86df3dd
Compare
@swift-ci Please test |
86df3dd
to
ece67c7
Compare
@swift-ci Please test |
ece67c7
to
5c77130
Compare
@swift-ci Please test |
5c77130
to
975286d
Compare
@swift-ci Please test |
This updates the definitions of the client and server capabilities to match LSP spec version 3.17.