-
-
Notifications
You must be signed in to change notification settings - Fork 714
perf(language_server): return Diagnostic when relinting all files
#14737
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
perf(language_server): return Diagnostic when relinting all files
#14737
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.
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 optimizes the language server’s relinting path by returning lightweight LSP Diagnostics instead of DiagnosticReport entries that include PossibleFixContent, which is unnecessary for relinting triggered by configuration changes.
- Change revalidate_diagnostics to return Vec<(String, Vec)> instead of ConcurrentHashMap<String, Vec>
- Update callers to handle the new return type without cloning Diagnostic values
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| crates/oxc_language_server/src/worker.rs | Adjusted method signatures and return types to use Vec<(String, Vec)> and removed ConcurrentHashMap usage. |
| crates/oxc_language_server/src/linter/server_linter.rs | Rewrote revalidate_diagnostics to build Vec<(String, Vec)> and map DiagnosticReport to Diagnostic. |
| crates/oxc_language_server/src/backend.rs | Simplified aggregation by extending vectors directly, avoiding Diagnostic clones. |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
9b59141 to
22ee19f
Compare
6df681a to
90402d5
Compare
90402d5 to
26ca6a2
Compare
26ca6a2 to
3f7a0fc
Compare
Merge activity
|
…14737) When relinting the files, the `PossibleFixContent` is not relevant for the processes. These are: - changing language server configuration - changing oxlint configuration
3f7a0fc to
df48416
Compare

When relinting the files, the
PossibleFixContentis not relevant for the processes.These are: