Skip to content

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Nov 17, 2025

This PR refactors the VSCode extension by extracting LSP-related functionality from extension.ts into a new linter.ts module, improving code organization and separation of concerns.

Key Changes:

  • Moved LSP client initialization, configuration, and lifecycle management from extension.ts to linter.ts
  • Created a new commands.ts file to centralize command constants
  • Simplified extension.ts to focus on extension-level orchestration by delegating to linter-specific functions

@github-actions github-actions bot added the A-editor Area - Editor and Language Server label Nov 17, 2025
Copy link
Member Author

Sysix commented Nov 17, 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.

@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Nov 17, 2025
@Sysix Sysix force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from 10e27ce to c922d13 Compare November 17, 2025 15:12
@Sysix Sysix force-pushed the 11-17-refactor_vscode_add_workspaceconfig_methods_for_different_lsp_tools branch from bd99750 to 0d63181 Compare November 18, 2025 12:12
@Sysix Sysix force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from c922d13 to df6d604 Compare November 18, 2025 12:12
@Sysix Sysix force-pushed the 11-17-refactor_vscode_add_workspaceconfig_methods_for_different_lsp_tools branch from 0d63181 to e70f0d3 Compare November 18, 2025 12:13
@Sysix Sysix force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from df6d604 to cc0ec55 Compare November 18, 2025 12:13
@graphite-app graphite-app bot changed the base branch from 11-17-refactor_vscode_add_workspaceconfig_methods_for_different_lsp_tools to graphite-base/15789 November 18, 2025 12:19
@graphite-app graphite-app bot force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from cf172c8 to 56be34f Compare November 18, 2025 12:25
@graphite-app graphite-app bot force-pushed the graphite-base/15789 branch from e70f0d3 to 985d48f Compare November 18, 2025 12:25
@graphite-app graphite-app bot changed the base branch from graphite-base/15789 to main November 18, 2025 12:25
@graphite-app graphite-app bot force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from 56be34f to f7ff45d Compare November 18, 2025 12:26
@Sysix Sysix force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch 2 times, most recently from 240f96d to e919504 Compare November 18, 2025 15:21
@Sysix Sysix requested a review from Copilot November 18, 2025 15:27
Copilot finished reviewing on behalf of Sysix November 18, 2025 15:28
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 extracting LSP-related functionality from extension.ts into a new linter.ts module, improving code organization and separation of concerns.

Key Changes:

  • Moved LSP client initialization, configuration, and lifecycle management from extension.ts to linter.ts
  • Created a new commands.ts file to centralize command constants
  • Simplified extension.ts to focus on extension-level orchestration by delegating to linter-specific functions

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
editors/vscode/client/linter.ts New file containing all LSP client logic, server initialization, status bar management, and configuration handlers
editors/vscode/client/extension.ts Simplified to orchestrate extension activation by delegating to linter functions
editors/vscode/client/commands.ts New file extracting command constants for better organization

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Sysix Sysix force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from e919504 to 7e3135f Compare November 18, 2025 15:34
@Sysix Sysix marked this pull request as ready for review November 18, 2025 16:11
@Sysix Sysix requested a review from camc314 as a code owner November 18, 2025 16:11
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
Copy link
Contributor

camc314 commented Nov 19, 2025

Merge activity

> This PR refactors the VSCode extension by extracting LSP-related functionality from extension.ts into a new linter.ts module, improving code organization and separation of concerns.
>
> Key Changes:
>
> - Moved LSP client initialization, configuration, and lifecycle management from extension.ts to linter.ts
> -  Created a new commands.ts file to centralize command constants
> -  Simplified extension.ts to focus on extension-level orchestration by delegating to linter-specific functions
@graphite-app graphite-app bot force-pushed the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch from 7e3135f to 05ca02f Compare November 19, 2025 17:08
@graphite-app graphite-app bot merged commit 05ca02f into main Nov 19, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ branch November 19, 2025 17:13
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
Copilot AI pushed a commit that referenced this pull request Nov 21, 2025
> This PR refactors the VSCode extension by extracting LSP-related functionality from extension.ts into a new linter.ts module, improving code organization and separation of concerns.
>
> Key Changes:
>
> - Moved LSP client initialization, configuration, and lifecycle management from extension.ts to linter.ts
> -  Created a new commands.ts file to centralize command constants
> -  Simplified extension.ts to focus on extension-level orchestration by delegating to linter-specific functions
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