{
{oldFile}
{constFileMovementSymbol}
- {this.props.committedFile.relativePath}
+ this.props.onAction(this.props.committedFile, 'goto')}
+ >
+ {this.props.committedFile.relativePath}
+
diff --git a/src/server/apiController.ts b/src/server/apiController.ts
index d3f06ed4..c853d13e 100644
--- a/src/server/apiController.ts
+++ b/src/server/apiController.ts
@@ -205,6 +205,12 @@ export class ApiController {
case 'history':
await this.commandManager.executeCommand('git.viewFileHistory', Uri.file(committedFile.uri.path));
break;
+ case 'goto':
+ await await this.commandManager.executeCommand(
+ 'git.openFileInViewer',
+ Uri.file(committedFile.uri.path),
+ );
+ break;
}
return committedFile;