vscode: small refactor

This commit is contained in:
veetaha 2020-03-31 20:29:07 +03:00
commit 90cc8cc528

View file

@ -98,7 +98,7 @@ class AstInspector implements vscode.HoverProvider, Disposable {
} }
private onDidCloseTextDocument(doc: vscode.TextDocument) { 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); this.setRustEditor(undefined);
} }
} }