mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-21 00:59:03 +01:00
Dispose instances of test instantiation service (#187482)
* Dispose instances of test instantiation service This will call `sinon.restore()` and prevent a memory leak Part of #187471 * Fix interfering terminal tests * Remove `async` from terminal test suite * Fix `any`
This commit is contained in:
@@ -48,12 +48,13 @@ suite('debugConfigurationManager', () => {
|
||||
const configurationService = new TestConfigurationService();
|
||||
setup(() => {
|
||||
const fileService = disposables.add(new FileService(new NullLogService()));
|
||||
const instantiationService = disposables.add(new TestInstantiationService(new ServiceCollection([IPreferencesService, preferencesService], [IConfigurationService, configurationService])));
|
||||
_debugConfigurationManager = new ConfigurationManager(
|
||||
adapterManager,
|
||||
new TestContextService(),
|
||||
configurationService,
|
||||
new TestQuickInputService(),
|
||||
new TestInstantiationService(new ServiceCollection([IPreferencesService, preferencesService], [IConfigurationService, configurationService])),
|
||||
instantiationService,
|
||||
new TestStorageService(),
|
||||
new TestExtensionService(),
|
||||
new TestHistoryService(),
|
||||
|
||||
Reference in New Issue
Block a user