src/extensions/default/JavaScriptCodeHints/main.js
function requestJumpToDef(session, offset) {
                var response = ScopeManager.requestJumptoDef(session, session.editor.document, offset);

                if (response.hasOwnProperty("promise")) {
                    response.promise.done(handleJumpResponse).fail(function () {
                        result.reject();
                    });
                }
            }
function requestJumpToDef(session, offset) {
                var response = ScopeManager.requestJumptoDef(session, session.editor.document, offset);

                if (response.hasOwnProperty("promise")) {
                    response.promise.done(handleJumpResponse).fail(function () {
                        result.reject();
                    });
                }
            }
function requestJumpToDef ( session , offset ) { var response = ScopeManager . requestJumptoDef ( session , session . editor . document , offset ) ; if ( response . hasOwnProperty ( "promise" ) ) { response . promise . done ( handleJumpResponse ) . fail ( function ( ) { result . reject ( ) ; } ) ; } }
Make a jump-to-def request based on the session and offset passed in.
@param {Session} session - the session
@param {number} offset - the offset of where to jump from
Make a jump - to - def request based on the session and offset passed in .