quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
280 stars 19 forks source link

Annoying cursor issue in Quarto Visual Editor for python code cell #340

Open vidyasagarbhargava opened 6 months ago

vidyasagarbhargava commented 6 months ago

The cursor comes back to the start of python code cell after I switch back from other screen using cmd+tab.

vscode Version: 1.85.1

https://github.com/quarto-dev/quarto/assets/5356632/1bb84b80-96c0-455c-a076-9b5a3fabe841

falbukrek commented 6 months ago

The same issue occurs for R code blocks as well.

jjallaire commented 5 months ago

Yes, this is a known issue which we regrettably don't have a fix for yet. It's a bit harder than it appears as the visual editor is an iframe which VS Code itself is focusing directly with and then the code block yet another component that has non-trivial internal focus management code. Hopefully we will be able to sort this out soon!