aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVeetaha <[email protected]>2020-02-29 19:10:16 +0000
committerVeetaha <[email protected]>2020-03-07 12:08:35 +0000
commitfd709c0c0435f80c593a42e27ca14fcdc561379a (patch)
tree671dd1070e122c9f8378be21a96148bad2b91090
parent6441988d84cc1f9d347d72a48d2b67b19dcb8cc9 (diff)
vscode: simpify
-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