Skip to content

Commit 3cc80d5

Browse files
committed
Workaround file adapter not emitting signal used to instantiate
`extensionFactory`
1 parent 9e9661b commit 3cc80d5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ export class FileEditorAdapter extends UpstreamFileEditorAdapter {
3030
super(editorWidget, options);
3131
}
3232

33+
protected async initOnceReady(): Promise<void> {
34+
await super.initOnceReady();
35+
// Workaround for
36+
// https://github.com/jupyterlab/jupyterlab/issues/15868
37+
// remove once fixed upstream
38+
this._editorAdded.emit({
39+
editor: this.activeEditor
40+
});
41+
}
42+
3343
/**
3444
* Generate the virtual document associated with the document.
3545
*/

0 commit comments

Comments
 (0)