Skip to content

Commit 99b1512

Browse files
authored
fix: fix the lsp initialization (#4265)
1 parent fb5c52f commit 99b1512

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sqlmesh/lsp/main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ class LSPContext:
2121

2222
def __init__(self, context: Context) -> None:
2323
self.context = context
24-
map: t.Dict[str, t.List[str]] = defaultdict(list[str])
24+
map: t.Dict[str, t.List[str]] = defaultdict(list)
2525
for model in context.models.values():
26-
if model._path is None:
26+
if model._path is not None:
2727
path = Path(model._path).resolve()
2828
map[f"file://{path.as_posix()}"].append(model.name)
29-
3029
self.map = map
3130

3231

0 commit comments

Comments
 (0)