Open babakfp opened 2 months ago
@bpasero this is probably coming from the history service. We could add a check to see if the file exists. Would you like to fix this in the history service or should I fix it the file dialog service?
I believe the native dialog would refuse to accept an invalid path that does not exist, so I think the simple dialog could do the same. But I worry that we waste a fs
call everytime the dialog opens...
Yes, I would need to make an fs
call each time the dialog opens.
Hi 👋
Sorry for the late response.
This is what I expect to happen:
"files.dialog.defaultPath"
.I think its probably best to do some kind of validation at these methods:
And not do it in each component that asks for this path.
Treating as feature request.
I was able to reproduce this issue, https://github.com/microsoft/vscode/issues/210344.
Does this issue occur when all extensions are disabled?: Yes
Version: 1.92.2 (user setup) Commit: fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631
Steps to Reproduce:
https://github.com/user-attachments/assets/ee239dff-528e-40f0-9431-3d155ecddd7a