提交 362b7f3b 编写于 作者: A Andre Weinand

cancel input before executing new command; fixes #106743

上级 e7514736
......@@ -95,8 +95,12 @@ export function prepareCommand(shell: string, args: string[], cwd?: string, env?
}
let quote: (s: string) => string;
// cancel the current input (to avoid executing the command accidentally)
let command = '\u0003'; // Control-C
// begin command with a space to avoid polluting shell history
let command = ' ';
command += ' ';
switch (shellType) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册