Skip to content

Commit

Permalink
Include ignoreStandardLibrary in global settings (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 25, 2024
1 parent 2c0492f commit 61f70f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ruff_lsp/server.py
Expand Up @@ -1558,10 +1558,11 @@ def _get_global_defaults() -> UserSettings:
settings: UserSettings = {
"codeAction": GLOBAL_SETTINGS.get("codeAction", {}),
"fixAll": GLOBAL_SETTINGS.get("fixAll", True),
"format": GLOBAL_SETTINGS.get("format", {}),
"ignoreStandardLibrary": GLOBAL_SETTINGS.get("ignoreStandardLibrary", True),
"importStrategy": GLOBAL_SETTINGS.get("importStrategy", "fromEnvironment"),
"interpreter": GLOBAL_SETTINGS.get("interpreter", [sys.executable]),
"lint": GLOBAL_SETTINGS.get("lint", {}),
"format": GLOBAL_SETTINGS.get("format", {}),
"logLevel": GLOBAL_SETTINGS.get("logLevel", "error"),
"organizeImports": GLOBAL_SETTINGS.get("organizeImports", True),
"path": GLOBAL_SETTINGS.get("path", []),
Expand Down

0 comments on commit 61f70f3

Please sign in to comment.