VS Code API
    Preparing search index...

    Variable onDidChangeActiveTextEditorConst

    onDidChangeActiveTextEditor: Event<TextEditor | undefined>

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