Update tern and acorn to latest - fixes a number of bugs.

Modified some of the expected output for unittests as tern was updated to produce arguably better results, particularly for jump-to-def.

Changed the jump to def logic so that it doesn't stomp on all the pending requests, and instead plays nicely with the other request types.
This commit is contained in:
Erik Tierney committed 2013-05-14 14:34:06 -04:00
1 parent 104ff29c51
commit dfb35c30f5
5 files changed
+84 -85

No files matched your search

@@ -34,7 +34,7 @@ importScripts("thirdparty/requirejs/require.js");
require(["./HintUtils"], function (hintUtils) {
HintUtils = hintUtils;
var ternRequire = require.config({baseUrl: "./thirdparty"});
ternRequire(["tern/lib/tern", "tern/plugin/requirejs"], function (tern, requirejs) {
ternRequire(["tern/lib/tern", "tern/plugin/requirejs", "tern/plugin/doc_comment"], function (tern, requirejs, docComment) {
Tern = tern;
});
});
@@ -87,7 +87,7 @@ importScripts("thirdparty/requirejs/require.js");
defs: env,
async: true,
getFile: getFile,
plugins: {requirejs: {}}
plugins: {requirejs: {}, doc_comment: true}
};
ternServer = new Tern.Server(ternOptions);