55
66import { Container } from 'inversify' ;
77import { Disposable , Memento , window } from 'vscode' ;
8- import { instance , mock } from 'ts-mockito' ;
98import { registerTypes as platformRegisterTypes } from './common/platform/serviceRegistry' ;
109import { registerTypes as processRegisterTypes } from './common/process/serviceRegistry' ;
1110import { registerTypes as commonRegisterTypes } from './common/serviceRegistry' ;
@@ -29,7 +28,6 @@ import * as pythonEnvironments from './pythonEnvironments';
2928import { IDiscoveryAPI } from './pythonEnvironments/base/locator' ;
3029import { registerLogger } from './logging' ;
3130import { OutputChannelLogger } from './logging/outputChannelLogger' ;
32- import { WorkspaceService } from './common/application/workspace' ;
3331
3432// The code in this module should do nothing more complex than register
3533// objects to DI and simple init (e.g. no side effects). That implies
@@ -57,12 +55,7 @@ export function initializeGlobals(
5755 disposables . push ( standardOutputChannel ) ;
5856 disposables . push ( registerLogger ( new OutputChannelLogger ( standardOutputChannel ) ) ) ;
5957
60- const workspaceService = new WorkspaceService ( ) ;
61- const unitTestOutChannel =
62- workspaceService . isVirtualWorkspace || ! workspaceService . isTrusted
63- ? // Do not create any test related output UI when using virtual workspaces.
64- instance ( mock < ITestOutputChannel > ( ) )
65- : window . createOutputChannel ( OutputChannelNames . pythonTest ) ;
58+ const unitTestOutChannel = window . createOutputChannel ( OutputChannelNames . pythonTest ) ;
6659 disposables . push ( unitTestOutChannel ) ;
6760
6861 serviceManager . addSingletonInstance < ILogOutputChannel > ( ILogOutputChannel , standardOutputChannel ) ;
0 commit comments