mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 21:39:43 +00:00
Merge pull request #66359 from TylerLeonhardt/single-quote-edgecase
Handle the edge case where there's a single quote but no space
This commit is contained in:
commit
3ddc4dc5ac
|
@ -801,7 +801,7 @@ export class TerminalInstance implements ITerminalInstance {
|
|||
pathBasename === 'powershell' ||
|
||||
this.title === 'powershell';
|
||||
|
||||
if (hasSpace && isPowerShell) {
|
||||
if (isPowerShell && (hasSpace || originalPath.indexOf('\'') !== -1)) {
|
||||
c(`& '${originalPath.replace('\'', '\'\'')}'`);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue