diff options
| author | Veetaha <gerzoh1@gmail.com> | 2020-02-29 21:10:16 +0200 |
|---|---|---|
| committer | Veetaha <gerzoh1@gmail.com> | 2020-03-07 14:08:35 +0200 |
| commit | fd709c0c0435f80c593a42e27ca14fcdc561379a (patch) | |
| tree | 671dd1070e122c9f8378be21a96148bad2b91090 /editors/code | |
| parent | 6441988d84cc1f9d347d72a48d2b67b19dcb8cc9 (diff) | |
| download | rust-fd709c0c0435f80c593a42e27ca14fcdc561379a.tar.gz rust-fd709c0c0435f80c593a42e27ca14fcdc561379a.zip | |
vscode: simpify
Diffstat (limited to 'editors/code')
| -rw-r--r-- | editors/code/src/inlay_hints.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts index bbe8f67ef58..ac07b2ea03c 100644 --- a/editors/code/src/inlay_hints.ts +++ b/editors/code/src/inlay_hints.ts @@ -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; |
