This commit is contained in:
notoriousmango
2024-11-27 17:25:41 +09:00
parent 0715a50f63
commit ea6463e38c

View File

@@ -16,7 +16,7 @@ export class OpenImageCommand implements Command {
public execute(args: { resource: string; imageSource: string }) {
const source = vscode.Uri.parse(args.resource);
const imageSource = vscode.Uri.file(vscode.Uri.parse(args.imageSource).path);
vscode.commands.executeCommand('vscode.open', imageSource, this._webviewManager.findPreview(source));
const imageSourceUri = vscode.Uri.file(vscode.Uri.parse(args.imageSource).path);
vscode.commands.executeCommand('vscode.open', imageSourceUri, this._webviewManager.findPreview(source));
}
}