Skip to content

Commit ff5fefe

Browse files
Explicitly activate the component.
1 parent 2a1d13c commit ff5fefe

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

src/client/extensionInit.ts

Lines changed: 3 additions & 3 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
@@ -37,9 +37,9 @@ export function initializeGlobals(context: IExtensionContext): [IServiceManager,
3737

3838
export function initializeComponents(
3939
_context: IExtensionContext,
40-
_serviceManager: IServiceManager,
40+
serviceManager: IServiceManager,
4141
_serviceContainer: IServiceContainer
4242
) {
43-
registerForIOC(_serviceManager);
43+
activatePythonEnvironments(serviceManager);
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 { IServiceManager } from '../ioc/types';
5+
import { registerForIOC } from './legacyIOC';
6+
7+
export function activate(serviceManager: IServiceManager) {
8+
registerForIOC(serviceManager);
9+
}

0 commit comments

Comments
 (0)