sqlmesh 0.189.3.dev24__py3-none-any.whl → 0.189.3.dev25__py3-none-any.whl
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.
- sqlmesh/_version.py +2 -2
- sqlmesh/lsp/main.py +11 -19
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/METADATA +1 -1
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/RECORD +8 -8
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/WHEEL +0 -0
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.189.3.dev24.dist-info → sqlmesh-0.189.3.dev25.dist-info}/top_level.txt +0 -0
sqlmesh/_version.py
CHANGED
|
@@ -17,5 +17,5 @@ __version__: str
|
|
|
17
17
|
__version_tuple__: VERSION_TUPLE
|
|
18
18
|
version_tuple: VERSION_TUPLE
|
|
19
19
|
|
|
20
|
-
__version__ = version = '0.189.3.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 189, 3, '
|
|
20
|
+
__version__ = version = '0.189.3.dev25'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 189, 3, 'dev25')
|
sqlmesh/lsp/main.py
CHANGED
|
@@ -88,6 +88,8 @@ class SQLMeshLanguageServer:
|
|
|
88
88
|
def _create_lsp_context(self, paths: t.List[Path]) -> t.Optional[LSPContext]:
|
|
89
89
|
"""Create a new LSPContext instance using the configured context class.
|
|
90
90
|
|
|
91
|
+
On success, sets self.lsp_context and returns the created context.
|
|
92
|
+
|
|
91
93
|
Args:
|
|
92
94
|
paths: List of paths to pass to the context constructor
|
|
93
95
|
|
|
@@ -96,7 +98,9 @@ class SQLMeshLanguageServer:
|
|
|
96
98
|
"""
|
|
97
99
|
try:
|
|
98
100
|
context = self.context_class(paths=paths)
|
|
99
|
-
|
|
101
|
+
lsp_context = LSPContext(context)
|
|
102
|
+
self.lsp_context = lsp_context
|
|
103
|
+
return lsp_context
|
|
100
104
|
except Exception as e:
|
|
101
105
|
self.server.log_trace(f"Error creating context: {e}")
|
|
102
106
|
return None
|
|
@@ -132,9 +136,7 @@ class SQLMeshLanguageServer:
|
|
|
132
136
|
for ext in ("py", "yml", "yaml"):
|
|
133
137
|
config_path = folder_path / f"config.{ext}"
|
|
134
138
|
if config_path.exists():
|
|
135
|
-
|
|
136
|
-
if lsp_context:
|
|
137
|
-
self.lsp_context = lsp_context
|
|
139
|
+
if self._create_lsp_context([folder_path]):
|
|
138
140
|
loaded_sqlmesh_message(ls, folder_path)
|
|
139
141
|
return # Exit after successfully loading any config
|
|
140
142
|
except Exception as e:
|
|
@@ -299,9 +301,7 @@ class SQLMeshLanguageServer:
|
|
|
299
301
|
|
|
300
302
|
# Reload the entire context and create a new LSPContext
|
|
301
303
|
if self.lsp_context is not None:
|
|
302
|
-
|
|
303
|
-
if new_lsp_context:
|
|
304
|
-
self.lsp_context = new_lsp_context
|
|
304
|
+
if self._create_lsp_context(list(self.lsp_context.context.configs)):
|
|
305
305
|
return
|
|
306
306
|
|
|
307
307
|
context = self._context_get_or_load(uri)
|
|
@@ -672,9 +672,7 @@ class SQLMeshLanguageServer:
|
|
|
672
672
|
for ext in ("py", "yml", "yaml"):
|
|
673
673
|
config_path = folder_uri / f"config.{ext}"
|
|
674
674
|
if config_path.exists():
|
|
675
|
-
|
|
676
|
-
if lsp_context:
|
|
677
|
-
self.lsp_context = lsp_context
|
|
675
|
+
if self._create_lsp_context([folder_uri]):
|
|
678
676
|
loaded_sqlmesh_message(self.server, folder_uri)
|
|
679
677
|
return
|
|
680
678
|
|
|
@@ -683,9 +681,7 @@ class SQLMeshLanguageServer:
|
|
|
683
681
|
for ext in ("py", "yml", "yaml"):
|
|
684
682
|
config_path = workspace_folder / f"config.{ext}"
|
|
685
683
|
if config_path.exists():
|
|
686
|
-
|
|
687
|
-
if lsp_context:
|
|
688
|
-
self.lsp_context = lsp_context
|
|
684
|
+
if self._create_lsp_context([workspace_folder]):
|
|
689
685
|
loaded_sqlmesh_message(self.server, workspace_folder)
|
|
690
686
|
return
|
|
691
687
|
|
|
@@ -714,9 +710,7 @@ class SQLMeshLanguageServer:
|
|
|
714
710
|
for ext in ("py", "yml", "yaml"):
|
|
715
711
|
config_path = path / f"config.{ext}"
|
|
716
712
|
if config_path.exists():
|
|
717
|
-
|
|
718
|
-
if lsp_context:
|
|
719
|
-
self.lsp_context = lsp_context
|
|
713
|
+
if self._create_lsp_context([path]):
|
|
720
714
|
loaded = True
|
|
721
715
|
# Re-check context for the document now that it's loaded
|
|
722
716
|
return self._ensure_context_for_document(document_uri)
|
|
@@ -728,9 +722,7 @@ class SQLMeshLanguageServer:
|
|
|
728
722
|
for ext in ("py", "yml", "yaml"):
|
|
729
723
|
config_path = workspace_folder / f"config.{ext}"
|
|
730
724
|
if config_path.exists():
|
|
731
|
-
|
|
732
|
-
if lsp_context:
|
|
733
|
-
self.lsp_context = lsp_context
|
|
725
|
+
if self._create_lsp_context([workspace_folder]):
|
|
734
726
|
loaded_sqlmesh_message(self.server, workspace_folder)
|
|
735
727
|
return
|
|
736
728
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
sqlmesh/__init__.py,sha256=QjwaamJIdW7voXoS880yAx7tHm-Im4_mqGA-XJgafos,7631
|
|
2
|
-
sqlmesh/_version.py,sha256=
|
|
2
|
+
sqlmesh/_version.py,sha256=37EEYiPKjKLRjgTJuVS4Wg99HR84lqpvQuOP5ezAfYY,530
|
|
3
3
|
sqlmesh/magics.py,sha256=gjzoxREb1XT8Yho_PQMlMqhhkLq_sEfBM8S3PTgxvWE,40337
|
|
4
4
|
sqlmesh/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
sqlmesh/cicd/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -165,7 +165,7 @@ sqlmesh/lsp/custom.py,sha256=40ekRrcsJ-lsF4-uPs4mo8CFegTWK_zKzi4am_NO9oo,2196
|
|
|
165
165
|
sqlmesh/lsp/description.py,sha256=4QIGC9ix8IzmWF6DVUNhY4m1Crk3sNQA6hZ1RbyqU78,827
|
|
166
166
|
sqlmesh/lsp/helpers.py,sha256=igzUgeYAO3LUZFr3qN4l9hzztOy66lRubX93KtCMduY,654
|
|
167
167
|
sqlmesh/lsp/hints.py,sha256=j-blccBUil94yRoDjWfkSM0HqMmsKD6hP2TaWdWWVk4,3734
|
|
168
|
-
sqlmesh/lsp/main.py,sha256
|
|
168
|
+
sqlmesh/lsp/main.py,sha256=-rthyo8sdcUHVEq0PY8DuvhydIldnY0vU3A5pckKjEE,35061
|
|
169
169
|
sqlmesh/lsp/reference.py,sha256=2rAYfwrKRfxlYA3psTDLacxYWvuFaouMyS7plOSYHiQ,23883
|
|
170
170
|
sqlmesh/lsp/uri.py,sha256=mvSLbZGmMTHPpliThOtVWiFcHnfJzp1w39q9l-xD2SI,802
|
|
171
171
|
sqlmesh/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -275,7 +275,7 @@ sqlmesh/utils/pydantic.py,sha256=I898jAFqa3qU6lG2uPpRebVFncOUo8ZrLWM_R3K3DHU,116
|
|
|
275
275
|
sqlmesh/utils/rich.py,sha256=xNZyPCqEc4TAlJlsEthg-5eYUWpaizz0QjBzO7a1Yv4,1509
|
|
276
276
|
sqlmesh/utils/windows.py,sha256=r7Yin4WEwbvH7sKA3hOJtRsclmscNuBeCklCfVPvtQs,611
|
|
277
277
|
sqlmesh/utils/yaml.py,sha256=np-WVcwmwsKghCgAj1OBBMsK1SXSRn4wR-H37cGiFr8,2282
|
|
278
|
-
sqlmesh-0.189.3.
|
|
278
|
+
sqlmesh-0.189.3.dev25.dist-info/licenses/LICENSE,sha256=OlMefUjgWJdULtf84BLW0AZZcY8DwdgQqb_1j2862j8,11346
|
|
279
279
|
web/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
280
280
|
web/client/dist/index.html,sha256=k5bAEoPDJ0BhYQ4hBcKWObITCxIgqOUC28nGXvEDrt0,5472
|
|
281
281
|
web/client/dist/assets/Audits-Pgs8N6IE.js,sha256=BQuc9kiznZSqTnzNrJSDNqAAdOTGjNQJt32M1sHZFok,1041
|
|
@@ -393,8 +393,8 @@ web/server/api/endpoints/models.py,sha256=ud-lRwriyI_OYg9tZchrBgeiXELiRTLNEodraf
|
|
|
393
393
|
web/server/api/endpoints/modules.py,sha256=8hqqgonGay_mJmpCw0IdbjsPhWlQH2VLdKAqha-myac,468
|
|
394
394
|
web/server/api/endpoints/plan.py,sha256=OYuQ_4dgbhG9ibTcX1a8mvYgH3ANxw9Fhbb4wg6QWqc,9222
|
|
395
395
|
web/server/api/endpoints/table_diff.py,sha256=SCy3-pr5x6bEEiOaZGCDbiHQhpgxwmnz3Acqa2Ie6jI,2090
|
|
396
|
-
sqlmesh-0.189.3.
|
|
397
|
-
sqlmesh-0.189.3.
|
|
398
|
-
sqlmesh-0.189.3.
|
|
399
|
-
sqlmesh-0.189.3.
|
|
400
|
-
sqlmesh-0.189.3.
|
|
396
|
+
sqlmesh-0.189.3.dev25.dist-info/METADATA,sha256=twmYVsbHpXYrhLnXUzU7Ts_K5JEXRhd6CvowduU2N-Y,26541
|
|
397
|
+
sqlmesh-0.189.3.dev25.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
398
|
+
sqlmesh-0.189.3.dev25.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
399
|
+
sqlmesh-0.189.3.dev25.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
400
|
+
sqlmesh-0.189.3.dev25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|