File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -809,7 +809,7 @@ export function registerCommands(
809
809
} ) ,
810
810
) ;
811
811
812
- async function openDescriptionCommand ( argument : PRNode | IssueModel | undefined ) {
812
+ async function openDescriptionCommand ( argument : RepositoryChangesNode | PRNode | IssueModel | undefined ) {
813
813
let issueModel : IssueModel | undefined ;
814
814
if ( ! argument ) {
815
815
const activePullRequests : PullRequestModel [ ] = reposManager . folderManagers
@@ -822,7 +822,13 @@ export function registerCommands(
822
822
) ;
823
823
}
824
824
} else {
825
- issueModel = argument instanceof PRNode ? argument . pullRequestModel : argument ;
825
+ if ( argument instanceof RepositoryChangesNode ) {
826
+ issueModel = argument . pullRequestModel ;
827
+ } else if ( argument instanceof PRNode ) {
828
+ issueModel = argument . pullRequestModel ;
829
+ } else {
830
+ issueModel = argument ;
831
+ }
826
832
}
827
833
828
834
if ( ! issueModel ) {
You can’t perform that action at this time.
0 commit comments