microsoft / vscode

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

r.runSelectionRetainCursor fails to retain cursor when opening a second html viewer #174210

Closed kendonB closed 1 year ago

kendonB commented 1 year ago

Type: Bug

Open an R file with code:

library(gt)
library(tidyverse)
gt(mtcars)

Place the cursor here

library(gt)
library(tidyverse)
gt(mt|cars)

Press Alt+Enter to trigger r.runSelectionRetainCursor ( the cursor is correctly retained). Press Alt+Enter to trigger r.runSelectionRetainCursor again (focus goes somewhere else).

VS Code version: Code 1.75.0 (e2816fe719a4026ffa1ee0189dc89bdfdbafb164, 2023-02-01T15:29:17.766Z) OS version: Linux x64 5.18.0-051800-generic Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-1270P (16 x 2500)| |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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|2, 2, 2| |Memory (System)|31.05GB (8.12GB free)| |Process Argv|. --crash-reporter-id 109ba974-f9f3-4dd2-ae16-615ad0e4b375| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu-xorg| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu-xorg| |XDG_SESSION_TYPE|x11|
Extensions (24) Extension|Author (truncated)|Version ---|---|--- path-intellisense|chr|2.8.4 copilot|Git|1.72.8614 gc-excelviewer|Gra|4.2.56 path-autocomplete|ion|1.23.1 latex-workshop|Jam|9.6.2 language-julia|jul|1.38.2 csharp|ms-|1.25.4 isort|ms-|2022.8.0 python|ms-|2023.2.0 vscode-pylance|ms-|2023.2.20 jupyter|ms-|2023.1.2010391206 jupyter-keymap|ms-|1.0.0 jupyter-renderers|ms-|1.0.14 vscode-jupyter-cell-tags|ms-|0.1.6 vscode-jupyter-slideshow|ms-|0.1.5 cmake-tools|ms-|1.13.45 cpptools|ms-|1.13.9 cpptools-extension-pack|ms-|1.3.0 quarto|qua|1.65.0 r-debugger|RDe|0.5.2 r|REd|2.7.0 tabletopsimulator-lua|rol|1.1.3 lua|sum|3.6.10 cmake|twx|0.0.17 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30660299 azure-dev_surveyone:30548225 pyindex848:30577860 nodejswelcome1:30587005 3biah626:30602489 89544117:30613380 pythonsymbol12cf:30657549 vsctsb:30659830 vscodedisable:30660115 ```
VSCodeTriageBot commented 1 year ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.75.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

kendonB commented 1 year ago

The bug remains on the new version.

alexdima commented 1 year ago

r.runSelectionRetainCursor is a command contributed from an extension. Please report the issue directly against the respective extension.