vscode: simpify

This commit is contained in:
Veetaha 2020-02-29 21:10:16 +02:00
parent 6441988d84
commit fd709c0c04

View File

@ -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;