Skip to content

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Aug 5, 2022

When r-a starts up, it starts switching the workspace before all vfs
events have been processed which causes us to switch workspace multiple
times until all vfs changes have been processed. This scales with the
size of the project and its dependencies. If workspace files from
dependencies as well as the sysroot get loaded, we shouldn't switch
the workspace as those have no impact on the project workspace.

When r-a starts up, it starts switching the workspace before all vfs
events have been processed which causes us to switch workspace multiple
times until all vfs changes have been processed. This scales with the
size of the project and its dependencies. If workspace files from
dependencies as well as the sysroot get loaded, we shouldn't switch
the workspace as those have no impact on the project workspace.
@Veykril
Copy link
Member Author

Veykril commented Aug 5, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Aug 5, 2022

📌 Commit 6a17372 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Aug 5, 2022

⌛ Testing commit 6a17372 with merge 3792720...

@bors
Copy link
Contributor

bors commented Aug 5, 2022

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 3792720 to master...

@bors bors merged commit 3792720 into rust-lang:master Aug 5, 2022
@Veykril Veykril deleted the switch-workspace branch August 5, 2022 13:25
Veykril added a commit to Veykril/rust-analyzer that referenced this pull request Aug 16, 2022
Veykril added a commit to Veykril/rust-analyzer that referenced this pull request Aug 16, 2022
bors added a commit that referenced this pull request Aug 16, 2022
Revert #12947, trigger workspace switches on all structure changes again

Closes #13029
Veykril added a commit to Veykril/rust-analyzer that referenced this pull request Aug 16, 2022
Veykril added a commit to Veykril/rust-analyzer that referenced this pull request Aug 16, 2022
bors added a commit that referenced this pull request Aug 16, 2022
Revert #12947, trigger workspace switches on all structure changes again

Closes #13029
pocket7878 pushed a commit to pocket7878/rust-analyzer that referenced this pull request Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants