146
switch (shell) {
147
case 'bash': {
149
newArgs = shellIntegrationArgs.get(ShellIntegrationExecutable.Bash);
151
envMixin['VSCODE_SHELL_LOGIN'] = '1';
152
addEnvMixinPathPrefix(options, envMixin, shell);
153
newArgs = shellIntegrationArgs.get(ShellIntegrationExecutable.Bash);
154
}
156
return { type: 'failure', reason: ShellIntegrationInjectionFailureReason.UnsupportedArgs };
157
}
158
>
newArgs = [...newArgs]; // Shallow clone the array to avoid setting the default array
terminalEnvironment.ts
159
>
newArgs[newArgs.length - 1] = format(newArgs[newArgs.length - 1], appRoot);
160
>
envMixin['VSCODE_STABLE'] = productService.quality === 'stable' ? '1' : '0';
161
>
return { type, newArgs, envMixin };
162
>
}
163
case 'fish': {
164
if (!originalArgs || originalArgs.length === 0) {