File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ export class LSPClient implements Disposable {
8181 transport : TransportKind . stdio ,
8282 options : {
8383 cwd : workspacePath ,
84+ // TODO: This is a temporary fix to avoid the issue with the LSP server
85+ // crashing when the number of workers is too high. This is a workaround
86+ // to avoid the issue. Once fixed, we should remove the whole env block.
87+ env : {
88+ MAX_FORK_WORKERS : '1' ,
89+ ...process . env ,
90+ ...sqlmesh . value . env ,
91+ } ,
8492 } ,
8593 args : sqlmesh . value . args ,
8694 } ,
@@ -89,6 +97,14 @@ export class LSPClient implements Disposable {
8997 transport : TransportKind . stdio ,
9098 options : {
9199 cwd : workspacePath ,
100+ env : {
101+ // TODO: This is a temporary fix to avoid the issue with the LSP server
102+ // crashing when the number of workers is too high. This is a workaround
103+ // to avoid the issue. Once fixed, we should remove the whole env block.
104+ MAX_FORK_WORKERS : '1' ,
105+ ...process . env ,
106+ ...sqlmesh . value . env ,
107+ } ,
92108 } ,
93109 args : sqlmesh . value . args ,
94110 } ,
You can’t perform that action at this time.
0 commit comments