sqlakit-lsp 0.4.0__tar.gz → 0.4.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.
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/PKG-INFO +1 -1
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/pyproject.toml +1 -1
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/pyproject.toml.orig +1 -1
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/_server.py +6 -2
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/LICENSE +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/README.md +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/__init__.py +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/__main__.py +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/_cli.py +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/_live.py +0 -0
- {sqlakit_lsp-0.4.0 → sqlakit_lsp-0.4.1}/sqlakit_lsp/py.typed +0 -0
|
@@ -1049,9 +1049,13 @@ class _Assistant:
|
|
|
1049
1049
|
def _parameter_at(
|
|
1050
1050
|
self, path: Path, source: str, offset: int
|
|
1051
1051
|
) -> tuple[str, re.Match[str]] | None:
|
|
1052
|
-
"""Return the template and the `:parameter` under the offset.
|
|
1052
|
+
"""Return the template and the `:parameter` under the offset.
|
|
1053
|
+
|
|
1054
|
+
A file of SQL macros is no template, even under a template directory:
|
|
1055
|
+
a parameter there is an argument of its macro, which no Python passes.
|
|
1056
|
+
"""
|
|
1053
1057
|
name = self.project.name_of(path)
|
|
1054
|
-
if name is None:
|
|
1058
|
+
if name is None or self.holds_macros(path):
|
|
1055
1059
|
return None
|
|
1056
1060
|
found = next(
|
|
1057
1061
|
(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|