@@ -24,7 +24,8 @@ import {
24
24
DocumentConnectionManager ,
25
25
FeatureManager ,
26
26
ISocketConnectionOptions ,
27
- ILSPOptions
27
+ ILSPOptions ,
28
+ ILSPFeatureManager
28
29
} from '@jupyterlab/lsp' ;
29
30
import { LSPConnection } from '@jupyterlab/lsp/lib/connection' ;
30
31
import * as nbformat from '@jupyterlab/nbformat' ;
@@ -200,6 +201,7 @@ export abstract class TestEnvironment implements ITestEnvironment {
200
201
documentOptions : VirtualDocument . IOptions ;
201
202
editorExtensionRegistry : EditorExtensionRegistry ;
202
203
editorServices : IEditorServices ;
204
+ featureManager : ILSPFeatureManager ;
203
205
204
206
constructor ( protected options ?: TestEnvironment . IOptions ) {
205
207
this . editorExtensionRegistry = new EditorExtensionRegistry ( ) ;
@@ -230,6 +232,7 @@ export abstract class TestEnvironment implements ITestEnvironment {
230
232
...this . getDefaults ( ) ,
231
233
...( options ?. document || { } )
232
234
} ;
235
+ this . featureManager = new FeatureManager ( ) ;
233
236
}
234
237
235
238
protected abstract createWidget ( ) : IDocumentWidget ;
@@ -280,7 +283,7 @@ export abstract class TestEnvironment implements ITestEnvironment {
280
283
docRegistry,
281
284
connectionManager : this . connectionManager ,
282
285
codeOverridesManager : overridesManager ,
283
- featureManager : new FeatureManager ( ) ,
286
+ featureManager : this . featureManager ,
284
287
foreignCodeExtractorsManager : foreignCodeExtractors ,
285
288
translator : nullTranslator
286
289
} ) ;
0 commit comments