Explorar el Código

Merge pull request #6480 from jasongrout/consoleup

Do not wait for a console session to be ready before showing the console
Steven Silvester hace 5 años
padre
commit
1458b67ddd
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      packages/console-extension/src/index.ts

+ 3 - 2
packages/console-extension/src/index.ts

@@ -245,8 +245,9 @@ async function activateConsole(
     )).composite as string;
     panel.console.node.dataset.jpInteractionMode = interactionMode;
 
-    // Add the console panel to the tracker and wait for it to be ready.
-    await Promise.all([tracker.add(panel), panel.session.ready]);
+    // Add the console panel to the tracker. We want the panel to show up before
+    // any kernel selection dialog, so we do not await panel.session.ready;
+    await tracker.add(panel);
     panel.session.propertyChanged.connect(() => tracker.save(panel));
 
     shell.add(panel, 'main', {