microsoft / vscode

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

Cursor always stick to the end of line in Notebooks #231773

Open JotaRata opened 1 week ago

JotaRata commented 1 week ago

Does this issue occur when all extensions are disabled?: Yes

I'm having a particular weird issue where I'm unable to select specific parts of a line inside a Jupyter notebook cell and instead my cursor is placed at the end of the lines, unless I modify it.

I attach a video describing the situation, note that I am clicking any point within the line but the cursor is always sticking to the rightmost side of it (for most lines). I cannot select a specific part of the lines and double clicking will select the whole line instead.

https://github.com/user-attachments/assets/1baaa8ed-6b82-4e0b-b0da-7e579ee4f985

Steps to Reproduce:

  1. Have a Jupyter notebook opened, in my case I'm using it through WSL. I'm still not quite sure what causes it, because it often happens when reloading/opening the notebook from disk but sometimes it appears to be triggered when cells are unrendered from view.
  2. Click on any recently unmodified line, the cursor should jump to the end

Console log doesn't show anything and/or maybe I haven't checked on every log. From what I know, disabling extensions (except WSL) doesn't fix the issue and it can still be triggered when selecting a line in another cell.

rebornix commented 6 days ago

@JotaRata do you run into the same issue when using notebook from local workspace (non-WSL)?

vs-code-engineering[bot] commented 6 days ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

JotaRata commented 6 days ago

@JotaRata do you run into the same issue when using notebook from local workspace (non-WSL)?

I did it on my office computer that uses Ubuntu and the same happened.

I am not sure about windows, I will test it tomorrow in a local workspace.