Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3529,6 +3529,10 @@
"command": "pr.checkoutOnVscodeDevFromDescription",
"group": "checkout@1",
"when": "webviewId == PullRequestOverview && github:checkoutMenu"
},
{
"command": "pr.openSessionLogFromDescription",
"when": "webviewId == PullRequestOverview && github:codingAgentMenu"
}
],
"chat/chatSessions": [
Expand Down
11 changes: 10 additions & 1 deletion src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ import Logger from './common/logger';
import { FILE_LIST_LAYOUT, HIDE_VIEWED_FILES, PR_SETTINGS_NAMESPACE } from './common/settingKeys';
import { editQuery } from './common/settingsUtils';
import { ITelemetry } from './common/telemetry';
import { SessionLinkInfo } from './common/timelineEvent';
import { asTempStorageURI, fromPRUri, fromReviewUri, Schemes, toPRUri } from './common/uri';
import { formatError } from './common/utils';
import { EXTENSION_ID } from './constants';
import { ICopilotRemoteAgentCommandArgs } from './github/common';
import { ChatSessionWithPR, CrossChatSessionWithPR } from './github/copilotApi';
import { CopilotRemoteAgentManager } from './github/copilotRemoteAgent';
import { CopilotRemoteAgentManager, SessionIdForPr } from './github/copilotRemoteAgent';
import { FolderRepositoryManager } from './github/folderRepositoryManager';
import { GitHubRepository } from './github/githubRepository';
import { Issue } from './github/interface';
Expand Down Expand Up @@ -724,6 +725,14 @@ export function registerCommands(
return vscode.env.openExternal(vscode.Uri.parse(vscodeDevPrLink(resolved.pr)));
}));

context.subscriptions.push(vscode.commands.registerCommand('pr.openSessionLogFromDescription', async (context: SessionLinkInfo | undefined) => {
if (!context) {
return vscode.window.showErrorMessage(vscode.l10n.t('No pull request context provided for checkout.'));
}
const resource = SessionIdForPr.getResource(context.pullNumber, context.sessionIndex);
return vscode.commands.executeCommand('vscode.open', resource);
}));

context.subscriptions.push(
vscode.commands.registerCommand('pr.exit', async (pr: PRNode | RepositoryChangesNode | PullRequestModel | undefined) => {
let pullRequestModel: PullRequestModel | undefined;
Expand Down
Loading