diff --git a/browser/src/components/LogView/Commit/FileEntry/index.tsx b/browser/src/components/LogView/Commit/FileEntry/index.tsx index aefee245..91043a67 100644 --- a/browser/src/components/LogView/Commit/FileEntry/index.tsx +++ b/browser/src/components/LogView/Commit/FileEntry/index.tsx @@ -85,7 +85,15 @@ export class FileEntry extends React.Component { {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;