diff --git a/.changeset/eight-bees-speak.md b/.changeset/eight-bees-speak.md new file mode 100644 index 00000000..93e40ab9 --- /dev/null +++ b/.changeset/eight-bees-speak.md @@ -0,0 +1,33 @@ +--- +'@difizen/libro-kernel': patch +'@difizen/libro-docs': patch +'@difizen/libro-code-cell': patch +'@difizen/libro-code-editor': patch +'@difizen/libro-codemirror': patch +'@difizen/libro-cofine-editor': patch +'@difizen/libro-cofine-editor-contribution': patch +'@difizen/libro-cofine-editor-core': patch +'@difizen/libro-cofine-textmate': patch +'@difizen/libro-common': patch +'@difizen/libro-core': patch +'@difizen/libro-jupyter': patch +'@difizen/libro-l10n': patch +'@difizen/libro-lab': patch +'@difizen/libro-language-client': patch +'@difizen/libro-lsp': patch +'@difizen/libro-markdown': patch +'@difizen/libro-markdown-cell': patch +'@difizen/libro-output': patch +'@difizen/libro-prompt-cell': patch +'@difizen/libro-raw-cell': patch +'@difizen/libro-rendermime': patch +'@difizen/libro-search': patch +'@difizen/libro-search-code-cell': patch +'@difizen/libro-shared-model': patch +'@difizen/libro-terminal': patch +'@difizen/libro-toc': patch +'@difizen/libro-virtualized': patch +'@difizen/libro-widget': patch +--- + +fix:poll kernels when serverManager ready diff --git a/packages/libro-kernel/src/kernel/libro-kernel-manager.ts b/packages/libro-kernel/src/kernel/libro-kernel-manager.ts index a70c34e5..41a54ad7 100644 --- a/packages/libro-kernel/src/kernel/libro-kernel-manager.ts +++ b/packages/libro-kernel/src/kernel/libro-kernel-manager.ts @@ -77,6 +77,7 @@ export class LibroKernelManager { // Initialize internal data. this._ready = (async () => { + await this.serverManager.ready; await getOrigin(this._pollModels).start(); await getOrigin(this._pollModels).tick; this._isReady = true;