vscode-common-python-lsp 0.5.2__tar.gz → 0.6.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/PKG-INFO +1 -1
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/pyproject.toml +1 -1
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/server.py +10 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp.egg-info/PKG-INFO +1 -1
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/README.md +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/setup.cfg +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_code_actions.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_context.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_debug.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_diagnostics.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_formatting.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_jsonrpc.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_linting.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_notebook.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_package.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_paths.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_process_runner.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_runner.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_server.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_version.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/__init__.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/code_actions.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/context.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/debug.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/diagnostics.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/formatting.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/jsonrpc.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/linting.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/notebook.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/paths.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/process_runner.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/runner.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/version.py +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp.egg-info/SOURCES.txt +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp.egg-info/dependency_links.txt +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp.egg-info/requires.txt +0 -0
- {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp.egg-info/top_level.txt +0 -0
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/server.py
RENAMED
|
@@ -55,6 +55,12 @@ class ToolServerConfig:
|
|
|
55
55
|
Tool-specific setting keys and their default values. These are
|
|
56
56
|
merged into the base defaults returned by
|
|
57
57
|
:meth:`ToolServer.get_global_defaults`.
|
|
58
|
+
hardcoded_settings:
|
|
59
|
+
Settings whose values are always fixed, regardless of what the
|
|
60
|
+
client sends in ``GLOBAL_SETTINGS``. Applied after
|
|
61
|
+
``default_settings`` in :meth:`ToolServer.get_global_defaults`.
|
|
62
|
+
Use this for keys like ``ignorePatterns`` that are resolved
|
|
63
|
+
per-workspace by the client and must never be read from globals.
|
|
58
64
|
"""
|
|
59
65
|
|
|
60
66
|
tool_module: str
|
|
@@ -65,6 +71,7 @@ class ToolServerConfig:
|
|
|
65
71
|
resolve_symlinks: bool = False
|
|
66
72
|
default_notification_level: Literal["off", "onError", "onWarning", "always"] = "off"
|
|
67
73
|
default_settings: dict[str, Any] = field(default_factory=dict)
|
|
74
|
+
hardcoded_settings: dict[str, Any] = field(default_factory=dict)
|
|
68
75
|
|
|
69
76
|
|
|
70
77
|
# ---------------------------------------------------------------------------
|
|
@@ -122,6 +129,9 @@ class ToolServer:
|
|
|
122
129
|
}
|
|
123
130
|
for key, default in self.config.default_settings.items():
|
|
124
131
|
base[key] = self.global_settings.get(key, default)
|
|
132
|
+
# Hardcoded settings always use the configured value, ignoring
|
|
133
|
+
# whatever the client sent in GLOBAL_SETTINGS.
|
|
134
|
+
base.update(self.config.hardcoded_settings)
|
|
125
135
|
return base
|
|
126
136
|
|
|
127
137
|
def update_workspace_settings(self, settings: list[dict[str, Any]] | None) -> None:
|
|
File without changes
|
|
File without changes
|
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_code_actions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/tests/test_process_runner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/debug.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/paths.py
RENAMED
|
File without changes
|
|
File without changes
|
{vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.1}/vscode_common_python_lsp/runner.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|