Skip to content

Commit 6bcd625

Browse files
set fork workers to 1 to avoid forking issues in vscode
1 parent 82d5ece commit 6bcd625

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sqlmesh/lsp/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,10 @@ def loaded_sqlmesh_message(ls: LanguageServer, folder: Path) -> None:
788788

789789

790790
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+
791795
# Example instantiator that just uses the same signature as your original `Context` usage.
792796
sqlmesh_server = SQLMeshLanguageServer(context_class=Context)
793797
sqlmesh_server.start()

0 commit comments

Comments
 (0)