Skip to content

Commit 29c0749

Browse files
Copilotalexr00
andcommitted
Fix: Preserve hasMorePages to show "Load more" button
When user configures remotes and we loop through all of them, we should preserve itemData.hasMorePages so that the "Load more" button appears if any repository has more pages. Previously, we were returning hasMorePages: false which prevented the "Load more" button from showing. Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent c28ff84 commit 29c0749

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/@types/vscode.proposed.chatParticipantAdditions.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ declare module 'vscode' {
105105
isComplete?: boolean;
106106
toolSpecificData?: ChatTerminalToolInvocationData;
107107
fromSubAgent?: boolean;
108+
presentation?: 'hidden' | 'hiddenAfterComplete' | undefined;
108109

109110
constructor(toolName: string, toolCallId: string, isError?: boolean);
110111
}

src/github/folderRepositoryManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ export class FolderRepositoryManager extends Disposable {
11791179

11801180
return {
11811181
items: itemData.items,
1182-
hasMorePages: false,
1182+
hasMorePages: itemData.hasMorePages,
11831183
hasUnsearchedRepositories: false,
11841184
totalCount: itemData.totalCount
11851185
};

0 commit comments

Comments
 (0)