mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 13:48:50 +00:00
vscode: apply review nits
This commit is contained in:
parent
e86bfc0995
commit
3b09768ebc
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