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.
2 parents ea3897b + 1d5af89 commit 6291e1dCopy full SHA for 6291e1d
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