-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[filesystem] File dialog seems to use wrong folder when opened #4862
Comments
I think too that the dialog should open a given folder, not its parent. I think it is because of historical reasons. It was implemented for |
@federicobozzini apparently with our implementation we always go one level higher when opening the file dialog as seen here: This means that wether we pass a file or directory URI when calling the |
Fixing this would require breaking backward compatibility, are you OK with that? |
Maybe we don't necessary need to break the compatibility. Perhaps we can introduce a new optional parameter One such option can be where to open the dialog from (ex: folder, parent of folder, workspace root), and would default to our current implementation so that clients would not be broken by this change. |
@vince-fugnitto I think it would be quite unusual to have a folder parameter and at the same time an option to use a different folder like the workspace root, but ithat's certainly an option. |
@federicobozzini I agree, I'm just worried about breaking clients who use the open-dialog-service and notice different results. I'm fine however on making it right, so if breaking is the way to go I'm all for it! 😄 I thought that with @akosyakov what do you think? Would it be fine to break the compatibility like @federicobozzini suggested? |
I'm fine with breaking. But here i again come to this issue: #4797 We should test and align it with VS Code. I wish someone already creates such extension. |
Description
When a file dialog is opened, it's possible to pass a folder parameter. What I would personally expect would be to see the file dialog getting opened in that folder, what instead happens is that the parent of the folder parameter is used.
This is not the behaviour I would expect and makes it impossible to open a folder that has no subfolders.
Is there a reason behind this?
The text was updated successfully, but these errors were encountered: