src/extensions/default/NavigationAndHistory/main.js
function _handleActiveEditorChange(event, current, previous) {
        if (current) { // Handle only full editors
            if (_mrofList.length === 0) {
                _initRecentFilesList();
            }

            var file = current.document.file;
            var paneId = current._paneId;
            _addToMROFList(file, paneId, current.getCursorPos(true, "first"));
        }

        if (previous) { // Capture the last know cursor position
            _updateCursorPosition(previous.document.file.fullPath, previous._paneId, previous.getCursorPos(true, "first"));
        }
    }
function _handleActiveEditorChange(event, current, previous) {
        if (current) { // Handle only full editors
            if (_mrofList.length === 0) {
                _initRecentFilesList();
            }

            var file = current.document.file;
            var paneId = current._paneId;
            _addToMROFList(file, paneId, current.getCursorPos(true, "first"));
        }

        if (previous) { // Capture the last know cursor position
            _updateCursorPosition(previous.document.file.fullPath, previous._paneId, previous.getCursorPos(true, "first"));
        }
    }
function _handleActiveEditorChange ( event , current , previous ) { if ( current ) { // Handle only full editors if ( _mrofList . length === 0 ) { _initRecentFilesList ( ) ; } var file = current . document . file ; var paneId = current . _paneId ; _addToMROFList ( file , paneId , current . getCursorPos ( true , "first" ) ) ; } if ( previous ) { // Capture the last know cursor position _updateCursorPosition ( previous . document . file . fullPath , previous . _paneId , previous . getCursorPos ( true , "first" ) ) ; } }
Handle Active Editor change to update mrof information
Handle Active Editor change to update mrof information