mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
fix: enable shell option for Windows process spawning in ACP transport
close #49
This commit is contained in:
@@ -47,7 +47,8 @@ export class AcpStdioTransport {
|
||||
}) {
|
||||
this.process = spawn(options.command, options.args ?? [], {
|
||||
env: options.env,
|
||||
stdio: ['pipe', 'pipe', 'pipe']
|
||||
stdio: ['pipe', 'pipe', 'pipe'],
|
||||
shell: process.platform === 'win32'
|
||||
});
|
||||
|
||||
this.process.stdout.setEncoding('utf8');
|
||||
|
||||
Reference in New Issue
Block a user