未验证 提交 a881dd44 编写于 作者: M Megan Rogge 提交者: GitHub

support running active files with filenames containing parenthesis (#114946)

上级 66635b8b
......@@ -637,6 +637,7 @@ export class TerminalService implements ITerminalService {
}
const hasSpace = originalPath.indexOf(' ') !== -1;
const hasParens = originalPath.indexOf('(') !== -1 || originalPath.indexOf(')') !== -1;
const pathBasename = basename(executable, '.exe');
const isPowerShell = pathBasename === 'pwsh' ||
......@@ -649,6 +650,11 @@ export class TerminalService implements ITerminalService {
return;
}
if (hasParens && isPowerShell) {
c(`& '${originalPath}'`);
return;
}
if (isWindows) {
// 17063 is the build number where wsl path was introduced.
// Update Windows uriPath to be executed in WSL.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册