openvscode-server icon indicating copy to clipboard operation
openvscode-server copied to clipboard

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

Open jmiles17 opened this issue 2 years ago • 0 comments

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.

jmiles17 avatar Apr 25 '23 20:04 jmiles17