You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To support various use cases (such as a tutorial or helping bootstrap projects), I'd like to be able to create a file on the host with a specified filename and contents. I don't currently have the need to specify additional constraints like file permissions, but I could anticipate that might be needed at some point.
Current Limitations
Currently, I am working around this ability by adding an endpoint to my backend that my frontend invokes to drop the file into a directory that's bind mounted with the host. This works, but limits the location of files to that which the extension is mounting (which isn't configurable at runtime). Preferably, I'd like to use the new file picker to let the user choose a directory and then drop files there. If the SDK provided a supported mechanism to create files, I could do so without needing to create a proxy endpoint and volume configuration.
Proposal
As an idea of what I'd like to see, here are some rough typings (totally feel free to adjust these).
I'll admit I'm on the fence on whether the workingDirectory can/should be an option or if it should be expected that the invoker provides a full file path as the first argument. I'd probably leverage the new file picker functionality to pick a directory and simply pass that along. Might be nice to have the ability to set a default working directory, but that can be another discussion.
Elevator Pitch
To support various use cases (such as a tutorial or helping bootstrap projects), I'd like to be able to create a file on the host with a specified filename and contents. I don't currently have the need to specify additional constraints like file permissions, but I could anticipate that might be needed at some point.
Current Limitations
Currently, I am working around this ability by adding an endpoint to my backend that my frontend invokes to drop the file into a directory that's bind mounted with the host. This works, but limits the location of files to that which the extension is mounting (which isn't configurable at runtime). Preferably, I'd like to use the new file picker to let the user choose a directory and then drop files there. If the SDK provided a supported mechanism to create files, I could do so without needing to create a proxy endpoint and volume configuration.
Proposal
As an idea of what I'd like to see, here are some rough typings (totally feel free to adjust these).
I'll admit I'm on the fence on whether the
workingDirectory
can/should be an option or if it should be expected that the invoker provides a full file path as the first argument. I'd probably leverage the new file picker functionality to pick a directory and simply pass that along. Might be nice to have the ability to set a default working directory, but that can be another discussion.The text was updated successfully, but these errors were encountered: