From 9d7f45d936ba665ddbb29389484b00d9ff48d886 Mon Sep 17 00:00:00 2001 From: Taesung Hwang <44419552+taesungh@users.noreply.github.com> Date: Fri, 25 Oct 2024 15:22:38 -0700 Subject: [PATCH] Use global settings for `ignorePatterns` default (#325) - 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 --- bundled/tool/lsp_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundled/tool/lsp_server.py b/bundled/tool/lsp_server.py index dd6e9f6..5c1dc27 100644 --- a/bundled/tool/lsp_server.py +++ b/bundled/tool/lsp_server.py @@ -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", []),