mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +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) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user