|
|
@ -13,6 +13,7 @@ import { debug } from '../../system/decorators/log'; |
|
|
|
import { IpcMessage, onIpc } from '../protocol'; |
|
|
|
import { WebviewViewBase } from '../webviewViewBase'; |
|
|
|
import { |
|
|
|
AutolinkSettingsCommandType, |
|
|
|
CommitActionsCommandType, |
|
|
|
CommitDetails, |
|
|
|
CommitSummary, |
|
|
@ -85,6 +86,11 @@ export class CommitDetailsWebviewView extends WebviewViewBase { |
|
|
|
this.showCommitSearch(); |
|
|
|
}); |
|
|
|
break; |
|
|
|
case AutolinkSettingsCommandType.method: |
|
|
|
onIpc(AutolinkSettingsCommandType, e, params => { |
|
|
|
this.showAutolinkSettings(); |
|
|
|
}); |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -92,6 +98,10 @@ export class CommitDetailsWebviewView extends WebviewViewBase { |
|
|
|
return this.selectedCommit?.files?.find(file => file.path === params.path && file.repoPath === params.repoPath); |
|
|
|
} |
|
|
|
|
|
|
|
private showAutolinkSettings() { |
|
|
|
void executeCommand(Commands.ShowSettingsPageAndJumpToAutolinks); |
|
|
|
} |
|
|
|
|
|
|
|
private showCommitSearch() { |
|
|
|
void executeCommand(Commands.SearchCommits, { |
|
|
|
showResultsInDetails: true, |
|
|
|