mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
set default profile to pwsh for only windows for #137225
This commit is contained in:
parent
6d5fd7720b
commit
18725fc147
|
@ -66,7 +66,7 @@ export class Terminal {
|
|||
}
|
||||
|
||||
async runCommandWithValue(commandId: TerminalCommandIdWithValue, value?: string, altKey?: boolean): Promise<void> {
|
||||
const shouldKeepOpen = !!value || commandId === TerminalCommandIdWithValue.NewWithProfile || commandId === TerminalCommandIdWithValue.Rename;
|
||||
const shouldKeepOpen = !!value || commandId === TerminalCommandIdWithValue.NewWithProfile || commandId === TerminalCommandIdWithValue.Rename || (commandId === TerminalCommandIdWithValue.SelectDefaultProfile && value !== 'PowerShell');
|
||||
await this.quickaccess.runCommand(commandId, shouldKeepOpen);
|
||||
if (value) {
|
||||
await this.code.waitForSetValue(QuickInput.QUICK_INPUT_INPUT, value);
|
||||
|
|
|
@ -37,7 +37,7 @@ export function setup(opts: ParsedArgs) {
|
|||
});
|
||||
|
||||
it('should set the default profile', async () => {
|
||||
await terminal.runCommandWithValue(TerminalCommandIdWithValue.SelectDefaultProfile, 'PowerShell');
|
||||
await terminal.runCommandWithValue(TerminalCommandIdWithValue.SelectDefaultProfile, process.platform === 'win32' ? 'PowerShell' : undefined);
|
||||
await terminal.runCommand(TerminalCommandId.CreateNew);
|
||||
await terminal.assertSingleTab({ name: ANY_PROFILE_NAME });
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user