diff options
author | Kirill Bulatov <[email protected]> | 2020-03-20 22:01:47 +0000 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-03-30 11:39:14 +0100 |
commit | 8a23bec2cdd008ff04cb01cdcca1f379f53156a3 (patch) | |
tree | c1983eda59834d7abb76ef851d4c1995f9176785 /editors/code/src/inlay_hints.ts | |
parent | 332799d914bdd35740c25c27f5bac7e4b3cba6c7 (diff) |
Style fixes
Diffstat (limited to 'editors/code/src/inlay_hints.ts')
-rw-r--r-- | editors/code/src/inlay_hints.ts | 4 |
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; |