src/JSUtils/ScopeManager.js
function resetModule() {
            function resetTernServer() {
                if (_ternNodeDomain.ready()) {
                    _ternNodeDomain.exec('resetTernServer');
                }
            }
            
            if (_ternNodeDomain) {
                if (addFilesPromise) {
                    // If we're in the middle of added files, don't reset 
                    // until we're done
                    addFilesPromise.done(resetTernServer).fail(resetTernServer);
                } else {
                    resetTernServer();
                }
            }
        }
function resetModule() {
            function resetTernServer() {
                if (_ternNodeDomain.ready()) {
                    _ternNodeDomain.exec('resetTernServer');
                }
            }
            
            if (_ternNodeDomain) {
                if (addFilesPromise) {
                    // If we're in the middle of added files, don't reset 
                    // until we're done
                    addFilesPromise.done(resetTernServer).fail(resetTernServer);
                } else {
                    resetTernServer();
                }
            }
        }
function resetModule ( ) { function resetTernServer ( ) { if ( _ternNodeDomain . ready ( ) ) { _ternNodeDomain . exec ( 'resetTernServer' ) ; } } if ( _ternNodeDomain ) { if ( addFilesPromise ) { // If we're in the middle of added files, don't reset  // until we're done addFilesPromise . done ( resetTernServer ) . fail ( resetTernServer ) ; } else { resetTernServer ( ) ; } } }
Do some cleanup when a project is closed.

We can clean up the node tern server we use to calculate hints now, since
we know we will need to re-init it in any new project that is opened.
Do some cleanup when a project is closed .