File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export interface IInterpreterDetails {
2828const onDidChangePythonInterpreterEvent = new EventEmitter < IInterpreterDetails > ( ) ;
2929export const onDidChangePythonInterpreter : Event < IInterpreterDetails > = onDidChangePythonInterpreterEvent . event ;
3030async function activateExtension ( ) {
31+ activateEnvsExtension ( ) ;
3132 const extension = extensions . getExtension ( 'ms-python.python' ) ;
3233 if ( extension ) {
3334 if ( ! extension . isActive ) {
@@ -37,6 +38,16 @@ async function activateExtension() {
3738 return extension ;
3839}
3940
41+ async function activateEnvsExtension ( ) {
42+ const extension = extensions . getExtension ( 'ms-python.vscode-python-envs' ) ;
43+ if ( extension ) {
44+ if ( ! extension . isActive ) {
45+ await extension . activate ( ) ;
46+ }
47+ }
48+ return extension ;
49+ }
50+
4051async function getPythonExtensionAPI ( ) : Promise < IExtensionApi | undefined > {
4152 const extension = await activateExtension ( ) ;
4253 return extension ?. exports as IExtensionApi ;
You can’t perform that action at this time.
0 commit comments