Style fixes

This commit is contained in:
Kirill Bulatov 2020-03-21 00:01:47 +02:00
parent 332799d914
commit 8a23bec2cd
4 changed files with 31 additions and 20 deletions

View file

@ -18,6 +18,8 @@ export function activateInlayHints(ctx: Ctx) {
return this.dispose();
}
if (!this.updater) this.updater = new HintsUpdater(ctx);
this.updater.syncCacheAndRenderHints();
},
dispose() {
this.updater?.dispose();
@ -124,7 +126,7 @@ class HintsUpdater implements Disposable {
this.syncCacheAndRenderHints();
}
private syncCacheAndRenderHints() {
public syncCacheAndRenderHints() {
// FIXME: make inlayHints request pass an array of files?
this.sourceFiles.forEach((file, uri) => this.fetchHints(file).then(hints => {
if (!hints) return;