Skip to content

menu contributions to debug/watch/context ignored #237750

@adrianstephens

Description

@adrianstephens

Type: Bug

  1. create a vscode extension with this contribution:
  "contributes": {
    "commands": [{
      "command": "extension.myWatchCommand",
      "title": "My Watch Command"
    }],
    "menus": {
      "debug/variables/context": [{
        "command": "extension.myWatchCommand",
      }],
      "debug/watch/context": [{
        "command": "extension.myWatchCommand"
      }]
    }
  }

  1. With the extension installed, start a debug session in vscode
  2. Right-click an entry in the variable panel, and note that 'My Watch Command' appears in the context menu
  3. Right-click an entry in the watch panel, and note that 'My Watch Command' does not appear context menu

OK, maybe not a 'bug' per-se, but not really a feature request either (because that would require months of negotiation and backlogging, etc). I'd call this an 'oversight'

VS Code version: Code 1.96.2 (Universal) (fabdb6a, 2024-12-19T10:22:47.216Z)
OS version: Darwin arm64 24.1.0
Modes:

System Info
Item Value
CPUs Apple M4 (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 7, 4, 3
Memory (System) 16.00GB (0.24GB free)
Process Argv --crash-reporter-id 6e06ef7f-0758-449d-bad8-b85f9dd6a2fc
Screen Reader no
VM 0%
Extensions (35)
Extension Author (truncated) Version
android-dev-ext ade 1.4.0
rtf ale 2.8.0
amazon-q-vscode ama 1.42.0
vscode-eslint dba 3.0.10
doublebot dou 0.0.188
vscode-commands fab 2.0.2
copilot Git 1.256.0
copilot-chat Git 0.23.2
gitweb iso 1.0.1
modules iso 1.0.1
better-cpp-syntax jef 1.27.1
svn-scm joh 2.17.0
vscode-dotnet-runtime ms- 2.2.3
debugpy ms- 2024.14.0
python ms- 2024.22.2
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
cmake-tools ms- 1.19.52
cpptools ms- 1.22.11
cpptools-extension-pack ms- 1.3.0
hexeditor ms- 1.11.1
remote-explorer ms- 0.4.3
vscode-serial-monitor ms- 0.13.1
platformio-ide pla 3.3.4
rust-analyzer rus 0.3.2257
vscode-3dviewer sle 0.2.2
memento-inputs spa 1.0.0
cmake twx 0.0.17
cursor-align yo1 2.0.4

(1 theme extensions excluded)

A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupytercf:31046870
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions