microsoft / vscode

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

[BUG] [1.94 Regression] VS Code uses the wrong, deprecated file/folder picker on Gnome. #231173

Open 103sbavert opened 1 week ago

103sbavert commented 1 week ago

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

Steps to Reproduce:

  1. Open a new VS Code window
  2. Click on "Open folder" from the primary sidebar.

Expected:

VS Code opens the default Nautilus file explorer that it used to show priot to 1.94 update (see screenshot). Image

Actual observation: VS Code opens the GTK file explorer that is deprecated on Gnome in favor of the native file chooser Image

Additional information: Prior to Gnome 47, the difference between the GTK file chooser and the nautilus file chooser was minimal. But since 47, the Gnome team has made massive improvements to the default file chooser which used to open perfectly correctly before the September 1.94 update.

deepak1556 commented 1 week ago

Between 1.93 and 1.94 there is an increase in the required portal version to support defaultPath feature. Otherwise users will face the following issue https://github.com/microsoft/vscode/issues/213780

There isn't a release of xdg-desktop-portals yet that covers the feature, so the older gtk based dialogs will be used till then. https://github.com/electron/electron/issues/43819#issuecomment-2379445244 has additional context

lucassith commented 1 day ago

It happens for me as well, and I'm not using gnome but KDE.

It is enough just to click on "File" for VSCode to crash. I'm using Arch Linux with Code built aur build.

It started happening after last update of the desktop environment.