Skip to content

Commit a863e13

Browse files
benfdkingCopilot
andauthored
Update sqlmesh/lsp/main.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2b9a277 commit a863e13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sqlmesh/lsp/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ def __init__(
104104
:param context_class: A class that inherits from `Context`.
105105
:param server_name: Name for the language server.
106106
:param version: Version string.
107+
108+
Note:
109+
The `max_workers=1` parameter is set for the `LanguageServer` to ensure compatibility with VSCode.
110+
VSCode's LSP client has threading and concurrency requirements that necessitate single-worker mode.
107111
"""
108112
self.server = LanguageServer(server_name, version, max_workers=1)
109113
self.context_class = context_class

0 commit comments

Comments
 (0)