瀏覽代碼

💄

main
Eric Amodio 4 年之前
父節點
當前提交
14bc6ec5f3
共有 1 個文件被更改,包括 9 次插入15 次删除
  1. +9
    -15
      src/commands/setViewsLayout.ts

+ 9
- 15
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) {

Loading…
取消
儲存