Skip to content

Commit d90c6b9

Browse files
committed
nit
1 parent 1e6f456 commit d90c6b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/github/pullRequestModel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import * as vscode from 'vscode';
1111
import { Repository } from '../api/api';
1212
import { COPILOT_ACCOUNTS, DiffSide, IComment, IReviewThread, SubjectType, ViewedState } from '../common/comment';
1313
import { getModifiedContentFromDiffHunk, parseDiff } from '../common/diffHunk';
14+
import { commands } from '../common/executeCommands';
1415
import { GitChangeType, InMemFileChange, SlimFileChange } from '../common/file';
1516
import { GitHubRef } from '../common/githubRef';
1617
import 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

Comments
 (0)