-
-
Notifications
You must be signed in to change notification settings - Fork 725
refactor(vscode): run js language server with node
#15845
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): run js language server with node
#15845
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. |
nodenode
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 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_TESTenvironment variable check with automatic detection of JavaScript files based on extension - Removes security validation that enforces binary filename contains
oxc_language_serveroroxlint - 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.
Merge activity
|
784a33c to
266e0b0
Compare
266e0b0 to
0146b4c
Compare

No description provided.