Skip to content

Commit 99dc206

Browse files
committed
promote connection/language server managers to test environment
1 parent 67a593a commit 99dc206

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

packages/jupyterlab-lsp/src/adapters/codemirror/testutils.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ export abstract class FeatureTestEnvironment
129129

130130
export class FileEditorFeatureTestEnvironment extends FeatureTestEnvironment {
131131
ce_editor: CodeMirrorEditor;
132+
connection_manager: DocumentConnectionManager;
133+
language_server_manager: LanguageServerManager;
132134

133135
constructor(
134136
language = () => 'python',
@@ -144,17 +146,11 @@ export class FileEditorFeatureTestEnvironment extends FeatureTestEnvironment {
144146
model
145147
});
146148

147-
const LANGSERVER_MANAGER = new MockLanguageServerManager({});
148-
const CONNECTION_MANAGER = new DocumentConnectionManager({
149-
language_server_manager: LANGSERVER_MANAGER
149+
this.language_server_manager = new MockLanguageServerManager({});
150+
this.connection_manager = new DocumentConnectionManager({
151+
language_server_manager: this.language_server_manager
150152
});
151153

152-
const DEBUG = false;
153-
154-
if (DEBUG) {
155-
console.log(CONNECTION_MANAGER);
156-
}
157-
158154
this.init();
159155
}
160156

0 commit comments

Comments
 (0)