mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Style fixes
This commit is contained in:
parent
332799d914
commit
8a23bec2cd
4 changed files with 31 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue