ignorePatterns
setting not considered for non-workspace files
#326
Labels
ignorePatterns
setting not considered for non-workspace files
#326
The values in the
ignorePatterns
setting is not considered for files not in the current workspace.Diagnostic Data
Behaviour
The patterns work for files in the workspace but not those outside.
Expected Behavior
A pattern specified in the
flake8.ignorePatterns
setting for the user (or remote) should be considered for any open file, either part of the workspace or not.Actual Behavior
The patterns are not considered for files outside of the current workspace.
Reproduction Steps:
flake8.ignorePatterns
, e.g."*.py"
flake8.ignorePatterns
match")Extra Details
My use case for this is related to a separate problem with detecting libraries in site-packages for which I'll submit a separate issue.
The culprit here seems to be
lsp_server._get_global_defaults
which does not checkGLOBAL_SETTINGS
for a default value unlike all other extension settings. This function is called by_get_settings_by_document
when a file not in the workspace does not have a document key. Assuming this is just an oversight and not intentional, the fix should be fairly simple.vscode-flake8/bundled/tool/lsp_server.py
Lines 466 to 468 in 815cd68
The text was updated successfully, but these errors were encountered: