about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/commands/syntax_tree.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/syntax_tree.ts b/editors/code/src/commands/syntax_tree.ts
index eba5111930b..91d97f9c4f2 100644
--- a/editors/code/src/commands/syntax_tree.ts
+++ b/editors/code/src/commands/syntax_tree.ts
@@ -98,7 +98,7 @@ class AstInspector implements vscode.HoverProvider, Disposable {
     }
 
     private onDidCloseTextDocument(doc: vscode.TextDocument) {
-        if (!!this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) {
+        if (this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) {
             this.setRustEditor(undefined);
         }
     }