-
-
Notifications
You must be signed in to change notification settings - Fork 724
refactor(vscode): add WorkspaceConfig methods for different lsp tools
#15788
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
refactor(vscode): add WorkspaceConfig methods for different lsp tools
#15788
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
Pull Request Overview
This PR refactors the WorkspaceConfig class to support multiple language servers by splitting configuration into tool-specific methods. The toLanguageServerConfig() method now composes configs from toOxlintConfig() and toOxfmtConfig(), enabling the extension to provide different configurations for different LSP tools.
- Extracted formatting-related config into a separate
toOxfmtConfig()method - Refactored
toOxlintConfig()to exclude formatting config using TypeScript'sOmitutility type - Updated
toLanguageServerConfig()to merge both configs using spread syntax
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| client/WorkspaceConfig.ts | Split configuration into tool-specific methods (toOxlintConfig, toOxfmtConfig) and updated toLanguageServerConfig to compose them |
| tests/WorkspaceConfig.spec.ts | Added test coverage for the new toOxlintConfig and toOxfmtConfig methods |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bd99750 to
0d63181
Compare
0d63181 to
e70f0d3
Compare
Merge activity
|
…ls (#15788) In the future, the VSCode extension will call 2 language servers. Added a method to get different LSP configs for the different tools.
e70f0d3 to
985d48f
Compare

In the future, the VSCode extension will call 2 language servers.
Added a method to get different LSP configs for the different tools.