diff options
author | veetaha <[email protected]> | 2020-03-31 18:29:07 +0100 |
---|---|---|
committer | veetaha <[email protected]> | 2020-03-31 18:29:07 +0100 |
commit | 90cc8cc52897293f3c27acbd981d9c751b542f2e (patch) | |
tree | 06c23da5c1d38aff2b3c8b7b1205e4a091ac9d1b /editors | |
parent | f3612b7024e5828bdd37fb6d39c1b4ebe989e819 (diff) | |
parent | 3b09768ebcd7ea6523c58c92e32198ae5b18e11c (diff) |
vscode: small refactor
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/src/commands/syntax_tree.ts | 2 |
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 | } |