mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
vscode: small refactor
This commit is contained in:
commit
90cc8cc528
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue