Skip to content

Commit 87173e1

Browse files
committed
just bump the max listeners to something ridiculous
1 parent 832c7b5 commit 87173e1

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

packages/jupyterlab-lsp/src/adapters/jupyterlab/jl_adapter.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,11 @@ export abstract class JupyterLabWidgetAdapter
344344
return;
345345
}
346346

347-
console.log(
348-
'LSP: virtual document',
349-
virtual_document.id_path,
350-
'has changed sending update'
351-
);
347+
// console.log(
348+
// 'LSP: virtual document',
349+
// virtual_document.id_path,
350+
// 'has changed sending update'
351+
// );
352352
connection.sendFullTextChange(
353353
virtual_document.value,
354354
virtual_document.document_info

packages/jupyterlab-lsp/src/connection_manager.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ namespace Private {
311311
serverUri: uris.server,
312312
rootUri: uris.base
313313
});
314+
// TODO: remove remaining unbounded users of connection.on
315+
connection.setMaxListeners(999);
314316
_connections.set(language, connection);
315317
connection.connect(socket);
316318
onCreate(connection);

packages/jupyterlab-lsp/src/virtual/editor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export abstract class VirtualEditor implements CodeMirror.Editor {
132132
* @param fn - the callback to execute in update lock
133133
*/
134134
public async with_update_lock(fn: Function) {
135-
this.console.log('Will enter update lock with', fn);
135+
// this.console.log('Will enter update lock with', fn);
136136
await until_ready(() => this.can_update(), 12, 10).then(() => {
137137
try {
138138
this.update_lock = true;

0 commit comments

Comments
 (0)