Skip to content

Switch group command not working as expected #97992

Closed

Description

Issue Type: Bug

When having Python interactive window open and try to switch to that group (normally with Cmd + 2), the cursor will disappear instead of going to the "command line" (the space to write commands). Then when trying to go back to editor with Cmd + 1, this won't work again so I need to use the mouse to click where I want to go. This is happening since the last update. It's important to mention that this problem is exclusive for Python Interactive. When using editors, it works fine.

VS Code version: Code 1.45.1 (5763d90, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 19.4.0

System Info
Item Value
CPUs Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz (4 x 2700)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 1, 2, 2
Memory (System) 8.00GB (1.19GB free)
Process Argv .
Screen Reader no
VM 0%
Extensions (2)
Extension Author (truncated) Version
python ms- 2020.5.78807
vim vsc 1.14.3

Activity

  1. bpasero commented on May 18, 2020

    @bpasero
    Contributor

    Sounds like a webview issue to me. Maybe caused by extension, not sure.

  2. antonioriverov commented on May 24, 2020

    @antonioriverov
    Author

    I'm not sure. I disabled the extensions but this kept happening. I had to go back to version 1.44.2 for it to work again.

  3. added
    bug
    help wanted
    webview
    on Jun 2, 2020
  4. added this to the Backlog milestone on Jun 2, 2020
  5. joyceerhl commented on Jun 2, 2020

    @joyceerhl
    Contributor

    Hi Matt Bierner (@mjbvz) 👋 I work on the Python extension data science team. We've had multiple users report this issue on our repo: #11808 and #12088.

    This bug does not manifest with 1.44.2 and the latest release of our Python extension (2020.5.80290). In ^1.45, it appears that our webview within the panel doesn't receive focus when the user switches to a group containing it using the Ctrl+1/2 keyboard shortcut. Specifically, focus fires when the user directly clicks on the webview, but not with the keyboard shortcuts.

    Would you happen to have an idea of when / how this can be fixed, and any workarounds we can use in the interim to ensure our webview receives focus with keyboard shortcuts?

  6. mjbvz commented on Jun 2, 2020

    @mjbvz
    Contributor

    Joyce Er (@joyceerhl) Are any other keyboard shortcut not working?

  7. joyceerhl commented on Jun 2, 2020

    @joyceerhl
    Contributor

    I've only been testing switching groups since that's what users reported an issue with, so just Ctrl+1/2/3 etc. Sorry if my original comment was ambiguous!

  8. mjbvz commented on Jun 2, 2020

    @mjbvz
    Contributor

    This is a lower priority issue since those keyboard short cuts are not super heavily used.

    It sounds like the core of https://github.com/microsoft/vscode-python/issues/11808 is that focus is not restored once the interactive window is refocused. I can repo this just by clicking away from the python interactive window and then clicking on the interactive window tab. I believe that needs to be fixed in the interactive window's implementation

  9. 28 remaining items

  10. rchiodo commented on Jan 28, 2021

    @rchiodo
    Contributor

    Yeah we have the same inconsistency in the jupyter extension. I can't repro the problem anymore myself.

  11. dynamicwebpaige commented on Mar 15, 2021

    @dynamicwebpaige

    It sounds like this bug makes working in Python interactive mode on remote infrastructure, using only a keyboard, impossible. Is that a correct assumption?

  12. rchiodo commented on Mar 15, 2021

    @rchiodo
    Contributor

    Paige Bailey (@dynamicwebpaige) impossible might be too strong a word, but it's certainly harder. When it doesn't work, you'll sometimes end up with focus elsewhere. You can then tab or hit CTRL+1 again to try a second time.

  13. mjbvz commented on Oct 20, 2021

    @mjbvz
    Contributor

    The interactive window now is built into VS Code instead of being a webview, so this issue should no longer happen for it

    However I also tested this on Mac and Windows using a simple textarea inside a webview. On Mac, both cmd+# and ctrl+# work for me. On windows: ctrl+# and alt+# are also working for me

    If you are still seeing this issue in any webview, please let me know specifically what type of webview you have opened and where you are focused when trying to trigger the shortcuts

  14. added
    verified
    on Oct 29, 2021
  15. locked and limited conversation to collaborators on Dec 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedverification-foundverifiedwebview

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions