Skip to content

refactor(language_server): remove OnceCell from WorkspaceWorker.root_uri#10898

Merged
graphite-app[bot] merged 1 commit intomainfrom
05-08-refactor_language_server_remove_oncecell_from_workspaceworker.root_uri_
May 8, 2025
Merged

refactor(language_server): remove OnceCell from WorkspaceWorker.root_uri#10898
graphite-app[bot] merged 1 commit intomainfrom
05-08-refactor_language_server_remove_oncecell_from_workspaceworker.root_uri_

Conversation

@Sysix
Copy link
Member

@Sysix Sysix commented May 8, 2025

The root_uri of a WorkspaceWorker will never change. I copied the OnceCell approach from the main.rs.
Now, I do not think this is really needed because the workers are Mutex locked behind Backend.workspace_workers.

Copy link
Member Author

Sysix commented May 8, 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 A-editor Area - Editor and Language Server C-cleanup Category - technical debt or refactoring. Solution not expected to change behavior labels May 8, 2025
@Sysix Sysix marked this pull request as ready for review May 8, 2025 14:07
@Sysix Sysix requested a review from camc314 as a code owner May 8, 2025 14:07
@codspeed-hq
Copy link

codspeed-hq bot commented May 8, 2025

CodSpeed Instrumentation Performance Report

Merging #10898 will not alter performance

Comparing 05-08-refactor_language_server_remove_oncecell_from_workspaceworker.root_uri_ (553ab5b) with main (00ffbc9)

Summary

✅ 36 untouched benchmarks

@camc314 camc314 added the 0-merge Merge with Graphite Merge Queue label May 8, 2025
Copy link
Contributor

camc314 commented May 8, 2025

Merge activity

…ot_uri` (#10898)

The root_uri of a `WorkspaceWorker` will never change. I copied the `OnceCell` approach from the `main.rs`.
Now, I do not think this is really needed because the workers are `Mutex` locked behind `Backend.workspace_workers`.
@graphite-app graphite-app bot force-pushed the 05-08-refactor_language_server_remove_oncecell_from_workspaceworker.root_uri_ branch from 516624b to 553ab5b Compare May 8, 2025 14:47
@graphite-app graphite-app bot merged commit 553ab5b into main May 8, 2025
28 checks passed
@graphite-app graphite-app bot deleted the 05-08-refactor_language_server_remove_oncecell_from_workspaceworker.root_uri_ branch May 8, 2025 14:55
@graphite-app graphite-app bot removed the 0-merge Merge with Graphite Merge Queue label May 8, 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.

2 participants