Thank you for the bug report
Bug description
When a workspace is in a folder inside another workspace, errors/warnings/etc are shown on the enclosing workspace.
Steps to reproduce
$ flutter create project
$ cd project
$ flutter create subproject
M-x lsp-workspace-folders-add path/to/project
M-x lsp-workspace-folders-add path/to/project/subproject
Visit project/lib/main.dart
Visit project/subproject/lib/main.dart
Write some garbage in that buffer.
M-x lsp-treemacs-error-list
subproject is shown as having errors.
But project also shows the errors of subproject.
The problem also affects breadcrumbs (try the recipe but creating subproject in project/lib and see project/lib/main.dart marked as having errors.)
Expected behavior
The diagnostics of subproject are not added to project.
Which Language Server did you use?
The problem seems unrelated to the language server used. I've observed the problem with a flutter project inside another project that uses a different language server.
OS
Linux
Error callstack
Anything else?
No response
Thank you for the bug report
lsp-moderelated packages.M-x lsp-start-plainBug description
When a workspace is in a folder inside another workspace, errors/warnings/etc are shown on the enclosing workspace.
Steps to reproduce
Visit project/lib/main.dart
Visit project/subproject/lib/main.dart
Write some garbage in that buffer.
subprojectis shown as having errors.But
projectalso shows the errors ofsubproject.The problem also affects breadcrumbs (try the recipe but creating
subprojectin project/lib and see project/lib/main.dart marked as having errors.)Expected behavior
The diagnostics of
subprojectare not added toproject.Which Language Server did you use?
The problem seems unrelated to the language server used. I've observed the problem with a flutter project inside another project that uses a different language server.
OS
Linux
Error callstack
Anything else?
No response