-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pasting from the clipboard into an editor no longer works, instead causing the cursor to jump to seemingly random places #234466
Comments
This is not limited to pasting. Ctrl+a or using the "select all" from palet also doesn't select the entire file. Something seems to have screwed up really badly in the latest insider release. |
Latest version is bad, 1.96.0.20241122 user installer
Last good version that doesn't have this bug is the one before that, 1.96.0.20241121 user installer
|
This impact both Linux and Mac as well, and is a real showstopper issue. Seeing both the select-all behavior (which seems to break at the first pt where intellicode has an issue with the src), and the paste behavior (where jumping appears tied to similar "fixed" src points). As for the paste behavior, if you subsequently paste at the jumped-to location, the paste op works. Unfortunately, the jump isn't "relative" so you cannot compensate for it and thereby paste to where you want. Instead, the jump-to points appear associated with something in the src, and appear fixed, so between one and the next, any attempts to paste between jump to the immediately prior pt. Difficult to explain, can try to produce a screencast if needed (will reply and post here if asked). No clue if any help, but 234240 & 234244 both seem around proper timeframe and area, but also could 100% be red herrings. BTW, Neurrone, can you or someone please provide user installers for that "Last Known Good" (LKG) for Linux and Mac as well? Or provide a link to the instructions how we can locate them for ourselves? I've never had luck finding installers for prior releases of insiders. |
I wish there was an easier way of finding old releases. I went to the VS Code website and after downloading the latest insiders build, used the downloads manager in the browser to look at the file's link. Use that to reverse-engineer the link to a previous version. Remember that even after you manage to revert to a previous version, it will automatically update you to the current bad version. So you'll have to disable automatic updates as well. |
Yes, it's especially vexing when you need to try and verify when a problem occurred -- I saw this the day it released, but couldn't step back, so wasn't confident reporting until I'd done a bunch of extension removal, etc. which took me days. Had I been able to step back to the prior day's release, I would have had enough data to report this on the 22nd. Inability to roll back to earlier insiders releases really is limiting users' ability to debug issues. This "only ever forward" mindset is explicitly contrary to basic debugging/triage first principles. |
To get back to the topic, I've seen the jump-instead-of-paste misbehavior occur for C/C++, Arduino(.INO), Markdown(.MD), Rust, |
Hi thank you for filing this issue, this seems to be related to the combination of the edit context and the screen reader mode being enabled. I will turn off the edit context by default on Insiders, investigate all the issues and turn it back on later. I am very sorry this caused issues for you and will fix the issue. |
Just to update, yes, turning off the screen reader optimization does eliminate the odd jump-instead-of-paste behavior here. Doesn't really present a viable mitigation for accessibility reasons, but it does stop the behavior. I'll test whether disabling the default edit context works here, if you can provide a means of doing so? Lacking any user instructions for disabling default edit context, is there any ETA when we can expect to see this in an insider's update? As it stands, vscode has become nigh-useless for coding here due to this issue, because muscle-memory regarding cut&paste use means it is basically hard-wired into how I edit. |
Version: 1.96.0-insider ProductName: macOS I can reproduce a similar issue on macOS.
jumpcursor.mov |
Hi @gwiede thank you for the message. The setting name to disable the edit context is: "editor.experimentalEditContextEnabled" Hi @tamuratak thank you for filing this issue, it is very valuable and I will investigate it. I filed an issue here #234737 One thing I may implement is to enable the edit context by default only when the screen reader mode is disabled. This will allow me to turn it on for non screen reader users and investigate other bugs in the meantime. |
My investigation has revealed the pasting issue happens for the following reason:
There are several possibilities for how to fix this:
I will think of other potential solutions |
Type: Bug
I'm noticing this behaviour in a Python file. When pressing ctrl+v to paste from the clipboard, my cursor instead jumps to a random position, and no text is pasted.
Working on a minimal reproduceable test case.
VS Code version: Code - Insiders 1.96.0-insider (9086857, 2024-11-22T09:56:24.579Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2
System Info
canvas_oop_rasterization: enabled_on
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
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (17)
The text was updated successfully, but these errors were encountered: