mirror of
https://github.com/Microsoft/vscode
synced 2024-10-30 03:25:38 +00:00
Merge pull request #157270 from microsoft/tyriar/157083
Ignore pwsh shell integration script errors on Windows
This commit is contained in:
commit
7745a4595f
1 changed files with 3 additions and 2 deletions
|
@ -223,8 +223,9 @@ export enum ShellIntegrationExecutable {
|
|||
}
|
||||
|
||||
export const shellIntegrationArgs: Map<ShellIntegrationExecutable, string[]> = new Map();
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.WindowsPwsh, ['-noexit', '-command', '. \"{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1\"{1}']);
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.WindowsPwshLogin, ['-l', '-noexit', '-command', '. \"{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1\"{1}']);
|
||||
// The try catch swallows execution policy errors in the case of the archive distributable
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.WindowsPwsh, ['-noexit', '-command', 'try { . \"{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1\" } catch {}{1}']);
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.WindowsPwshLogin, ['-l', '-noexit', '-command', 'try { . \"{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1\" } catch {}{1}']);
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.Pwsh, ['-noexit', '-command', '. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"{1}']);
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.PwshLogin, ['-l', '-noexit', '-command', '. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"']);
|
||||
shellIntegrationArgs.set(ShellIntegrationExecutable.Zsh, ['-i']);
|
||||
|
|
Loading…
Reference in a new issue