eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.29k stars 2.45k forks source link

Set notebook editor as active when opening in foreground #13828

Closed jonah-iden closed 2 weeks ago

jonah-iden commented 2 weeks ago

What it does

When opening a visible notebook editor this is now set as the active one. This is important information for jupyter to set some context keys correctly and by that for example show the restart kernel option directly instead of first after focusing the widget initially.

How to test

You need the jupyter and python extensions installed

  1. Open a notebook and ensure a kernel is selected.
  2. close and reopen it.
  3. the restart kernel and variables toolbar entries should now be directly visible

Follow-ups

Review checklist

Reminder for reviewers