Move resolve shell launch config above fork the process

This commit is contained in:
Logan Ramos
2019-07-22 07:33:49 -07:00
parent d826dfd943
commit 170beba5db

View File

@@ -321,6 +321,7 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
const terminal = new ExtHostTerminal(this._proxy, name);
terminal.create(shellPath, shellArgs);
this._terminals.push(terminal);
return terminal;
}
@@ -612,12 +613,12 @@ export class ExtHostTerminalService implements ExtHostTerminalServiceShape {
baseEnv
);
this._proxy.$sendResolvedLaunchConfig(id, shellLaunchConfig);
// Fork the process and listen for messages
this._logService.debug(`Terminal process launching on ext host`, shellLaunchConfig, initialCwd, cols, rows, env);
// TODO: Support conpty on remote, it doesn't seem to work for some reason?
// TODO: When conpty is enabled, only enable it when accessibilityMode is off
const enableConpty = false; //terminalConfig.get('windowsEnableConpty') as boolean;
this._proxy.$sendResolvedLaunchConfig(id, shellLaunchConfig);
this._setupExtHostProcessListeners(id, new TerminalProcess(shellLaunchConfig, initialCwd, cols, rows, env, enableConpty, this._logService));
}