vscode-common-python-lsp 0.5.2__tar.gz → 0.6.0__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.
Files changed (37) hide show
  1. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/PKG-INFO +1 -1
  2. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/pyproject.toml +1 -1
  3. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/server.py +10 -0
  4. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp.egg-info/PKG-INFO +1 -1
  5. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/README.md +0 -0
  6. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/setup.cfg +0 -0
  7. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_code_actions.py +0 -0
  8. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_context.py +0 -0
  9. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_debug.py +0 -0
  10. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_diagnostics.py +0 -0
  11. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_formatting.py +0 -0
  12. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_jsonrpc.py +0 -0
  13. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_linting.py +0 -0
  14. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_notebook.py +0 -0
  15. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_package.py +0 -0
  16. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_paths.py +0 -0
  17. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_process_runner.py +0 -0
  18. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_runner.py +0 -0
  19. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_server.py +0 -0
  20. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/tests/test_version.py +0 -0
  21. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/__init__.py +0 -0
  22. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/code_actions.py +0 -0
  23. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/context.py +0 -0
  24. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/debug.py +0 -0
  25. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/diagnostics.py +0 -0
  26. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/formatting.py +0 -0
  27. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/jsonrpc.py +0 -0
  28. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/linting.py +0 -0
  29. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/notebook.py +0 -0
  30. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/paths.py +0 -0
  31. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/process_runner.py +0 -0
  32. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/runner.py +0 -0
  33. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp/version.py +0 -0
  34. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp.egg-info/SOURCES.txt +0 -0
  35. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp.egg-info/dependency_links.txt +0 -0
  36. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp.egg-info/requires.txt +0 -0
  37. {vscode_common_python_lsp-0.5.2 → vscode_common_python_lsp-0.6.0}/vscode_common_python_lsp.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vscode-common-python-lsp
3
- Version: 0.5.2
3
+ Version: 0.6.0
4
4
  Summary: Shared Python utilities for VS Code Python tool extensions
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "vscode-common-python-lsp"
7
- version = "0.5.2"
7
+ version = "0.6.0"
8
8
  description = "Shared Python utilities for VS Code Python tool extensions"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vscode-common-python-lsp
3
- Version: 0.5.2
3
+ Version: 0.6.0
4
4
  Summary: Shared Python utilities for VS Code Python tool extensions
5
5
  Author: Microsoft Corporation
6
6
  License-Expression: MIT