sqlmesh 0.192.1.dev4__py3-none-any.whl → 0.192.2.dev1__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 +8 -30
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.dist-info}/METADATA +1 -1
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.dist-info}/RECORD +8 -8
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.dist-info}/WHEEL +0 -0
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.dist-info}/entry_points.txt +0 -0
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.dist-info}/licenses/LICENSE +0 -0
- {sqlmesh-0.192.1.dev4.dist-info → sqlmesh-0.192.2.dev1.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.192.
|
|
21
|
-
__version_tuple__ = version_tuple = (0, 192,
|
|
20
|
+
__version__ = version = '0.192.2.dev1'
|
|
21
|
+
__version_tuple__ = version_tuple = (0, 192, 2, 'dev1')
|
sqlmesh/lsp/main.py
CHANGED
|
@@ -294,32 +294,6 @@ class SQLMeshLanguageServer:
|
|
|
294
294
|
SQLMeshLanguageServer._diagnostics_to_lsp_diagnostics(diagnostics),
|
|
295
295
|
)
|
|
296
296
|
|
|
297
|
-
@self.server.feature(types.TEXT_DOCUMENT_DID_CHANGE)
|
|
298
|
-
def did_change(ls: LanguageServer, params: types.DidChangeTextDocumentParams) -> None:
|
|
299
|
-
if self.lsp_context is None:
|
|
300
|
-
current_path = Path.cwd()
|
|
301
|
-
self._ensure_context_in_folder(current_path)
|
|
302
|
-
if self.lsp_context is None:
|
|
303
|
-
ls.log_trace("No context found after did_change")
|
|
304
|
-
return
|
|
305
|
-
|
|
306
|
-
uri = URI(params.text_document.uri)
|
|
307
|
-
context = self._context_get_or_load(uri)
|
|
308
|
-
|
|
309
|
-
models = context.map[uri.to_path()]
|
|
310
|
-
if models is None or not isinstance(models, ModelTarget):
|
|
311
|
-
return
|
|
312
|
-
|
|
313
|
-
# Get diagnostics from context (which handles caching)
|
|
314
|
-
diagnostics = context.lint_model(uri)
|
|
315
|
-
|
|
316
|
-
# Only publish diagnostics if client doesn't support pull diagnostics
|
|
317
|
-
if not self.client_supports_pull_diagnostics:
|
|
318
|
-
ls.publish_diagnostics(
|
|
319
|
-
params.text_document.uri,
|
|
320
|
-
SQLMeshLanguageServer._diagnostics_to_lsp_diagnostics(diagnostics),
|
|
321
|
-
)
|
|
322
|
-
|
|
323
297
|
@self.server.feature(types.TEXT_DOCUMENT_DID_SAVE)
|
|
324
298
|
def did_save(ls: LanguageServer, params: types.DidSaveTextDocumentParams) -> None:
|
|
325
299
|
uri = URI(params.text_document.uri)
|
|
@@ -753,15 +727,19 @@ class SQLMeshLanguageServer:
|
|
|
753
727
|
|
|
754
728
|
loaded = False
|
|
755
729
|
# Ascend directories to look for config
|
|
756
|
-
|
|
730
|
+
current_dir = path.parent # Start from the file's parent directory
|
|
731
|
+
while current_dir.parents and not loaded:
|
|
757
732
|
for ext in ("py", "yml", "yaml"):
|
|
758
|
-
config_path =
|
|
733
|
+
config_path = current_dir / f"config.{ext}"
|
|
759
734
|
if config_path.exists():
|
|
760
|
-
if self._create_lsp_context([
|
|
735
|
+
if self._create_lsp_context([current_dir]):
|
|
761
736
|
loaded = True
|
|
762
737
|
# Re-check context for the document now that it's loaded
|
|
763
738
|
return self._ensure_context_for_document(document_uri)
|
|
764
|
-
|
|
739
|
+
# Check if we've reached the filesystem root to prevent infinite loops
|
|
740
|
+
if current_dir == current_dir.parent:
|
|
741
|
+
break
|
|
742
|
+
current_dir = current_dir.parent
|
|
765
743
|
|
|
766
744
|
# If still no context found, try the workspace folders
|
|
767
745
|
if not loaded:
|
|
@@ -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=8dHGLCFK3A8Tbmbzy74SbL_PEqdDSJJHdmdJ_n4DbIU,528
|
|
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=IJ70li8d5RbOFDrjHfsI2UNOiOp-WB22lrgpdJ7lVSg,2942
|
|
|
165
165
|
sqlmesh/lsp/description.py,sha256=PjguwyVw5YeYSgT0JMhkf5U1Jry-sDPLvQ2caIR9JPQ,856
|
|
166
166
|
sqlmesh/lsp/helpers.py,sha256=EFc1u3-b7kSv5-tNwmKUDxId72RCLDBnN2lLTgRSzzQ,1020
|
|
167
167
|
sqlmesh/lsp/hints.py,sha256=j-blccBUil94yRoDjWfkSM0HqMmsKD6hP2TaWdWWVk4,3734
|
|
168
|
-
sqlmesh/lsp/main.py,sha256=
|
|
168
|
+
sqlmesh/lsp/main.py,sha256=gwA82e8jNcZCq3X18mMYD1RUJt6tXXJTiQM8aSlbD4c,36507
|
|
169
169
|
sqlmesh/lsp/reference.py,sha256=8hZT3wH8zmWiFEySS1_nVhhLg-CKCGncf9wG3LGBef8,26432
|
|
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.192.
|
|
278
|
+
sqlmesh-0.192.2.dev1.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=6S_GSRtPwXyr17YSqAWyZ2Prb2puyUa-UdLiZpFtwe4,5472
|
|
281
281
|
web/client/dist/assets/Audits-Dym5PKHr.js,sha256=UZFlxjPaLxv7b4C494dCxXDNY7918lWEkn2FghwDd4E,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.192.
|
|
397
|
-
sqlmesh-0.192.
|
|
398
|
-
sqlmesh-0.192.
|
|
399
|
-
sqlmesh-0.192.
|
|
400
|
-
sqlmesh-0.192.
|
|
396
|
+
sqlmesh-0.192.2.dev1.dist-info/METADATA,sha256=ovKSslYJFgAPD0xfC0N0AsH57rkwttJ7NYKUVapCdJo,26690
|
|
397
|
+
sqlmesh-0.192.2.dev1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
398
|
+
sqlmesh-0.192.2.dev1.dist-info/entry_points.txt,sha256=pIYKtg-u-uO7BK_Y0qrdmfyj0bYrcMc3Xiqr5WE3VFk,121
|
|
399
|
+
sqlmesh-0.192.2.dev1.dist-info/top_level.txt,sha256=bspjo5vjELQkuN0qKuTFIbsrUt3Zeo8D2mlKeHG1LdE,12
|
|
400
|
+
sqlmesh-0.192.2.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|