Skip to content

Commit 928624f

Browse files
Explicitly activate the component.
1 parent b6ee6c6 commit 928624f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

src/client/extensionInit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { GLOBAL_MEMENTO, IDisposableRegistry, IExtensionContext, IMemento, WORKS
1212
import { ServiceContainer } from './ioc/container';
1313
import { ServiceManager } from './ioc/serviceManager';
1414
import { IServiceContainer, IServiceManager } from './ioc/types';
15-
import { registerForIOC } from './pythonEnvironments/legacyIOC';
15+
import { activate as activatePythonEnvironments } from './pythonEnvironments';
1616

1717
// The code in this module should do nothing more complex than register
1818
// objects to DI and simple init (e.g. no side effects). That implies
@@ -40,6 +40,6 @@ export function initializeComponents(
4040
serviceManager: IServiceManager,
4141
serviceContainer: IServiceContainer
4242
) {
43-
registerForIOC(serviceManager, serviceContainer);
43+
activatePythonEnvironments(serviceManager, serviceContainer);
4444
// We will be pulling code over from activateLegacy().
4545
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
import { IServiceContainer, IServiceManager } from '../ioc/types';
5+
import { registerForIOC } from './legacyIOC';
6+
7+
export function activate(serviceManager: IServiceManager, serviceContainer: IServiceContainer) {
8+
registerForIOC(serviceManager, serviceContainer);
9+
}

0 commit comments

Comments
 (0)