onDidChangeActiveNotebookEditor

An Event which fires when the active notebook editor has changed. Note that the event also fires when the active editor changes to undefined.

Online Documentation