`workbench.action.toggleMaximizedPanel` Affects Sidebar Instead of Panel

description

When the sidebar position is set to “right,” executing the action workbench.action.toggleMaximizedPanel maximizes the sidebar instead of the panel (terminal).

Reproduction Steps

This bug occurs when all of the following conditions are met:

  • The sidebar position is set to “right”
  • The panel (terminal) position is set to “left” or “right”

Bug Image

environment

Version: 0.46.8
VSCode Version: 1.96.2
Commit: be4f0962469499f009005e66867c8402202ff0b0
Date: 2025-02-28T19:31:35.681Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

all my settings

  1. settings.json
{
  "todo-tree.general.tags": ["NOTE", "TODO", "HACK", "OPTIMIZE", "FIXME", "WARN"],
  "todo-tree.highlights.customHighlight": {
    "NOTE": {
      "icon": "note",
      "background": "#e1fcf9",
      "opacity": 0
    },
    "TODO": {
      "icon": "check",
      "background": "#6fff00",
      "opacity": 0
    },
    "HACK": {
      "icon": "flame",
      "background": "#f05a03",
      "opacity": 0
    },
    "OPTIMIZE": {
      "icon": "rocket",
      "background": "#ff96f3",
      "opacity": 0
    },
    "FIXME": {
      "icon": "alert",
      "background": "#eadd1e",
      "opacity": 0
    },
    "WARN": {
      "icon": "alert",
      "background": "#ff0000",
      "opacity": 0
    }
  },
  "editor.tokenColorCustomizations": {
    "textMateRules": [
      {
        "scope": ["comment"],
        "settings": {
          "fontStyle": ""
        }
      }
    ]
  },
  "editor.glyphMargin": false,
  "editor.unicodeHighlight.ambiguousCharacters": false,
  "editor.unicodeHighlight.includeComments": true,
  "editor.copyWithSyntaxHighlighting": false,
  "editor.autoIndent": "advanced",
  "workbench.colorTheme": "Ayu Mirage Bordered",
  "workbench.iconTheme": "ayu",
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescript]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[typescriptreact]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[go]": {
    "editor.tabSize": 4,
    "editor.defaultFormatter": "golang.go"
  },
  "go.lintTool": "golangci-lint",
  "go.toolsManagement.autoUpdate": true,
  "[python]": {
    "editor.tabSize": 4,
    "editor.defaultFormatter": "ms-python.black-formatter"
  },
  "black-formatter.args": ["--skip-string-normalization", "--line-ranges=1-100"],
  "[css]": {
    "editor.suggest.insertMode": "replace",
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[SCSS]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[module.scss]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[json]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[shellscript]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[ruby]": {
    "editor.tabSize": 2,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[HTML]": {
    "editor.tabSize": 4,
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "lldb.library": "/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB",
  "lldb.launch.expressions": "native",
  "liveServer.settings.donotShowInfoMsg": true,
  "phpserver.phpPath": "",
  "git.openRepositoryInParentFolders": "never",
  "liveSassCompile.settings.formats": [
    {
      "format": "expanded",
      "extensionName": ".css",
      "savePath": "/css"
    }
  ],
  "editor.linkedEditing": true,
  "[html]": {
    "editor.defaultFormatter": "vscode.html-language-features"
  },
  "cSpell.userWords": ["destyle", "endsection", "uuidv"],
  "css.hover.references": false,
  "html.hover.references": false,
  "editor.fontSize": 13,
  "debug.console.fontSize": 13,
  "terminal.integrated.fontSize": 13,
  "chat.editor.fontSize": 13,
  "markdown.preview.fontSize": 13,
  "indentRainbow.tabmixColor": "rgba(128,32,96,0.4)",
  "indentRainbow.errorColor": "rgba(128,32,32,0.4)",
  "[javascriptreact]": {
    "editor.insertSpaces": true
  },
  "python.analysis.enablePytestSupport": false,
  "github.copilot.enable": {
    "*": true,
    "plaintext": false,
    "markdown": false,
    "scminput": false
  },
  "files.autoSave": "onFocusChange",
  "cursor.cpp.disabledLanguages": ["plaintext", "markdown", "scminput"],
  "workbench.editorAssociations": {
    "*.pdf": "pdf.preview"
  },
  "window.zoomLevel": 0.5,
  "editor.unicodeHighlight.invisibleCharacters": false,
  "editor.parameterHints.enabled": false,
  "editor.hideCursorInOverviewRuler": true,
  "editor.cursorWidth": 2,
  "editor.cursorBlinking": "solid",
  "editor.scrollbar.horizontalScrollbarSize": 4,
  "editor.scrollbar.verticalScrollbarSize": 4,
  "files.insertFinalNewline": true,
  "explorer.autoReveal": false,
  "workbench.colorCustomizations": {
    "editor.foldBackground": "#dbecff09"
  },
  "emmet.triggerExpansionOnTab": true,
  "blade.format.enable": true,
  "[blade]": {
    "editor.autoClosingBrackets": "always"
  },
  "terminal.integrated.defaultProfile.osx": "zsh",
  "terminal.integrated.enableImages": true,
  "github.copilot.chat.localeOverride": "ja",
  "wakatime.apiKey": "waka_5ab20e3f-0cda-4557-90c9-80e0fef40e9b",
  "github.copilot.editor.enableAutoCompletions": true,
  "[jsonc]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "prettier.printWidth": 90,
  "[scss]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "git.path": "/usr/bin/git",
  "terminal.integrated.enableMultiLinePasteWarning": "never",
  "workbench.panel.defaultLocation": "right",
  "terminal.integrated.tabs.location": "right",
  "terminal.integrated.defaultLocation": "editor",
  "terminal.integrated.cursorStyle": "line",
  "terminal.integrated.cursorWidth": 2,
  "terminal.integrated.cursorStyleInactive": "underline",
  "workbench.sideBar.location": "left",
  "editor.minimap.side": "left",
  "errorLens.statusBarIconsAlignment": "right",
  "files.eol": "\n",
  "pdf-preview.default.sidebar": true,
  "zenMode.hideLineNumbers": false,
  "githubPullRequests.pullBranch": "never",
  "git.enableSmartCommit": false,
  "coolcline.allowedCommands": [
    "npm test",
    "npm install",
    "tsc",
    "git log",
    "git diff",
    "git show"
  ],
  "leetcode.hint.configWebviewMarkdown": false,
  "leetcode.workspaceFolder": "",
  "github.copilot.chat.terminalChatLocation": "terminal"
}

  1. keybindings.json
