microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.62k stars 29.03k forks source link

workingSets branch switch pulls focus from terminal #213270

Closed swannypp closed 5 months ago

swannypp commented 5 months ago

Type: Bug

With the new feature, enabled by scm.workingSets.enabled, if you are in the terminal and switch branches, the focus shifts back to the editor pane. This is super annoying, as often after a git checkout <branch> in the terminal, I'll want to do a git merge main, but since the focus is pulled to the editor, the commands get typed in the editor pane rather than the terminal.

VS Code version: Code 1.89.1 (Universal) (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:14:24.611Z) OS version: Darwin x64 23.5.0 Modes: Remote OS version: Linux x64 5.4.0-1119-azure-fips

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2200)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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| |Load (avg)|3, 3, 3| |Memory (System)|16.00GB (0.03GB free)| |Process Argv|--crash-reporter-id 7eddaa26-74d8-4e89-a196-ace496bb64e1| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: remote-workspace| |OS|Linux x64 5.4.0-1119-azure-fips| |CPUs|Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (4 x 2793)| |Memory (System)|15.62GB (7.44GB free)| |VM|0%|
Extensions (33) Extension|Author (truncated)|Version ---|---|--- remote-ssh|ms-|0.109.0 remote-ssh-edit|ms-|0.86.0 remote-explorer|ms-|0.4.3 vscode-sql-formatter|adp|1.4.4 vscode-bazel|Baz|0.10.0 vscode-intelephense-client|bme|1.10.4 vscode-tailwindcss|bra|0.10.5 better-phpunit|cal|1.6.2 vscode-eslint|dba|2.4.4 gitlens|eam|15.0.4 prettier-vscode|esb|10.4.0 vscode-codeql|Git|1.13.0 vscode-github-actions|git|0.26.2 vscode-pull-request-github|Git|0.88.1 go|gol|0.41.4 terraform|has|2.30.1 vscode-test-explorer|hbe|2.21.1 protobuf-helper|hua|0.2.10 phpcs|ika|1.0.5 vscode-colorize|kam|0.11.1 makefile-tools|ms-|0.9.10 test-adapter-converter|ms-|0.1.9 php-docblocker|nei|2.7.0 sql-styler|obo|0.1.3 vetur|oct|0.37.3 go-coverage-viewer|sor|1.0.4 code-spell-checker|str|3.0.1 code-spell-checker-australian-english|str|1.1.6 tiltfile|til|0.0.3 volar|Vue|2.0.8 php-debug|xde|1.34.0 local-history|xyz|1.8.1 vscode-proto3|zxh|0.5.5
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 tftest:31042121 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaat:30438848 c4g48928:30535728 azure-dev_surveyone:30548225 2i9eh265:30646982 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 2e7ec940:31000449 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 chatpanelc:31048052 dsvsc021:30996838 g316j359:31013175 pythoncenvpt:31049070 a69g1124:31046351 dvdeprecation:31052039 pythonprc:31047982 dwnewjupyter:31046869 26j00206:31048877 ```
gjsjohnmurray commented 5 months ago

/duplicate of https://github.com/microsoft/vscode/issues/212048

vscodenpa commented 5 months ago

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.

Happy Coding!