Fix test failure: add _serviceBrand to environment service stub

The TerminalSandboxService tests were failing because the mock environment service stub was missing the required _serviceBrand property. This property is mandatory for all service interfaces in VS Code's DI system.

Co-authored-by: jrieken <1794099+jrieken@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-12 09:43:31 +00:00
parent fb50bb3031
commit e091fec668

View File

@@ -71,6 +71,7 @@ suite('TerminalSandboxService - allowTrustedDomains', () => {
instantiationService.stub(IConfigurationService, configurationService);
instantiationService.stub(IFileService, fileService);
instantiationService.stub(IEnvironmentService, <IEnvironmentService & { tmpDir?: URI; execPath?: string }>{
_serviceBrand: undefined,
tmpDir: URI.file('/tmp'),
execPath: '/usr/bin/node'
});