microsoft / vscode

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

Linux file dialog does not use default file path #213780

Open aeschli opened 1 month ago

aeschli commented 1 month ago

Testing #213763

Version: 1.90.0-insider Commit: fc8762e773c35d4e52e8a7375704af2e24698e5d Date: 2024-05-29T05:51:07.154Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 5.15.0-107-generic

It should open on the folder of the currently active editor

aeschli commented 1 month ago

Same problem with open folder dialog

manelio commented 1 month ago

VS Code is awesome, but the open file dialog on Linux has been ridiculously buggy for years.

More than two years to fix the problem of the dialog opening in the background.

The fix, in the latest version, involves using a dialog inside a portal with no type-ahead support that opens in $HOME or recent files.

The open/save file dialog is a crucial control in any application. There should be a way to use the native OS dialog.

I'm going to downgrade to the previous version (1.89.1) and keep it as long as it takes.

bpasero commented 1 month ago

cc @codebytere

deepak1556 commented 1 month ago

We hadn't patched the portal code to support most of the file dialogs options, it is being addressed via https://github.com/electron/electron/pull/42308.

deepak1556 commented 5 days ago

This is now addressed in the runtime via https://github.com/electron/electron/pull/42655, fix will be available once we adopt https://github.com/microsoft/vscode/pull/215406