We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82d5ece commit 6bcd625Copy full SHA for 6bcd625
1 file changed
sqlmesh/lsp/main.py
@@ -788,6 +788,10 @@ def loaded_sqlmesh_message(ls: LanguageServer, folder: Path) -> None:
788
789
790
def main() -> None:
791
+ import os
792
+ # Avoid LSP forking issues for VS Code and other editors
793
+ os.environ["MAX_FORK_WORKERS"] = "1"
794
+
795
# Example instantiator that just uses the same signature as your original `Context` usage.
796
sqlmesh_server = SQLMeshLanguageServer(context_class=Context)
797
sqlmesh_server.start()
0 commit comments