mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 15:54:15 +00:00
vscode: small refactor
This commit is contained in:
commit
90cc8cc528
@ -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 New Issue
Block a user