Skip to content
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

Save Dialog - Open Local File Browser - Response returns relative path which cannot be found #506

Open
jmiles17 opened this issue Apr 25, 2023 · 0 comments

Comments

@jmiles17
Copy link

I have an extension with a save feature (exporting data in csv, json, etc) that uses vscode.window.showSaveDialog

In a remote environment, when a user tries to save data and selects a local location through the file browser, then the response uri's path and fsPath that are returned are relative paths/filenames. The response's scheme is "vscode-local"

When a user selects a local location through the dropdown (by clicking through the directories), the response uri's path and fsPath that are returned are absolute paths such as "/mnt/c/Users/../output.json"

I am wondering how to resolve the "vscode-local" file scheme into the absolute directory path, so that I can access and save to this location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant