@@ -14,12 +14,13 @@ import Logger from './common/logger';
1414import { FILE_LIST_LAYOUT , HIDE_VIEWED_FILES , PR_SETTINGS_NAMESPACE } from './common/settingKeys' ;
1515import { editQuery } from './common/settingsUtils' ;
1616import { ITelemetry } from './common/telemetry' ;
17+ import { SessionLinkInfo } from './common/timelineEvent' ;
1718import { asTempStorageURI , fromPRUri , fromReviewUri , Schemes , toPRUri } from './common/uri' ;
1819import { formatError } from './common/utils' ;
1920import { EXTENSION_ID } from './constants' ;
2021import { ICopilotRemoteAgentCommandArgs } from './github/common' ;
2122import { ChatSessionWithPR , CrossChatSessionWithPR } from './github/copilotApi' ;
22- import { CopilotRemoteAgentManager } from './github/copilotRemoteAgent' ;
23+ import { CopilotRemoteAgentManager , SessionIdForPr } from './github/copilotRemoteAgent' ;
2324import { FolderRepositoryManager } from './github/folderRepositoryManager' ;
2425import { GitHubRepository } from './github/githubRepository' ;
2526import { Issue } from './github/interface' ;
@@ -724,6 +725,14 @@ export function registerCommands(
724725 return vscode . env . openExternal ( vscode . Uri . parse ( vscodeDevPrLink ( resolved . pr ) ) ) ;
725726 } ) ) ;
726727
728+ context . subscriptions . push ( vscode . commands . registerCommand ( 'pr.openSessionLogFromDescription' , async ( context : SessionLinkInfo | undefined ) => {
729+ if ( ! context ) {
730+ return vscode . window . showErrorMessage ( vscode . l10n . t ( 'No pull request context provided for checkout.' ) ) ;
731+ }
732+ const resource = SessionIdForPr . getResource ( context . pullNumber , context . sessionIndex ) ;
733+ return vscode . commands . executeCommand ( 'vscode.open' , resource ) ;
734+ } ) ) ;
735+
727736 context . subscriptions . push (
728737 vscode . commands . registerCommand ( 'pr.exit' , async ( pr : PRNode | RepositoryChangesNode | PullRequestModel | undefined ) => {
729738 let pullRequestModel : PullRequestModel | undefined ;
0 commit comments