Skip to content

Commit 1c2a9b3

Browse files
committed
fix initial diagnostic pull
1 parent 84be496 commit 1c2a9b3

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/cm/lsp/diagnostics.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ export function lspDiagnosticsAutoSyncExtension(
378378
class {
379379
pending: ReturnType<typeof setTimeout> | null = null;
380380

381+
constructor() {
382+
schedulePullDiagnostics(client, uri, 0);
383+
}
384+
381385
update(update: ViewUpdate): void {
382386
if (!update.docChanged) return;
383387
if (this.pending != null) clearTimeout(this.pending);

src/cm/lsp/workspace.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export default class AcodeWorkspace extends Workspace {
8787
this.#fileMap.set(uri, file);
8888
this.files.push(file);
8989
this.client.didOpen(file);
90-
schedulePullDiagnostics(this.client, uri, 0);
9190
}
9291
file.views.add(view);
9392
return file;

0 commit comments

Comments
 (0)