-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discard diagnostics in a few cases #1816
Conversation
- When the file is outside the window folders, ignore diagnostics - When the file matches binary_exclude_patterns, ignore it - When the file matches file_exclude_patterns, ignore it - When the file matches folder_exclude_patterns, ignore it This doesn't take care of the index_exclude_patterns and index_exclude_gitignore settings.
plugin/core/windows.py
Outdated
settings = view.settings() | ||
if self._matches_glob(path, settings.get("binary_file_patterns")): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have this in my project:
and this are the view settings (the view is within the workspace):
>>> view.settings().get('folder_exclude_patterns')
['.svn', '.git', '.hg', 'CVS', '.mypy_cache', 'node_modules']
It looks like the .nuxt
is missing (node_modules
comes from global override). So are the view settings not actually updated with project overrides?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I can reproduce this behavior here as well. Seems broken to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll go ahead and merge this as this has some benefit already. The index_exclude_patterns and project-specific exclude patterns are really more of an ST issue. |
This doesn't take care of the index_exclude_patterns and
index_exclude_gitignore settings.
Resolves #1727