Skip to content

Commit ab55817

Browse files
authored
(perf) lower diagnostics delay
Set to 750 for better feedback while not flooding the request queue #1132
1 parent 7760021 commit ab55817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/language-server/src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ export function startServer(options?: LSOptions) {
371371

372372
docManager.on(
373373
'documentChange',
374-
debounceThrottle(async (document: Document) => diagnosticsManager.update(document), 1000)
374+
debounceThrottle(async (document: Document) => diagnosticsManager.update(document), 750)
375375
);
376376
docManager.on('documentClose', (document: Document) =>
377377
diagnosticsManager.removeDiagnostics(document)

0 commit comments

Comments
 (0)