From 14bc6ec5f35c8013f0112ff39cb15d6fa7b4286c Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Wed, 2 Sep 2020 01:52:00 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/setViewsLayout.ts | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/src/commands/setViewsLayout.ts b/src/commands/setViewsLayout.ts index b36abdc..bd740ee 100644 --- a/src/commands/setViewsLayout.ts +++ b/src/commands/setViewsLayout.ts @@ -52,15 +52,12 @@ export class SetViewsLayoutCommand extends Command { // Because of https://github.com/microsoft/vscode/issues/105774, run the command twice which seems to fix things let count = 0; while (count++ < 2) { - void (await commands.executeCommand( - 'vscode.moveViews', - { - viewIds: viewsConfigKeys.map(view => `${extensionId}.views.${view}`), - destinationId: `workbench.view.extension.${extensionId}`, - }, - )); + void (await commands.executeCommand('vscode.moveViews', { + viewIds: viewsConfigKeys.map(view => `${extensionId}.views.${view}`), + destinationId: `workbench.view.extension.${extensionId}`, + })); } - } catch { } + } catch {} break; case ViewsLayout.SourceControl: @@ -68,13 +65,10 @@ export class SetViewsLayoutCommand extends Command { // Because of https://github.com/microsoft/vscode/issues/105774, run the command twice which seems to fix things let count = 0; while (count++ < 2) { - void (await commands.executeCommand( - 'vscode.moveViews', - { - viewIds: viewsConfigKeys.map(view => `${extensionId}.views.${view}`), - destinationId: 'workbench.view.scm' - }, - )); + void (await commands.executeCommand('vscode.moveViews', { + viewIds: viewsConfigKeys.map(view => `${extensionId}.views.${view}`), + destinationId: 'workbench.view.scm', + })); } } catch { for (const view of viewsConfigKeys) {