@@ -11,6 +11,7 @@ import * as vscode from 'vscode';
1111import { Repository } from '../api/api' ;
1212import { COPILOT_ACCOUNTS , DiffSide , IComment , IReviewThread , SubjectType , ViewedState } from '../common/comment' ;
1313import { getModifiedContentFromDiffHunk , parseDiff } from '../common/diffHunk' ;
14+ import { commands } from '../common/executeCommands' ;
1415import { GitChangeType , InMemFileChange , SlimFileChange } from '../common/file' ;
1516import { GitHubRef } from '../common/githubRef' ;
1617import Logger from '../common/logger' ;
@@ -1190,7 +1191,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
11901191 return vscode . commands . executeCommand ( 'vscode.changes' , vscode . l10n . t ( 'Changes in Pull Request #{0}' , pullRequestModel . number ) , args ) ;
11911192 }
11921193
1193- static async openCommitChanges ( folderManager : FolderRepositoryManager , commitSha : string ) : Promise < void > {
1194+ static async openCommitChanges ( folderManager : FolderRepositoryManager , commitSha : string ) {
11941195 try {
11951196 // Get the repository from the folder manager
11961197 const repository = folderManager . repository ;
@@ -1241,7 +1242,7 @@ export class PullRequestModel extends IssueModel<PullRequest> implements IPullRe
12411242 */
12421243 folderManager . telemetry . sendTelemetryEvent ( 'pr.openCommitChanges' ) ;
12431244
1244- return vscode . commands . executeCommand ( 'vscode.changes' , vscode . l10n . t ( 'Changes in Commit {0}' , commitSha . substring ( 0 , 7 ) ) , args ) ;
1245+ return commands . executeCommand ( 'vscode.changes' , vscode . l10n . t ( 'Changes in Commit {0}' , commitSha . substring ( 0 , 7 ) ) , args ) ;
12451246 } catch ( error ) {
12461247 const errorMessage = error instanceof Error ? error . message : String ( error ) ;
12471248 vscode . window . showErrorMessage ( vscode . l10n . t ( 'Failed to open commit changes: {0}' , errorMessage ) ) ;
0 commit comments