@@ -11,14 +11,15 @@ import { isTestExecution, STANDARD_OUTPUT_CHANNEL } from '../common/constants';
11
11
import { createDeferred , Deferred } from '../common/helpers' ;
12
12
import { IFileSystem , IPlatformService } from '../common/platform/types' ;
13
13
import { StopWatch } from '../common/stopWatch' ;
14
- import { IConfigurationService , IExtensionContext , IOutputChannel , IPythonSettings } from '../common/types' ;
14
+ import { IConfigurationService , IExtensionContext , ILogger , IOutputChannel , IPythonSettings } from '../common/types' ;
15
15
import { IServiceContainer } from '../ioc/types' ;
16
16
import {
17
17
PYTHON_LANGUAGE_SERVER_DOWNLOADED ,
18
18
PYTHON_LANGUAGE_SERVER_ENABLED ,
19
19
PYTHON_LANGUAGE_SERVER_ERROR
20
20
} from '../telemetry/constants' ;
21
21
import { getTelemetryReporter } from '../telemetry/telemetry' ;
22
+ import { IUnitTestManagementService } from '../unittests/types' ;
22
23
import { LanguageServerDownloader } from './downloader' ;
23
24
import { InterpreterData , InterpreterDataService } from './interpreterDataService' ;
24
25
import { PlatformData } from './platformData' ;
@@ -89,6 +90,11 @@ export class LanguageServerExtensionActivator implements IExtensionActivator {
89
90
if ( ! clientOptions ) {
90
91
return false ;
91
92
}
93
+
94
+ const testManagementService = this . services . get < IUnitTestManagementService > ( IUnitTestManagementService ) ;
95
+ testManagementService . activate ( )
96
+ . catch ( ex => this . services . get < ILogger > ( ILogger ) . logError ( 'Failed to activate Unit Tests' , ex ) ) ;
97
+
92
98
return this . startLanguageServer ( clientOptions ) ;
93
99
}
94
100
0 commit comments