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 @@ -130,7 +130,11 @@ class LegacyFileSystem extends FileSystem {
130
130
}
131
131
132
132
export class IocContainer {
133
- public vscode = true ;
133
+ // This may be set (before any registration happens) to indicate
134
+ // whether or not IOC should depend on the VS Code API (e.g. the
135
+ // "vscode" module). So in "functional" tests, this should be set
136
+ // to "false".
137
+ public useVSCodeAPI = true ;
134
138
135
139
public readonly serviceManager : IServiceManager ;
136
140
public readonly serviceContainer : IServiceContainer ;
@@ -180,7 +184,7 @@ export class IocContainer {
180
184
this . serviceManager . addSingleton < IPlatformService > ( IPlatformService , PlatformService ) ;
181
185
this . serviceManager . addSingleton < IFileSystem > (
182
186
IFileSystem ,
183
- this . vscode ? FileSystem : LegacyFileSystem
187
+ this . useVSCodeAPI ? FileSystem : LegacyFileSystem
184
188
) ;
185
189
}
186
190
public registerProcessTypes ( ) {
You can’t perform that action at this time.
0 commit comments