Change:
when: ContextKeyExpr.or(ContextKeyExpr.and(CONTEXT_IN_CHAT_SESSION, CONTEXT_IN_CHAT_INPUT.negate()), accessibleViewInCodeBlock), primary: KeyMod.CtrlCmd | KeyCode.Enter, mac: { primary: KeyMod.WinCtrl | KeyCode.Enter }, <del> weight: KeybindingWeight.WorkbenchContrib </del> <ins> weight: KeybindingWeight.ExternalExtension + 1 </ins> }, }); }

Discussion:
Type: <bBug</bCC command works only from inside the Accessible View; it does not work when invokved from the code block area of the Copilot Chat View. VS Code version: Code - Insiders 1.88.0-insider (, 2024-03-25T05:49:32.344Z) OS version: WindowsNT x64 10.0. Modes: <details<summarySystem Info</summary </details<details<summaryExtensions (119)</summaryExtensionVersion ------ vscode-openapi4.25.1 zotenote1.0.1 android-dev-ext1.4.0 aiprm-lang0.0.2 Bookmarks13.4.2 openscad1.2.2 spellright3.0.122 mermaid-markdown-syntax-highlighting1.6.0 doxdocgen1.4.0 vscode-markdownlint0.53.0 vscode-eslint2.4.4 vscode-quick-select0.2.9 vscode-deno3.35.1 gitlens14.6.1 EditorConfig0.16.4 prettier-vscode10.1.0 vscode-firefox-debug2.9.10 shell-format7.2.5 vscode-google-translate1.4.13 codespaces1.16.17 copilot1.175.784 copilot-chat0.14. remotehub0.62.0 vscode-github-actions0.26.2 vscode-pull-request-github0.85.

cloudcode2.6.0 overleaf-workshop0.11.0 cslpreview0.2.2 easy-snippet0.7.5 path-autocomplete1.25.0 latex-workshop9.19.1 lilypond-syntax0.1.1 scheme0.2.0 better-cpp-syntax1.17.2 commitlint2.5.1 language-julia1.75.2 google-search0.0.1 vscode-lua-format1.3.8 lilypond-formatter0.2.3 lilypond-pdf-preview0.2.8 lilypond-snippets0.1.1 vslilypond1.7.3 git-graph1.30.0 azure-dev0.8.1 vscode-azureappservice0.25.2 vscode-azurecontainerapps0.6.1 vscode-azurefunctions1.14.0 vscode-azureresourcegroups0.8.3 vscode-azurestaticwebapps0.12.2 vscode-azurestorage0.15.3 vscode-azurevirtualmachines0.6.5 vscode-cosmosdb0.21.0 vscode-docker1.29.0 vscode-edge-devtools2.1.5 black-formatter2024.1. debugpy2024.3. flake82023.10.0 isort2023.13. python2024.3. vscode-pylance2023.12.103 jupyter2024.1. jupyter-keymap1.1.2 jupyter-renderers1.0.17 vscode-jupyter-cell-tags0.1.8 vscode-jupyter-slideshow0.1.5 remote-containers0.352.0 remote-ssh0.110. remote-ssh-edit0.86.0 remote-wsl0.81.8 vscode-remote-extensionpack0.25.0 azure-account0.11.6 azure-repos0.38.0 cmake-tools1.17.17 cpptools1.19.9 cpptools-extension-pack1.3.0 js-debug-nightly2024.3.2217 powershell2024.3.1 remote-explorer0.5. remote-repositories0.40.0 remote-server1.6.

vscode-github-issue-notebooks0.0.130 vscode-node-azure-pack1.2.0 vscode-selfhost-test-provider0.3.25 vscode-serial-monitor0.11.0 vscode-speech0.7. vscode-speech-language-pack-ko-kr0.1.0 vsliveshare1.0.5918 windows-ai-studio0.2.4 autodocstring0.6.1 pandocciter0.10.4 shiny-python0.1.6 shinyuieditor0.5.0 quarto1.111.0 r-debugger0.5.4 java1.28.1 vscode-xml0.26.1 vscode-yaml1.14.0 r2.8.2 multi-command1.6.0 vscode-deepl1.1.1 abc-music0.4.0 lua3.7.4 latex-utilities0.4.13 cmake0.0.17 vscode-terminal-here0.2.4 windows-terminal0.7.0 errorlens3.16.0 intellicode-api-usage-examples0.2.8 vscodeintellicode1.2.30 vscode-conventional-commits1.25.0 vscode-arduino0.6. vscode-java-debug0.56.2 vscode-java-dependency0.23.5 vscode-java-pack0.25.15 vscode-java-test0.40.1 vscode-maven0.44.0 zotero-cite0.8.2 markdown-all-in-one3.6.2 grammarly0.25.0 (1 theme extensions excluded) </details<details<summaryA/B Experiments</summary</details<!-- generated by issue reporter --
I see this when I try that !
Looks like we should be overriding that or going with a different keybinding.
Note that this also doesn't work when in the accessible view. I believe has somehow worked around that by tweaking his keybindings / clauses.
You are correct. I had to tweak around my keybindings to make it work.