mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
fix #138210
This commit is contained in:
parent
faf6f0e1fd
commit
afd6cf4377
|
@ -1599,7 +1599,7 @@ export function registerTerminalActions() {
|
|||
const themeService = accessor.get(IThemeService);
|
||||
const groupService = accessor.get(ITerminalGroupService);
|
||||
const picks: ITerminalQuickPickItem[] = [];
|
||||
if (!groupService.activeInstance || groupService.instances.length === 1) {
|
||||
if (groupService.instances.length === 1) {
|
||||
return;
|
||||
}
|
||||
const otherInstances = groupService.instances.filter(i => i.instanceId !== groupService.activeInstance?.instanceId);
|
||||
|
@ -1624,6 +1624,9 @@ export function registerTerminalActions() {
|
|||
});
|
||||
}
|
||||
}
|
||||
if (picks.length === 0) {
|
||||
return;
|
||||
}
|
||||
const result = await accessor.get(IQuickInputService).pick(picks, {});
|
||||
if (result) {
|
||||
groupService.joinInstances([result.terminal, groupService.activeInstance!]);
|
||||
|
|
Loading…
Reference in a new issue