mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
use openDocumentLink
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user