Skip to content

refactor(vscode): move restart & toggle lsp server to linter.ts#16080

Merged
graphite-app[bot] merged 1 commit intomainfrom
11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_
Nov 25, 2025
Merged

refactor(vscode): move restart & toggle lsp server to linter.ts#16080
graphite-app[bot] merged 1 commit intomainfrom
11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Nov 24, 2025

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

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels Nov 24, 2025
Copy link
Member Author

Sysix commented Nov 24, 2025


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • 0-merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

Copy link
Contributor

Copilot AI left a 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 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 restartServer and toggleEnable moved from extension.ts to linter.ts
  • Removed toggleClient and restartClient from the ToolInterface as they are now only used internally within LinterTool
  • 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.

@Sysix Sysix force-pushed the 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ branch from 444b911 to 20c1123 Compare November 25, 2025 00:06
@Sysix Sysix force-pushed the 11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_ branch from 410b208 to 21d8200 Compare November 25, 2025 00:06
@Sysix Sysix marked this pull request as ready for review November 25, 2025 00:23
@Sysix Sysix requested a review from camc314 as a code owner November 25, 2025 00:23
@Sysix Sysix force-pushed the 11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_ branch from 21d8200 to ca939c5 Compare November 25, 2025 01:04
@Sysix Sysix force-pushed the 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ branch from 20c1123 to 0e636f0 Compare November 25, 2025 01:04
@graphite-app graphite-app bot changed the base branch from 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ to graphite-base/16080 November 25, 2025 09:02
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
Copy link
Contributor

camc314 commented Nov 25, 2025

Merge activity

@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
@Sysix Sysix force-pushed the graphite-base/16080 branch from 0e636f0 to 5ccbd9e Compare November 25, 2025 11:04
@Sysix Sysix force-pushed the 11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_ branch from ca939c5 to 5a29274 Compare November 25, 2025 11:04
@Sysix Sysix changed the base branch from graphite-base/16080 to 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ November 25, 2025 11:04
@Sysix Sysix added the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
…6080)

Add separate commands for linter server restart and the future formatter server.
@graphite-app graphite-app bot force-pushed the 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ branch from 5ccbd9e to 4d56147 Compare November 25, 2025 11:14
@graphite-app graphite-app bot force-pushed the 11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_ branch from 5a29274 to 62fb4c4 Compare November 25, 2025 11:15
Base automatically changed from 11-24-chore_vscode_introduce_oxc.path.oxlint_and_deprecate_oxc.path.server_ to main November 25, 2025 11:19
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 25, 2025
@graphite-app graphite-app bot merged commit 62fb4c4 into main Nov 25, 2025
20 checks passed
@graphite-app graphite-app bot deleted the 11-24-refactor_vscode_move_restart_toggle_lsp_server_to_linter.ts_ branch November 25, 2025 11:20
taearls pushed a commit to taearls/oxc that referenced this pull request Dec 11, 2025
…c-project#16080)

Add separate commands for linter server restart and the future formatter server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-editor Area - Editor and Language Server C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants