Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sqlmesh/lsp/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -694,9 +694,9 @@ def _ensure_context_for_document(
for a config.py or config.yml file in the parent directories.
"""
if self.lsp_context is not None:
context = self.lsp_context
context.context.load() # Reload or refresh context
self.lsp_context = LSPContext(context.context)
# If we already have a context, refresh it
paths = list(self.lsp_context.context.configs)
self._create_lsp_context(paths)
return

# No context yet: try to find config and load it
Expand Down