mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-31 09:10:30 -04:00
Merge from vscode fa77b52b5e2067798006aaff8e463a2b425509d5 (#5453)
This commit is contained in:
@@ -182,7 +182,8 @@ export class TerminalProcessManager implements ITerminalProcessManager {
|
||||
const env = terminalEnvironment.createTerminalEnvironment(shellLaunchConfig, lastActiveWorkspace, envFromConfigValue, this._configurationResolverService, isWorkspaceShellAllowed, this._productService.version, this._configHelper.config.setLocaleVariables);
|
||||
|
||||
this._logService.debug(`Terminal process launching`, shellLaunchConfig, initialCwd, cols, rows, env);
|
||||
return this._terminalInstanceService.createTerminalProcess(shellLaunchConfig, initialCwd, cols, rows, env, this._configHelper.config.windowsEnableConpty);
|
||||
const useConpty = (shellLaunchConfig.forceWinpty !== true) && this._configHelper.config.windowsEnableConpty;
|
||||
return this._terminalInstanceService.createTerminalProcess(shellLaunchConfig, initialCwd, cols, rows, env, useConpty);
|
||||
}
|
||||
|
||||
public setDimensions(cols: number, rows: number): void {
|
||||
|
||||
@@ -192,6 +192,12 @@ export interface IShellLaunchConfig {
|
||||
* provided as nothing will be inherited from the process or any configuration.
|
||||
*/
|
||||
strictEnv?: boolean;
|
||||
|
||||
/**
|
||||
* Moving forward, conpty will be the default. However, there are cases where conpty is not ready
|
||||
* to be the default. This property will force winpty to be used, even when conpty would normally be used.
|
||||
*/
|
||||
forceWinpty?: boolean;
|
||||
}
|
||||
|
||||
export interface ITerminalService {
|
||||
|
||||
Reference in New Issue
Block a user