mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
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:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user