Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/compiler/src/server/serverlib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ export function createServer(
const signatureHelpUpdateManager = new UpdateManager<CompileResult | undefined>(
"signature-help",
log,
() => 0,
);

const compileService = createCompileService({
Expand Down
3 changes: 2 additions & 1 deletion packages/compiler/src/server/update-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export class UpdateManager<T = void> {
constructor(
private name: string,
log: (sl: ServerLog) => void,
getDelayCandidates?: () => number,
) {
this._log =
typeof process !== "undefined" &&
Expand All @@ -58,7 +59,7 @@ export class UpdateManager<T = void> {
return await this.#update(Array.from(updates.values()), arg);
},
() => (this.#isStarted ? "ready" : "pending"),
this.getAdaptiveDebounceDelay,
getDelayCandidates ?? this.getAdaptiveDebounceDelay,
this._log,
);
}
Expand Down
Loading