You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A recent change has caused error messages to no longer get highlighted in my project. After some fiddling (with help on Discord) I figured out that I had a "folder_exclude_patterns" set in my Project settings. This was for a subfolder that was added as a separate project folder:
As a result, errors reported by LSP-typescript and LSP-eslint within the my-project/frontend directory were being ignored and not rendered in my editor.
Note: I added the redundant frontend project folder a while ago because LSP-eslint needs the .eslintrc file to be found inside a project folder root. I then added the "folder_exclude_patterns" so I don't get duplicate entries in the ctrl+p file search.
Expected behavior
Errors should be reported for any folder listed in the project folders setting.
Environment (please complete the following information):
OS: Linus Mint 21.1
LSP: 1.21.0
Sublime Text: 4143
eslint, typescript (also pyright and a few others but not in this sub project)
The text was updated successfully, but these errors were encountered:
Oof... yeah that is a bug. The intention is to hide diagnostics (in the diagnostics panel and also the underline in the file if it were opened) for files which are not visible in the sidebar. For example third-party libraries which are added to "folder_exclude_patterns". I did not consider that you can add the same folder to the sidebar multiple times. Therefore
return"matches a pattern in folder_exclude_patterns"
is not a sufficient reason to hide a diagnostic. It should rather be something in the sense of "matches a file not visible in the sidebar". Unfortunately there is no ST API to check for that. So for a manual implementation of that, we need to compare all the folder paths included in the project file, to ensure that a folder hidden via "folder_exclude_patterns" is not also contained in another of the "folders" items.
Describe the bug
A recent change has caused error messages to no longer get highlighted in my project. After some fiddling (with help on Discord) I figured out that I had a
"folder_exclude_patterns"
set in my Project settings. This was for a subfolder that was added as a separate project folder:As a result, errors reported by LSP-typescript and LSP-eslint within the
my-project/frontend
directory were being ignored and not rendered in my editor.Note: I added the redundant frontend project folder a while ago because LSP-eslint needs the .eslintrc file to be found inside a project folder root. I then added the
"folder_exclude_patterns"
so I don't get duplicate entries in the ctrl+p file search.Expected behavior
Errors should be reported for any folder listed in the project folders setting.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: