aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorveetaha <[email protected]>2020-03-31 18:29:07 +0100
committerveetaha <[email protected]>2020-03-31 18:29:07 +0100
commit90cc8cc52897293f3c27acbd981d9c751b542f2e (patch)
tree06c23da5c1d38aff2b3c8b7b1205e4a091ac9d1b
parentf3612b7024e5828bdd37fb6d39c1b4ebe989e819 (diff)
parent3b09768ebcd7ea6523c58c92e32198ae5b18e11c (diff)
vscode: small refactor
-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 }