Skip to content

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Nov 18, 2025

No description provided.

Copy link
Member Author

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

@Sysix Sysix changed the title refacor(vscode): run js language server with node refactor(vscode): run js language server with node Nov 18, 2025
@github-actions github-actions bot added the C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior label Nov 18, 2025
@Sysix Sysix requested a review from Copilot November 18, 2025 16:39
Copilot finished reviewing on behalf of Sysix November 18, 2025 16:41
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 to automatically detect and run JavaScript-based language servers with node, replacing the previous test-only environment variable approach.

Key changes:

  • Replaces OXLINT_LSP_TEST environment variable check with automatic detection of JavaScript files based on extension
  • Removes security validation that enforces binary filename contains oxc_language_server or oxlint
  • Updates test configuration to remove the now-unnecessary environment variable

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
editors/vscode/client/linter.ts Implements automatic detection of JavaScript files (.js, .cjs, .mjs) to determine whether to run with node instead of checking environment variable
editors/vscode/client/PathValidator.ts Removes filename validation check that required binary name to contain oxc_language_server or oxlint
editors/vscode/tests/PathValidator.spec.ts Removes test cases for the deleted filename validation logic
editors/vscode/.vscode-test.mjs Removes OXLINT_LSP_TEST environment variable that is no longer used

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

@Sysix Sysix marked this pull request as ready for review November 18, 2025 17:12
@Sysix Sysix requested a review from camc314 as a code owner November 18, 2025 17:12
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
@graphite-app graphite-app bot changed the base branch from 11-17-refactor_vscode_split_lsp_releated_code_to_linter.ts_ to graphite-base/15845 November 19, 2025 17:08
Copy link
Contributor

camc314 commented Nov 19, 2025

Merge activity

  • Nov 19, 5:08 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 19, 5:08 PM UTC: camc314 added this pull request to the Graphite merge queue.
  • Nov 19, 5:14 PM UTC: The Graphite merge queue couldn't merge this PR because it had merge conflicts.
  • Nov 19, 5:16 PM UTC: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 19, 5:20 PM UTC: Sysix added this pull request to the Graphite merge queue.
  • Nov 19, 5:24 PM UTC: Merged by the Graphite merge queue.

@graphite-app graphite-app bot changed the base branch from graphite-base/15845 to main November 19, 2025 17:14
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
@Sysix Sysix force-pushed the 11-18-refacor_vscode_run_js_language_server_with_node_ branch from 784a33c to 266e0b0 Compare November 19, 2025 17:15
@Sysix Sysix added the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
@graphite-app graphite-app bot force-pushed the 11-18-refacor_vscode_run_js_language_server_with_node_ branch from 266e0b0 to 0146b4c Compare November 19, 2025 17:20
@graphite-app graphite-app bot merged commit 0146b4c into main Nov 19, 2025
19 checks passed
@graphite-app graphite-app bot deleted the 11-18-refacor_vscode_run_js_language_server_with_node_ branch November 19, 2025 17:24
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Nov 19, 2025
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