VS Code API
    Preparing search index...

    Variable activeTextEditor

    activeTextEditor: TextEditor | undefined

    The currently active editor or undefined. The active editor is the one that currently has focus or, when none has focus, the one that has changed input most recently.