mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
vscode: simpify
This commit is contained in:
parent
6441988d84
commit
fd709c0c04
1 changed files with 1 additions and 5 deletions
|
@ -101,14 +101,10 @@ class HintsUpdater {
|
||||||
clearHints() {
|
clearHints() {
|
||||||
for (const file of this.sourceFiles) {
|
for (const file of this.sourceFiles) {
|
||||||
file.inlaysRequest?.cancel();
|
file.inlaysRequest?.cancel();
|
||||||
this.renderHints(file, []);
|
file.renderHints([], this.client.protocol2CodeConverter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private renderHints(file: RustSourceFile, hints: ra.InlayHint[]) {
|
|
||||||
file.renderHints(hints, this.client.protocol2CodeConverter);
|
|
||||||
}
|
|
||||||
|
|
||||||
refreshRustDocument(document: RustTextDocument) {
|
refreshRustDocument(document: RustTextDocument) {
|
||||||
if (!this.enabled) return;
|
if (!this.enabled) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue