use openDocumentLink

This commit is contained in:
notoriousmango
2024-12-15 00:01:28 +09:00
parent ea6463e38c
commit f7c3b1b474
3 changed files with 9 additions and 5 deletions

View File

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