Skip to content

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented Oct 17, 2025

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

  • changing language server configuration
  • changing oxlint configuration

@github-actions github-actions bot added A-editor Area - Editor and Language Server C-performance Category - Solution not expected to change functional behavior, only performance labels Oct 17, 2025
Copy link
Member Author

Sysix commented Oct 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.

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 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.

@graphite-app graphite-app bot changed the base branch from 10-17-perf_language_server_avoid_greating_hashmap_in_backend_did_change_configuration_ to graphite-base/14737 October 17, 2025 19:54
@graphite-app graphite-app bot force-pushed the graphite-base/14737 branch from 9b59141 to 22ee19f Compare October 17, 2025 19:59
@graphite-app graphite-app bot force-pushed the 10-17-perf_language_server_return_diagnostic_when_relinting_all_files branch from 6df681a to 90402d5 Compare October 17, 2025 19:59
@graphite-app graphite-app bot changed the base branch from graphite-base/14737 to main October 17, 2025 20:00
@graphite-app graphite-app bot force-pushed the 10-17-perf_language_server_return_diagnostic_when_relinting_all_files branch from 90402d5 to 26ca6a2 Compare October 17, 2025 20:00
@Sysix Sysix force-pushed the 10-17-perf_language_server_return_diagnostic_when_relinting_all_files branch from 26ca6a2 to 3f7a0fc Compare October 17, 2025 20:14
@Sysix Sysix marked this pull request as ready for review October 17, 2025 20:14
@Sysix Sysix requested a review from camc314 as a code owner October 17, 2025 20:14
@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label Oct 17, 2025
Copy link
Contributor

camc314 commented Oct 17, 2025

Merge activity

…14737)

When relinting the files, the `PossibleFixContent` is not relevant for the processes.
These are:
- changing language server configuration
- changing oxlint configuration
@graphite-app graphite-app bot force-pushed the 10-17-perf_language_server_return_diagnostic_when_relinting_all_files branch from 3f7a0fc to df48416 Compare October 17, 2025 20:18
@graphite-app graphite-app bot merged commit df48416 into main Oct 17, 2025
21 checks passed
@graphite-app graphite-app bot deleted the 10-17-perf_language_server_return_diagnostic_when_relinting_all_files branch October 17, 2025 20:22
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label Oct 17, 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-performance Category - Solution not expected to change functional behavior, only performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants