aboutsummaryrefslogtreecommitdiff
path: root/editors/code/src/inlay_hints.ts
diff options
context:
space:
mode:
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r--editors/code/src/inlay_hints.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/editors/code/src/inlay_hints.ts b/editors/code/src/inlay_hints.ts
index 542d1f367..98663e0e3 100644
--- a/editors/code/src/inlay_hints.ts
+++ b/editors/code/src/inlay_hints.ts
@@ -18,6 +18,8 @@ export function activateInlayHints(ctx: Ctx) {
18 return this.dispose(); 18 return this.dispose();
19 } 19 }
20 if (!this.updater) this.updater = new HintsUpdater(ctx); 20 if (!this.updater) this.updater = new HintsUpdater(ctx);
21
22 this.updater.syncCacheAndRenderHints();
21 }, 23 },
22 dispose() { 24 dispose() {
23 this.updater?.dispose(); 25 this.updater?.dispose();
@@ -124,7 +126,7 @@ class HintsUpdater implements Disposable {
124 this.syncCacheAndRenderHints(); 126 this.syncCacheAndRenderHints();
125 } 127 }
126 128
127 private syncCacheAndRenderHints() { 129 public syncCacheAndRenderHints() {
128 // FIXME: make inlayHints request pass an array of files? 130 // FIXME: make inlayHints request pass an array of files?
129 this.sourceFiles.forEach((file, uri) => this.fetchHints(file).then(hints => { 131 this.sourceFiles.forEach((file, uri) => this.fetchHints(file).then(hints => {
130 if (!hints) return; 132 if (!hints) return;