mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
vscode: simpify
This commit is contained in:
@@ -101,14 +101,10 @@ class HintsUpdater {
|
||||
clearHints() {
|
||||
for (const file of this.sourceFiles) {
|
||||
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) {
|
||||
if (!this.enabled) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user