5
5
6
6
import { Container } from 'inversify' ;
7
7
import { Disposable , Memento , window } from 'vscode' ;
8
- import { instance , mock } from 'ts-mockito' ;
9
8
import { registerTypes as platformRegisterTypes } from './common/platform/serviceRegistry' ;
10
9
import { registerTypes as processRegisterTypes } from './common/process/serviceRegistry' ;
11
10
import { registerTypes as commonRegisterTypes } from './common/serviceRegistry' ;
@@ -29,7 +28,6 @@ import * as pythonEnvironments from './pythonEnvironments';
29
28
import { IDiscoveryAPI } from './pythonEnvironments/base/locator' ;
30
29
import { registerLogger } from './logging' ;
31
30
import { OutputChannelLogger } from './logging/outputChannelLogger' ;
32
- import { WorkspaceService } from './common/application/workspace' ;
33
31
34
32
// The code in this module should do nothing more complex than register
35
33
// objects to DI and simple init (e.g. no side effects). That implies
@@ -57,12 +55,7 @@ export function initializeGlobals(
57
55
disposables . push ( standardOutputChannel ) ;
58
56
disposables . push ( registerLogger ( new OutputChannelLogger ( standardOutputChannel ) ) ) ;
59
57
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 ) ;
66
59
disposables . push ( unitTestOutChannel ) ;
67
60
68
61
serviceManager . addSingletonInstance < ILogOutputChannel > ( ILogOutputChannel , standardOutputChannel ) ;
0 commit comments