Skip to content

fix(lsp): stop enabling onlyAnalyzeProjectsWithOpenFiles by default - #541

Merged
sidlatau merged 1 commit into
mainfrom
fix/stop-only-analyze-open-files
Sep 25, 2026
Merged

sidlatau merged 1 commit into
mainfrom
fix/stop-only-analyze-open-files

Conversation

@sidlatau

Copy link
Copy Markdown
Collaborator
  • Stop sending onlyAnalyzeProjectsWithOpenFiles = true; dartls analyses the project at root_dir rather than rebuilding analysis roots on every open/close.
  • Drop a root_dir that resolves to $HOME or the filesystem root (e.g. a lone file under a dotfiles repo); without a root the server falls back to analysing the open files' packages.
  • README documents re-enabling the option via lsp.init_options.

Fixes #540

dartls now analyses the project at root_dir instead of rebuilding analysis
roots on every file open/close. A root that resolves to the home directory
or filesystem root is dropped so a lone file does not trigger analysis of
everything beneath it. The option can be re-enabled via lsp.init_options.

Fixes #540
@sidlatau
sidlatau merged commit d3254ee into main Sep 25, 2026
7 checks passed
@sidlatau
sidlatau deleted the fix/stop-only-analyze-open-files branch September 25, 2026 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop enabling onlyAnalyzeProjectsWithOpenFiles by default

1 participant