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:
19
extensions/pi-lsp-extension/src/shared/constants.ts
Normal file
19
extensions/pi-lsp-extension/src/shared/constants.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Shared constants — directories to skip, file size limits, etc.
|
||||
*
|
||||
* Used across code-overview, workspace-index, and search-engine.
|
||||
*/
|
||||
|
||||
/** Directories to always skip when walking the project tree */
|
||||
export const SKIP_DIRS = new Set([
|
||||
"node_modules", ".git", "build", "dist", "target", "out", ".next",
|
||||
"__pycache__", ".tox", ".venv", "venv", ".mypy_cache", ".pytest_cache",
|
||||
"vendor", ".gradle", ".idea", ".vscode", ".bemol", "env",
|
||||
"coverage", ".nyc_output", ".cache",
|
||||
]);
|
||||
|
||||
/** Max file size to parse (500KB) */
|
||||
export const MAX_FILE_SIZE = 500 * 1024;
|
||||
|
||||
/** Max files to index in the initial pass */
|
||||
export const MAX_INDEX_FILES = 5000;
|
||||
Reference in New Issue
Block a user