src/document/DocumentManager.js
function notifyPathNameChanged(oldName, newName) {
        // Notify all open documents
        _.forEach(_openDocuments, function (doc) {
            // TODO: Only notify affected documents? For now _notifyFilePathChange
            // just updates the language if the extension changed, so it's fine
            // to call for all open docs.
            doc._notifyFilePathChanged();
        });

        // Send a "fileNameChange" event. This will trigger the views to update.
        exports.trigger("fileNameChange", oldName, newName);
    }
function notifyPathNameChanged(oldName, newName) {
        // Notify all open documents
        _.forEach(_openDocuments, function (doc) {
            // TODO: Only notify affected documents? For now _notifyFilePathChange
            // just updates the language if the extension changed, so it's fine
            // to call for all open docs.
            doc._notifyFilePathChanged();
        });

        // Send a "fileNameChange" event. This will trigger the views to update.
        exports.trigger("fileNameChange", oldName, newName);
    }
function notifyPathNameChanged ( oldName , newName ) { // Notify all open documents _ . forEach ( _openDocuments , function ( doc ) { // TODO: Only notify affected documents? For now _notifyFilePathChange // just updates the language if the extension changed, so it's fine // to call for all open docs. doc . _notifyFilePathChanged ( ) ; } ) ; // Send a "fileNameChange" event. This will trigger the views to update. exports . trigger ( "fileNameChange" , oldName , newName ) ; }
Called after a file or folder name has changed. This function is responsible
for updating underlying model data and notifying all views of the change.

@param {string} oldName The old name of the file/folder
@param {string} newName The new name of the file/folder
Called after a file or folder name has changed . This function is responsible for updating underlying model data and notifying all views of the change .