microsoft / vscode

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

UI drag and drop not working #227897

Open George-Miao opened 2 weeks ago

George-Miao commented 2 weeks ago

Type: Bug

I think this is related to my specific environment but I'm not sure what triggers the problem. I'm on NixOS with Wayland (Hyprland), tried both latest stable and insider builds, no luck. $HOME/.config/Code is not linked or read-only, just norm directory.

VS Code version: Code 1.93.0 (4849ca9bdf9666755eb463db297b69e5385090e3, 2024-09-04T13:02:38.431Z) OS version: Linux x64 6.6.47 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 5950X 16-Core Processor (32 x 4566)| |GPU Status|2d_canvas: enabled
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off| |Load (avg)|3, 3, 2| |Memory (System)|125.70GB (118.16GB free)| |Process Argv|--crash-reporter-id db973166-fe65-4542-84a4-70dbea71647e| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|undefined| |XDG_CURRENT_DESKTOP|Hyprland| |XDG_SESSION_DESKTOP|undefined| |XDG_SESSION_TYPE|wayland|
Extensions disabled
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 welcomedialogc:30910334 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 g316j359:31013175 a69g1124:31058053 dvdeprecation:31068756 dwnewjupytercf:31046870 impr_priority:31102340 refactort:31108082 pythonrstrctxt:31112756 flightc:31119335 wkspc-onlycs-t:31132770 wkspc-ranged-c:31125598 ei213698:31121563 ```
bpasero commented 2 weeks ago

How about trying the same on https://vscode.dev/ ?

George-Miao commented 2 weeks ago

vscode.dev works. I feel it's related to my local config, could you please tell me where are the files that I should look into?

George-Miao commented 2 weeks ago

Also, changing order works on my Mac, which has settings sync turned on and shared same profiles with my Code/Code Insiders on linux.

hypergonial commented 2 weeks ago

I can reproduce this on stable (1.93.0) and latest insiders, but only if VS Code runs natively under wayland. Drag&Drop works under XWayland.

Some system info:

Also I have GTK_USE_PORTAL=1 set, not sure if that changes anything.