Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions images/toggleMaximizeEditorGroup.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions images/toggleMaximizeEditorGroup_light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"onCommand:ShortcutMenuBar.toggleWordWrap",
"onCommand:ShortcutMenuBar.changeEncoding",
"onCommand:ShortcutMenuBar.powershellRestartSession",
"onCommand:ShortcutMenuBar.toggleMaximizeEditorGroup",
"onCommand:ShortcutMenuBar.userButton10",
"onCommand:ShortcutMenuBar.userButton01",
"onCommand:ShortcutMenuBar.userButton02",
Expand Down Expand Up @@ -278,6 +279,12 @@
"default": false,
"description": "show icon for 'Restart PowerShell session'"
},
"ShortcutMenuBar.toggleMaximizeEditorGroup": {
"title": "Toggle Maximize Editor Group",
"type": "boolean",
"default": false,
"description": "show icon for 'Toggle Maximize Editor Group'"
},
"ShortcutMenuBar.userButton01Command": {
"title": "command",
"type": "string",
Expand Down Expand Up @@ -621,6 +628,15 @@
"dark": "images/powershellrestart.svg"
}
},
{
"command": "ShortcutMenuBar.toggleMaximizeEditorGroup",
"title": "Toggle Maximize Editor Group",
"category": "ShortcutMenuBar",
"icon": {
"light": "images/toggleMaximizeEditorGroup_light.svg",
"dark": "images/toggleMaximizeEditorGroup.svg"
}
},
{
"command": "ShortcutMenuBar.userButton01",
"title": "user action 1",
Expand Down Expand Up @@ -921,6 +937,11 @@
"command": "ShortcutMenuBar.powershellRestartSession",
"group": "navigation@31"
},
{
"when": "config.ShortcutMenuBar.toggleMaximizeEditorGroup && multipleEditorGroups && !maximizedEditorGroup",
"command": "ShortcutMenuBar.toggleMaximizeEditorGroup",
"group": "navigation@-10"
},
{
"when": "config.ShortcutMenuBar.userButton01Command",
"command": "ShortcutMenuBar.userButton01",
Expand Down
1 change: 1 addition & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export function activate(context: ExtensionContext) {
"workbench.action.editor.changeEncoding",
],
["ShortcutMenuBar.powershellRestartSession", "PowerShell.RestartSession"],
["ShortcutMenuBar.toggleMaximizeEditorGroup","workbench.action.toggleMaximizeEditorGroup"],
];

let disposableCommandsArray: Disposable[] = [];
Expand Down