Skip to content

Commit

Permalink
fix: poll kernels when serverManager ready
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshinesmilelk authored and BroKun committed Feb 20, 2024
1 parent c688886 commit fe3ee51
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .changeset/eight-bees-speak.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions packages/libro-kernel/src/kernel/libro-kernel-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe3ee51

Please sign in to comment.