// Place your key bindings in this file to override the defaultsauto[]
[
  // sidebar extension focus
  // cool cline
  {
    "key": "shift+ctrl+c",
    "command": "workbench.view.extension.claude-dev-ActivityBar",
    "when": "viewContainer.workbench.view.extension.claude-dev-ActivityBar.enabled"
  },
  // todo tree
  {
    "key": "shift+ctrl+t",
    "command": "workbench.view.extension.todo-tree-container",
    "when": "viewContainer.workbench.view.extension.todo-tree-container.enabled"
  },

  {
    "key": "alt+l alt+o",
    "command": "extension.liveServer.goOnline",
    "when": "editorTextFocus"
  },
  {
    "key": "cmd+l cmd+o",
    "command": "-extension.liveServer.goOnline",
    "when": "editorTextFocus"
  },
  {
    "key": "cmd+l cmd+s",
    "command": "liveSass.command.watchMySass"
  },
  {
    "key": "cmd+l cmd+q",
    "command": "liveSass.command.donotWatchMySass"
  },
  {
    "key": "alt+l alt+.",
    "command": "extension.liveServer.goOffline",
    "when": "editorTextFocus"
  },
  {
    "key": "cmd+l cmd+c",
    "command": "-extension.liveServer.goOffline",
    "when": "editorTextFocus"
  },
  {
    "key": "ctrl+shift+f",
    "command": "prettier.forceFormatDocument"
  },
  {
    "key": "ctrl+cmd+t",
    "command": "workbench.action.terminal.runActiveFile"
  },
  {
    "key": "ctrl+cmd+[BracketLeft]",
    "command": "workbench.action.toggleMaximizedPanel"
    // "when": "panelPosition == 'lerift'"
  },
  {
    "key": "cmd+n",
    "command": "-workbench.action.files.newUntitledFile"
  },
  {
    "key": "alt+cmd+f",
    "command": "explorer.newFile"
  },
  {
    "key": "alt+cmd+d",
    "command": "explorer.newFolder"
  },
  {
    "key": "ctrl+cmd+f",
    "command": "-workbench.action.toggleFullScreen",
    "when": "!isIOS"
  },
  {
    "key": "ctrl+cmd+f",
    "command": "editor.action.startFindReplaceAction",
    "when": "editorFocus || editorIsOpen"
  },
  {
    "key": "alt+cmd+f",
    "command": "-editor.action.startFindReplaceAction",
    "when": "editorFocus || editorIsOpen"
  },
  {
    "key": "f11",
    "command": "editor.action.rename",
    "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
  },
  {
    "key": "f2",
    "command": "-editor.action.rename",
    "when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
  },
  {
    "key": "f10",
    "command": "workbench.action.debug.stepInto",
    "when": "debugState != 'inactive'"
  },
  {
    "key": "f11",
    "command": "-workbench.action.debug.stepInto",
    "when": "debugState != 'inactive'"
  },
  {
    "key": "f9",
    "command": "workbench.action.debug.stepOver",
    "when": "debugState == 'stopped'"
  },
  {
    "key": "f10",
    "command": "-workbench.action.debug.stepOver",
    "when": "debugState == 'stopped'"
  },
  {
    "key": "ctrl+t",
    "command": "workbench.action.terminal.toggleTerminal",
    "when": "terminal.active"
  },
  {
    "key": "ctrl+`",
    "command": "-workbench.action.terminal.toggleTerminal",
    "when": "terminal.active"
  },
  {
    "key": "cmd+\\",
    "command": "workbench.action.terminal.split",
    "when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
  },
  {
    "key": "ctrl+shift+5",
    "command": "-workbench.action.terminal.split",
    "when": "terminalFocus && terminalProcessSupported || terminalFocus && terminalWebExtensionContributedProfile"
  },
  {
    "key": "ctrl+t",
    "command": "-editor.action.transposeLetters",
    "when": "textInputFocus && !editorReadonly"
  },
  {
    "key": "cmd+backspace",
    "command": "workbench.action.terminal.kill",
    "when": "terminalFocus"
  },
  {
    "key": "cmd+backspace",
    "command": "-workbench.action.terminal.killActiveTab",
    "when": "terminalHasBeenCreated && terminalTabsFocus || terminalIsOpen && terminalTabsFocus || terminalProcessSupported && terminalTabsFocus"
  },
  {
    "key": "shift+cmd+[",
    "command": "workbench.action.terminal.focusPreviousPane",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "alt+cmd+up",
    "command": "-workbench.action.terminal.focusPreviousPane",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "shift+cmd+]",
    "command": "workbench.action.terminal.focusNextPane",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "alt+cmd+down",
    "command": "-workbench.action.terminal.focusNextPane",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "ctrl+cmd+e",
    "command": "aichat.fixerrormessage",
    "when": "(arbitrary function)"
  },
  {
    "key": "shift+cmd+e",
    "command": "-aichat.fixerrormessage",
    "when": "(arbitrary function)"
  }
]