We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24c9da commit 625f7f8Copy full SHA for 625f7f8
2 files changed
sqlmesh/lsp/uri.py
@@ -29,5 +29,5 @@ def to_path(self) -> Path:
29
@staticmethod
30
def from_path(path: t.Union[str, Path]) -> "URI":
31
if isinstance(path, Path):
32
- path = path.as_posix()
+ path = str(path)
33
return URI(from_fs_path(path))
tests/lsp/test_context.py
@@ -20,3 +20,10 @@ def test_lsp_context():
20
# Check that the value is a ModelInfo with the expected model name
21
assert isinstance(lsp_context.map[active_customers_key], ModelTarget)
22
assert "sushi.active_customers" in lsp_context.map[active_customers_key].names
23
+
24
+ # Check that all the values in the map are normalised
25
+ keys = lsp_context.map.keys()
26
+ for key in keys:
27
+ assert ":" not in str(key)
28
+ assert "\\" not in str(key)
0 commit comments