Skip to content

Commit 2b89201

Browse files
committed
make one fork worker
1 parent 82d5ece commit 2b89201

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

  • vscode/extension/src/lsp

vscode/extension/src/lsp/lsp.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)