Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 6097b37

Browse files
committed
rust-analyzer: Listen for new "roots scanned" message to indicate progress
As of rust-lang/rust-analyzer@dad1333b48c3, the "rustAnalyzer/startup" message has been replaced with a functionally-equivalent[1] "rustAnalyzer/roots scanned" message. Since we're still looking for the old message, which is no longer sent at all, our progress UI hangs on "Starting" when using rust-analyzer. Listen for the new message instead to fix this. [1] At least, it appears functionally equivalent to me, but I don't know anything about rust-analyzer's internals so I could be wrong.
1 parent 22998c2 commit 6097b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rustAnalyzer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ async function setupGlobalProgress(client: lc.LanguageClient) {
285285
if (newState === lc.State.Starting) {
286286
await client.onReady();
287287

288-
const RUST_ANALYZER_PROGRESS = 'rustAnalyzer/startup';
288+
const RUST_ANALYZER_PROGRESS = 'rustAnalyzer/roots scanned';
289289
client.onProgress(
290290
new lc.ProgressType<{
291291
kind: 'begin' | 'report' | 'end';

0 commit comments

Comments
 (0)