src/extensions/default/NavigationAndHistory/NavigationProvider.js
function _handleActiveEditorChange(event, current, previous) {
        if (previous && previous._paneId) { // Handle only full editors
            previous.off("beforeSelectionChange", _recordJumpDef);
            _captureFrame(previous);
            _validateNavigationCmds();
        }
        
        if (current && current._paneId) { // Handle only full editors
            activePosNotSynced = true;
            current.off("beforeSelectionChange", _recordJumpDef);
            current.on("beforeSelectionChange", _recordJumpDef);
            current.off("beforeDestroy", _handleEditorCleanup);
            current.on("beforeDestroy", _handleEditorCleanup);
        }
    }
function _handleActiveEditorChange(event, current, previous) {
        if (previous && previous._paneId) { // Handle only full editors
            previous.off("beforeSelectionChange", _recordJumpDef);
            _captureFrame(previous);
            _validateNavigationCmds();
        }
        
        if (current && current._paneId) { // Handle only full editors
            activePosNotSynced = true;
            current.off("beforeSelectionChange", _recordJumpDef);
            current.on("beforeSelectionChange", _recordJumpDef);
            current.off("beforeDestroy", _handleEditorCleanup);
            current.on("beforeDestroy", _handleEditorCleanup);
        }
    }
function _handleActiveEditorChange ( event , current , previous ) { if ( previous && previous . _paneId ) { // Handle only full editors previous . off ( "beforeSelectionChange" , _recordJumpDef ) ; _captureFrame ( previous ) ; _validateNavigationCmds ( ) ; } if ( current && current . _paneId ) { // Handle only full editors activePosNotSynced = true ; current . off ( "beforeSelectionChange" , _recordJumpDef ) ; current . on ( "beforeSelectionChange" , _recordJumpDef ) ; current . off ( "beforeDestroy" , _handleEditorCleanup ) ; current . on ( "beforeDestroy" , _handleEditorCleanup ) ; } }
Handle Active Editor change to update navigation information
@private
Handle Active Editor change to update navigation information