diff options
| author | Craig Jennings <c@cjennings.net> | 2026-04-26 19:40:22 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-04-26 19:40:22 -0500 |
| commit | 04d699f9cb68cfcfaf492d01b6ab88e5aca07d37 (patch) | |
| tree | fbf20ef59fcb03b534761ad398772587436858ce /docs | |
| parent | a702e4eb91d8f6e55cb9310c7c83e5b44c3a3e15 (diff) | |
| download | dotemacs-04d699f9cb68cfcfaf492d01b6ab88e5aca07d37.tar.gz dotemacs-04d699f9cb68cfcfaf492d01b6ab88e5aca07d37.zip | |
feat(lsp): add common build/cache dirs to file-watch ignore list
Extends `lsp-file-watch-ignored-directories' with thirteen build, cache, and tooling directories: `node_modules', `dist', `coverage', `target', `__pycache__', `.venv', `venv', `.pytest_cache', `.mypy_cache', `.ruff_cache', `test-results', `playwright-report', `tf/.terraform'. Uses `add-to-list', so lsp-mode's own defaults (`.git', `.svn', `.idea', etc.) stay in place.
Setting these in a project's `.dir-locals.el' doesn't work. lsp-mode reads `lsp-file-watch-ignored-directories' once at workspace init, from the global value, so a buffer-local override never reaches the watch list. I confirmed this today: in a Python buffer where dir-locals had applied, `M-: lsp-file-watch-ignored-directories' returned the lsp-mode default, not the project's overrides. Setting it globally is what works.
The goal is to push typical workspaces under `lsp-file-watch-threshold' (1000), so the "watch all files? (y or n)" prompt stops firing on every fresh LSP start.
Also added a forward defvar for `lsp-enable-remote' to silence the matching free-variable warning under `make compile'.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
