Skip to content

Commit 7720203

Browse files
Copilotalexr00
andcommitted
Fix CI test failure by adding remotes property to mock repository
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
1 parent 58a6ed9 commit 7720203

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ declare module 'vscode' {
9595
*/
9696
description?: string | MarkdownString;
9797

98+
/**
99+
* An optional badge that provides additional context about the chat session.
100+
*/
101+
badge?: string | MarkdownString;
102+
98103
/**
99104
* An optional status indicating the current state of the session.
100105
*/

src/test/issues/stateManager.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ describe('StateManager branch behavior with useBranchForIssues setting', functio
128128
it('should trim whitespace from query strings', async function () {
129129
const mockUri = vscode.Uri.parse('file:///test');
130130
const mockFolderManager = {
131-
repository: { rootUri: mockUri, state: { HEAD: { commit: 'abc123' } } },
131+
repository: { rootUri: mockUri, state: { HEAD: { commit: 'abc123' }, remotes: [] } },
132132
getIssues: async (query: string) => {
133133
// Verify that the query doesn't have trailing whitespace
134134
assert.strictEqual(query, query.trim(), 'Query should be trimmed');

0 commit comments

Comments
 (0)