fix(stdio): always set windowsHide on Windows, not just in Electron (#1772)
Co-authored-by: jnMetaCode <147776183+jnMetaCode@users.noreply.github.com> Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
This commit is contained in:
parent
e86b1835cc
commit
527643966e
1 changed files with 56 additions and 5 deletions
|
|
@ -126,7 +126,7 @@ export class StdioClientTransport implements Transport {
|
|||
},
|
||||
stdio: ['pipe', 'pipe', this._serverParams.stderr ?? 'inherit'],
|
||||
shell: false,
|
||||
windowsHide: process.platform === 'win32' && isElectron(),
|
||||
windowsHide: process.platform === 'win32',
|
||||
cwd: this._serverParams.cwd
|
||||
});
|
||||
|
||||
|
|
@ -258,7 +258,3 @@ export class StdioClientTransport implements Transport {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
function isElectron() {
|
||||
return 'type' in process;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue