vscode icon indicating copy to clipboard operation
vscode copied to clipboard

support data URI's in image preview

Open jogibear9988 opened this issue 11 months ago • 1 comments

support data URI's for image preview

fixes https://github.com/microsoft/vscode/issues/237220

jogibear9988 avatar Jan 03 '25 09:01 jogibear9988

It works, but the URI is used as the filename:

image

Is there a way to change this? I open via

				let img = vscode.Uri.parse('data:image/svg+xml;base64,' + itemResult.data);
				await vscode.commands.executeCommand('vscode.openWith', img, 'imagePreview.previewEditor');

jogibear9988 avatar Jan 03 '25 19:01 jogibear9988