Skip to content

Commit

Permalink
Use global settings for ignorePatterns default (#325)
Browse files Browse the repository at this point in the history
- Update `_get_global_defaults` to check `GLOBAL_SETTINGS` for default
  value of the `ignorePatterns` setting
- Otherwise, user settings are not respected for non-workspace files
  • Loading branch information
taesungh authored Oct 25, 2024
1 parent a356c8e commit 9d7f45d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundled/tool/lsp_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _get_global_defaults():
"note": "Information",
},
),
"ignorePatterns": [],
"ignorePatterns": GLOBAL_SETTINGS.get("ignorePatterns", []),
"importStrategy": GLOBAL_SETTINGS.get("importStrategy", "useBundled"),
"showNotifications": GLOBAL_SETTINGS.get("showNotifications", "off"),
"extraPaths": GLOBAL_SETTINGS.get("extraPaths", []),
Expand Down

0 comments on commit 9d7f45d

Please sign in to comment.