refactor(vscode): move restart & toggle lsp server to linter.ts#16080
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.
Pull request overview
This PR refactors the VSCode extension by moving linter-specific command registrations (restartServer and toggleEnable) from the main extension file into the linter module itself. This improves code organization by co-locating commands with their implementations.
Key Changes
- Command registrations for
restartServerandtoggleEnablemoved fromextension.tstolinter.ts - Removed
toggleClientandrestartClientfrom theToolInterfaceas they are now only used internally withinLinterTool - Updated command enum ordering to group linter-specific commands together with clarifying comments
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
editors/vscode/client/extension.ts |
Removed restartServer and toggleEnable command registrations from the main extension activation |
editors/vscode/client/tools/linter.ts |
Added restartServer and toggleEnable command registrations within the linter's activate method |
editors/vscode/client/tools/ToolInterface.ts |
Removed toggleClient and restartClient method signatures from the interface |
editors/vscode/client/commands.ts |
Reordered command enum entries and added comment to group linter-specific commands |
editors/vscode/tests/commands.spec.ts |
Updated expected command order in test to match new registration order |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
444b911 to
20c1123
Compare
410b208 to
21d8200
Compare
21d8200 to
ca939c5
Compare
20c1123 to
0e636f0
Compare
Merge activity
|
0e636f0 to
5ccbd9e
Compare
ca939c5 to
5a29274
Compare
5ccbd9e to
4d56147
Compare
5a29274 to
62fb4c4
Compare
…c-project#16080) Add separate commands for linter server restart and the future formatter server.

Add separate commands for linter server restart and the future formatter server.