function () {
            var fullname = this.props.name,
                extension = LanguageManager.getCompoundFileExtension(fullname);

            var node = this.refs.name;
            node.setSelectionRange(0, _getName(fullname, extension).length);
            node.focus(); // set focus on the rename input
            ViewUtils.scrollElementIntoView($("#project-files-container"), $(node), true);
        }
function () {
            var fullname = this.props.name,
                extension = LanguageManager.getCompoundFileExtension(fullname);

            var node = this.refs.name;
            node.setSelectionRange(0, _getName(fullname, extension).length);
            node.focus(); // set focus on the rename input
            ViewUtils.scrollElementIntoView($("#project-files-container"), $(node), true);
        }
function ( ) { var fullname = this . props . name , extension = LanguageManager . getCompoundFileExtension ( fullname ) ; var node = this . refs . name ; node . setSelectionRange ( 0 , _getName ( fullname , extension ) . length ) ; node . focus ( ) ; // set focus on the rename input ViewUtils . scrollElementIntoView ( $ ( "#project-files-container" ) , $ ( node ) , true ) ; }
When this component is displayed, we scroll it into view and select the portion
of the filename that excludes the extension.
When this component is displayed we scroll it into view and select the portion of the filename that excludes the extension .
renames the file