Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/client/stdio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export type StdioServerParameters = {
*/
args?: string[];

/**
* Whether to use a shell to execute the command, or the shell to use.
*
* If not specified, the default is false.
*/
shell?: string | boolean;

/**
* The environment to use when spawning the process.
*
Expand Down Expand Up @@ -125,7 +132,7 @@ export class StdioClientTransport implements Transport {
...this._serverParams.env
},
stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'],
shell: false,
shell: this._serverParams.shell ?? false,
signal: this._abortController.signal,
windowsHide: process.platform === 'win32' && isElectron(),
cwd: this._serverParams.cwd
Expand Down