VS Code API
    Preparing search index...

    Variable onDidChangeActiveTerminalConst

    onDidChangeActiveTerminal: Event<Terminal | undefined>

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