Skip to content

Allow specification of SourceKitLSPOptions in the initialize request and look for SourceKit-LSP options in $XDG_CONFIG_HOME/sourcekit-lsp #1534

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 2 commits into from
Jun 28, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jun 28, 2024

Specifying SourceKitLSPOptions in the initialize request allows editors to provide UI elements to toggle SourceKit-LSP options.

The reverse-DNS notation is macOS style and doesn’t feel at home on Linux.

ahoppen added 2 commits June 28, 2024 10:25
This allows editors to provide UI elements to toggle SourceKit-LSP options.
The reverse-DNS notation is macOS style and doesn’t feel at home on Linux.
@ahoppen ahoppen requested review from bnbarham and hamishknight June 28, 2024 08:26
@ahoppen
Copy link
Member Author

ahoppen commented Jun 28, 2024

@swift-ci Please test

@@ -200,6 +200,21 @@ public struct SourceKitLSPOptions: Sendable, Codable {
self.workDoneProgressDebounce = workDoneProgressDebounce
}

public init?(fromLSPAny lspAny: LSPAny?) throws {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this type to LSP so that clients can also construct it (though for that to actually be true we probably need to split LSP out of this repo, but still... seems like a reasonable place for it to live)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I started moving it to the LanguageServerProtocol module and then decided against it. I can’t really tell why but it didn’t feel at home there.

@ahoppen ahoppen merged commit 16e4f83 into swiftlang:main Jun 28, 2024
3 checks passed
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