Add pi-tool-display (compact tool rendering, adaptive diffs) + pi-lsp-extension (LSP diagnostics/hover/definitions) — vendored from npm 0.5.0 / 1.3.0
This commit is contained in:
18
extensions/pi-lsp-extension/src/shared/timing.ts
Normal file
18
extensions/pi-lsp-extension/src/shared/timing.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Shared timing constants for LSP operations.
|
||||
*/
|
||||
|
||||
/** Delay (ms) to wait for LSP to publish diagnostics after a file change */
|
||||
export const DIAGNOSTIC_SETTLE_DELAY_MS = 1500;
|
||||
|
||||
/** Delay (ms) to wait for a daemon socket to start listening after spawn */
|
||||
export const DAEMON_SOCKET_READY_DELAY_MS = 500;
|
||||
|
||||
/** Interval (ms) between retries when connecting to a daemon */
|
||||
export const DAEMON_RETRY_INTERVAL_MS = 5000;
|
||||
|
||||
/** Maximum number of retries when connecting to a daemon (5 min total at 5s intervals) */
|
||||
export const DAEMON_MAX_RETRIES = 60;
|
||||
|
||||
/** Delay (ms) to let LSP process a synthetic didChange before requesting completions */
|
||||
export const SYNTHETIC_DOT_SETTLE_DELAY_MS = 100;
|
||||
Reference in New Issue
Block a user