We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea3897b commit 1d5af89Copy full SHA for 1d5af89
src/tools/rust-analyzer/editors/code/src/ctx.ts
@@ -361,7 +361,14 @@ export class Ctx implements RustAnalyzerExtensionApi {
361
}
362
});
363
364
- vscode.workspace.onDidChangeTextDocument(async () => {
+ vscode.workspace.onDidChangeTextDocument(async (e) => {
365
+ if (
366
+ vscode.window.activeTextEditor?.document !== e.document ||
367
+ e.contentChanges.length === 0
368
+ ) {
369
+ return;
370
+ }
371
+
372
if (this.syntaxTreeView?.visible) {
373
await this.syntaxTreeProvider?.refresh();
374
0 commit comments