Skip to content

Commit

Permalink
Workaround file adapter not emitting signal used to instantiate
Browse files Browse the repository at this point in the history
`extensionFactory`
  • Loading branch information
krassowski committed Feb 24, 2024
1 parent 9e9661b commit 3cc80d5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/jupyterlab-lsp/src/adapters/fileeditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ export class FileEditorAdapter extends UpstreamFileEditorAdapter {
super(editorWidget, options);
}

protected async initOnceReady(): Promise<void> {
await super.initOnceReady();
// Workaround for
// https://github.com/jupyterlab/jupyterlab/issues/15868
// remove once fixed upstream
this._editorAdded.emit({
editor: this.activeEditor
});
}

/**
* Generate the virtual document associated with the document.
*/
Expand Down

0 comments on commit 3cc80d5

Please sign in to comment.