Feature Request
Add support for setting the contents of files created by workspace edits
My proposed would be to add a contents option to createFile:
createFile(uri: Uri, options?: { overwrite?: boolean; ignoreIfExists?: boolean; contents?: UInt8Array }, metadata?: WorkspaceEditEntryMetadata): void;
Use case
For #147481, we want to support copying images from desktop into vscode.dev with drag and drop. Right now we have to use the fs apis to create the image file
Using a workspace edit would let us express the entire operation in a single WorkspaceEdit, which will play more nicely with undo/redo
Feature Request
Add support for setting the contents of files created by workspace edits
My proposed would be to add a
contentsoption tocreateFile:Use case
For #147481, we want to support copying images from desktop into vscode.dev with drag and drop. Right now we have to use the
fsapis to create the image fileUsing a workspace edit would let us express the entire operation in a single
WorkspaceEdit, which will play more nicely with undo/redo