microsoft / vscode

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

Can't Highlight Text By Draggin Mouse #181152

Open t-rupe opened 1 year ago

t-rupe commented 1 year ago

Type: Bug

I've disabled all extensions, I've deleted all all content inside the user settings.json i've tried reinstalling VSC. I've ensured drag and drop is enabled and that word wrap is disabled. I can highlight text in my browser and other applications just fine, it's only in VSC I can't highlight text/code. I really dont know what else to do to fix this issue it's infuriating.

VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:02.548Z) OS version: Windows_NT x64 10.0.22000 Modes: Sandboxed: No

System Info |Item|Value| |---|---| |CPUs|12th Gen Intel(R) Core(TM) i7-12700KF (20 x 3610)| |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: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|undefined| |Memory (System)|31.86GB (21.03GB free)| |Process Argv|--crash-reporter-id b92971e5-cf86-4b9c-a318-7c40c9c64eb7| |Screen Reader|no| |VM|0%|
Extensions (1) Extension|Author (truncated)|Version ---|---|--- LiveServer|rit|5.7.9
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263cf:30335440 pythondataviewer:30285071 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 nodejswelcome1cf:30587006 3biah626:30602489 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 a9j8j154:30646983 vsccsb:30705552 azdwalk:30721579 pythonms35:30701012 pythonfmttextcf:30716743 pythonclientmvcf:30725893 ```
tmolenh commented 9 months ago

I've been experiencing the same issue for a while now. The only workaround I've discovered is to reboot my system, which temporarily fixes the issue for me.

Some observations:

  1. When my system is in the repo state, it also repos with online editors (coderpad.io or vscode.dev) in MS Edge, but not Firefox, implying the issue is specific to Chromium.
  2. Dragging to select text is still functional, but only registers mouse movement from a few ms after clicking the mouse. For example, if I click and then move (or while already moving) the mouse very quickly, I can select a few characters at a time.
t-rupe commented 9 months ago

I've been experiencing the same issue for a while now. The only workaround I've discovered is to reboot my system, which temporarily fixes the issue for me.

Some observations:

  1. When my system is in the repo state, it also repos with online editors (coderpad.io or vscode.dev) in MS Edge, but not Firefox, implying the issue is specific to Chromium.
  2. Dragging to select text is still functional, but only registers mouse movement from a few ms after clicking the mouse. For example, if I click and then move (or while already moving) the mouse very quickly, I can select a few characters at a time.

Crazy you say that I've come to the same solution. The only way it's fixed is by restarting my computer. And in the mornings when I boot up my computer, I just immediately restart because without fail, the first startup will have this issue. It's so weird because i've tracked it down to not just VSC but also youtube and spotify. In spotify i can't select any of my songs, but i can play and pause. In youtube, if i'm in a playlist, it will just constantly reload the first video in the playlist over and over. It's the strangest thing. But thankfully just a restart fixes it. Wish I knew why it was happening

Sammyjroberts commented 6 months ago

Same issue, Made sure no keys were being pressed by my keyboard or mouse causing some weird side effect. Highlighting and everything works everywhere except vscode from my testing.

davidbuzz commented 4 months ago

mee too. restarting vs code wasnt enough for me either, rebooting my ubuntu seems to fix it.