提交 723b2009 编写于 作者: D Daniel Imms

Only enable flow control on bash for now

Fixes #19766
Related #19474
上级 1c750933
...@@ -20,9 +20,10 @@ const powerShellPath = `${process.env.windir}\\${is64BitWindows ? 'Sysnative' : ...@@ -20,9 +20,10 @@ const powerShellPath = `${process.env.windir}\\${is64BitWindows ? 'Sysnative' :
export const TERMINAL_DEFAULT_SHELL_WINDOWS = isAtLeastWindows10 ? powerShellPath : processes.getWindowsShell(); export const TERMINAL_DEFAULT_SHELL_WINDOWS = isAtLeastWindows10 ? powerShellPath : processes.getWindowsShell();
// Terminal flow control is disabled if the shell is zsh since the popular oh-my-zsh configuration // Terminal flow control is disabled if the shell is zsh since the popular oh-my-zsh configuration
// overrides the ^S and ^Q keybindings which are used for flow control. // overrides the ^S and ^Q keybindings which are used for flow control. fish also overrides the
// TODO: This should check if ~/.oh-my-zsh exists as well // keybindings.
export const TERMINAL_DEFAULT_FLOW_CONTROL = !(typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) === 'zsh'); // TODO #19474: This should be enabled for zsh when ~/.oh-my-zsh does not exist as well
export const TERMINAL_DEFAULT_FLOW_CONTROL = (typeof process.env.SHELL === 'string' && path.basename(process.env.SHELL) === 'bash');
export interface ITerminalProcessFactory { export interface ITerminalProcessFactory {
create(env: { [key: string]: string }): cp.ChildProcess; create(env: { [key: string]: string }): cp.ChildProcess;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册