Browse Source

💄

main
Eric Amodio 4 years ago
parent
commit
14bc6ec5f3
1 changed files with 9 additions and 15 deletions
  1. +9
    -15
      src/commands/setViewsLayout.ts

+ 9
- 15
src/commands/setViewsLayout.ts View File

@ -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) {

Loading…
Cancel
Save