We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5c52f commit 99b1512Copy full SHA for 99b1512
sqlmesh/lsp/main.py
@@ -21,12 +21,11 @@ class LSPContext:
21
22
def __init__(self, context: Context) -> None:
23
self.context = context
24
- map: t.Dict[str, t.List[str]] = defaultdict(list[str])
+ map: t.Dict[str, t.List[str]] = defaultdict(list)
25
for model in context.models.values():
26
- if model._path is None:
+ if model._path is not None:
27
path = Path(model._path).resolve()
28
map[f"file://{path.as_posix()}"].append(model.name)
29
-
30
self.map = map
31
32
0 commit comments