src/extensions/default/JavaScriptRefactoring/RenameIdentifier.js
function getRefs(fileInfo, offset) {
        ScopeManager.postMessage({
            type: MessageIds.TERN_REFS,
            fileInfo: fileInfo,
            offset: offset
        });

        return ScopeManager.addPendingRequest(fileInfo.name, offset, MessageIds.TERN_REFS);
    }
function getRefs(fileInfo, offset) {
        ScopeManager.postMessage({
            type: MessageIds.TERN_REFS,
            fileInfo: fileInfo,
            offset: offset
        });

        return ScopeManager.addPendingRequest(fileInfo.name, offset, MessageIds.TERN_REFS);
    }
function getRefs ( fileInfo , offset ) { ScopeManager . postMessage ( { type : MessageIds . TERN_REFS , fileInfo : fileInfo , offset : offset } ) ; return ScopeManager . addPendingRequest ( fileInfo . name , offset , MessageIds . TERN_REFS ) ; }
Post message to tern node domain that will request tern server to find refs
Post message to tern node domain that will request tern server to find refs