Skip to content

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

Merged
merged 1 commit into from
Dec 5, 2022

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Nov 24, 2022

This updates the definitions of the client and server capabilities to match LSP spec version 3.17.

@ahoppen ahoppen requested a review from benlangmuir as a code owner November 24, 2022 18:13

public init(openClose: Bool? = true,
change: TextDocumentSyncKind? = .incremental,
willSave: Bool? = true,
willSaveWaitUntil: Bool? = false,
Copy link
Contributor

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

From LSP 3.17 - textDocument/willSaveWaitUntil

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahoppen ahoppen force-pushed the ahoppen/update-capabilities branch from fa7ab55 to 86df3dd Compare November 29, 2022 11:30
@ahoppen
Copy link
Member Author

ahoppen commented Dec 1, 2022

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/update-capabilities branch from 86df3dd to ece67c7 Compare December 2, 2022 09:00
@ahoppen
Copy link
Member Author

ahoppen commented Dec 2, 2022

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/update-capabilities branch from ece67c7 to 5c77130 Compare December 2, 2022 09:14
@ahoppen
Copy link
Member Author

ahoppen commented Dec 2, 2022

@swift-ci Please test

@ahoppen ahoppen force-pushed the ahoppen/update-capabilities branch from 5c77130 to 975286d Compare December 4, 2022 18:57
@ahoppen
Copy link
Member Author

ahoppen commented Dec 4, 2022

@swift-ci Please test

@ahoppen ahoppen merged commit 14ea6f6 into swiftlang:main Dec 5, 2022
@ahoppen ahoppen deleted the ahoppen/update-capabilities branch December 5, 2022 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants