|
30 | 30 | const changesetStateSource = derived(this, reader => { |
31 | 31 | --- code-server.orig/lib/vscode/src/vs/workbench/contrib/chat/test/browser/agentHost/agentHostSessionInputPills.test.ts |
32 | 32 | +++ 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 @@ |
34 | 54 | }); |
35 | 55 | }); |
36 | 56 |
|
|
0 commit comments