Skip to content

Commit 95c0eb8

Browse files
committed
test: restore Agent Host changes pill browser fixture
1 parent c6748eb commit 95c0eb8

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

‎patches/copilot-agenthost-session-changes.diff‎

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,27 @@
3030
const changesetStateSource = derived(this, reader => {
3131
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/chat/test/browser/agentHost/agentHostSessionInputPills.test.ts
3232
+++ code-server/lib/vscode/src/vs/workbench/contrib/chat/test/browser/agentHost/agentHostSessionInputPills.test.ts
33-
@@ -681,6 +681,61 @@
33+
@@ -31,6 +31,8 @@
34+
import { IOpenerService } from '../../../../../../platform/opener/common/opener.js';
35+
import { ILabelService } from '../../../../../../platform/label/common/label.js';
36+
import { workbenchInstantiationService } from '../../../../../test/browser/workbenchTestServices.js';
37+
+import { TestProductService } from '../../../../../test/common/workbenchTestServices.js';
38+
+import { BrowserWorkbenchEnvironmentService } from '../../../../../services/environment/browser/environmentService.js';
39+
import { BrowserEditorInput } from '../../../../browserView/common/browserEditorInput.js';
40+
import { IBrowserViewModel, IBrowserViewWorkbenchService } from '../../../../browserView/common/browserView.js';
41+
import { IEditorService } from '../../../../../services/editor/common/editorService.js';
42+
@@ -115,7 +117,9 @@
43+
getUriLabel: (resource, options) => options?.relative ? resource.path.replace(/^\/repo\/?/, '') : resource.fsPath,
44+
});
45+
const createInstantiationService = () => {
46+
- const instantiationService = workbenchInstantiationService(undefined, store);
47+
+ const instantiationService = workbenchInstantiationService({
48+
+ environmentService: () => new BrowserWorkbenchEnvironmentService('', URI.file('tests').with({ scheme: 'vscode-tests' }), { userDataPath: '/tmp/vscode-tests' }, TestProductService),
49+
+ }, store);
50+
instantiationService.stub(IGitHubService, upcastPartial<IGitHubService>({
51+
credentials: upcastPartial<IGitHubService['credentials']>({
52+
onDidInvalidate: Event.None,
53+
@@ -681,6 +685,61 @@
3454
});
3555
});
3656

0 commit comments

Comments
 (0)