File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ export class DataScienceIocContainer extends UnitTestIocContainer {
298
298
299
299
constructor ( ) {
300
300
super ( ) ;
301
- this . vscode = false ;
301
+ this . useVSCodeAPI = false ;
302
302
const isRollingBuild = process . env ? process . env . VSCODE_PYTHON_ROLLING !== undefined : false ;
303
303
this . shouldMockJupyter = ! isRollingBuild ;
304
304
this . asyncRegistry = new AsyncDisposableRegistry ( ) ;
Original file line number Diff line number Diff line change @@ -115,7 +115,11 @@ class LegacyFileSystem extends FileSystem {
115
115
}
116
116
117
117
export class IocContainer {
118
- public vscode = true ;
118
+ // This may be set (before any registration happens) to indicate
119
+ // whether or not IOC should depend on the VS Code API (e.g. the
120
+ // "vscode" module). So in "functional" tests, this should be set
121
+ // to "false".
122
+ public useVSCodeAPI = true ;
119
123
120
124
public readonly serviceManager : IServiceManager ;
121
125
public readonly serviceContainer : IServiceContainer ;
@@ -165,7 +169,7 @@ export class IocContainer {
165
169
this . serviceManager . addSingleton < IPlatformService > ( IPlatformService , PlatformService ) ;
166
170
this . serviceManager . addSingleton < IFileSystem > (
167
171
IFileSystem ,
168
- this . vscode ? FileSystem : LegacyFileSystem
172
+ this . useVSCodeAPI ? FileSystem : LegacyFileSystem
169
173
) ;
170
174
}
171
175
public registerProcessTypes ( ) {
You can’t perform that action at this time.
0 commit comments