aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editors/code/src/inlay_hints.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index bbe8f67ef..ac07b2ea0 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -101,14 +101,10 @@ class HintsUpdater {
101 clearHints() { 101 clearHints() {
102 for (const file of this.sourceFiles) { 102 for (const file of this.sourceFiles) {
103 file.inlaysRequest?.cancel(); 103 file.inlaysRequest?.cancel();
104 this.renderHints(file, []); 104 file.renderHints([], this.client.protocol2CodeConverter)
105 } 105 }
106 } 106 }
107 107
108 private renderHints(file: RustSourceFile, hints: ra.InlayHint[]) {
109 file.renderHints(hints, this.client.protocol2CodeConverter);
110 }
111
112 refreshRustDocument(document: RustTextDocument) { 108 refreshRustDocument(document: RustTextDocument) {
113 if (!this.enabled) return; 109 if (!this.enabled) return;
114 110