Quellcode durchsuchen

Updates set views layout command

main
Eric Amodio vor 4 Jahren
Ursprung
Commit
ccdd2a6dbe
1 geänderte Dateien mit 9 neuen und 2 gelöschten Zeilen
  1. +9
    -2
      src/commands/setViewsLayout.ts

+ 9
- 2
src/commands/setViewsLayout.ts Datei anzeigen

@ -60,8 +60,15 @@ export class SetViewsLayoutCommand extends Command {
break;
case ViewsLayout.SourceControl:
for (const view of viewsConfigKeys) {
void (await commands.executeCommand(`${extensionId}.views.${view}.resetViewLocation`));
try {
void (await commands.executeCommand(
'workbench.action.moveViews',
viewsConfigKeys.map(view => `${extensionId}.views.${view}`, 'workbench.view.scm'),
));
} catch {
for (const view of viewsConfigKeys) {
void (await commands.executeCommand(`${extensionId}.views.${view}.resetViewLocation`));
}
}
break;

Laden…
Abbrechen
Speichern