We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e5bf54 commit b312e6bCopy full SHA for b312e6b
1 file changed
sqlmesh/lsp/main.py
@@ -694,9 +694,9 @@ def _ensure_context_for_document(
694
for a config.py or config.yml file in the parent directories.
695
"""
696
if self.lsp_context is not None:
697
- context = self.lsp_context
698
- context.context.load() # Reload or refresh context
699
- 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)
700
return
701
702
# No context yet: try to find config and load it
0 commit comments