aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/commands')
-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 e443c5e54..996c7a716 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 {
98 } 98 }
99 99
100 private onDidCloseTextDocument(doc: vscode.TextDocument) { 100 private onDidCloseTextDocument(doc: vscode.TextDocument) {
101 if (!!this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) { 101 if (this.rustEditor && doc.uri.toString() === this.rustEditor.document.uri.toString()) {
102 this.setRustEditor(undefined); 102 this.setRustEditor(undefined);
103 } 103 }
104 } 104 }