Microsoft/vscode

Workbench navigation commands stop working inside WebView when switching to another editor and back

Open

#151.292 aberto em 5 de jun. de 2022

Ver no GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (10.221 forks)batch import
bughelp wantedwebview

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

Description

Issue Type: Bug

CC @mjbvz Followup to #137167 which is still reproducible for me

Steps to reproduce

  • Open a vanilla VSCode with no settings and extensions:
code --user-data-dir /tmp/vscode-repro-nav --disable-extensions
  • Set the following keybindings:
[
  {
    "key": "f1",
    "command": "workbench.action.navigateLeft"
  },
  {
    "key": "f2",
    "command": "workbench.action.navigateRight"
  }
]
  • Open some file, say test.py
  • Use workbench.action.splitEditorRight to split the editor to the right
  • Use update.showCurrentReleaseNotes to open the Release Notes WebView
  • Click with the mouse inside the Release Notes WebView
  • Type F1 from the WebView to navigate to the left editor: it works following 6e5b172
  • Navigate in the right editor group (where the Release Notes WebView are open) to the file test.py with the keyboard (for example using Ctrl+Tab)
  • Navigate back to the Release Notes WebView with the keyboard (for example using Ctrl+Tab)
  • Type F1 from the WebView to navigate to the left editor: it no longer works

VS Code version: Code 1.67.2 (c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5, 2022-05-17T18:23:40.286Z) OS version: Linux x64 5.17.11 Restricted Mode: No

Item Value
CPUs Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabled_forceraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: disabled_softwarevideo_encode: disabled_softwarevulkan: disabled_offwebgl: enabledwebgl2: enabled
Load (avg) 3, 2, 2
Memory (System) 94.00GB (15.81GB free)
Process Argv --enable-gpu-rasterization --user-data-dir /tmp/vscode-repro-nav --disable-extensions --crash-reporter-id 1a24c498-5487-42be-8c72-40410e66ca6b
Screen Reader no
VM 0%
DESKTOP_SESSION custom
XDG_CURRENT_DESKTOP Xsession
XDG_SESSION_DESKTOP custom
XDG_SESSION_TYPE x11
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyl392:30443607
pythontb:30283811
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdc:30486549

Guia do colaborador