mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Load and enable the Angular plugin for Tern.
This commit is contained in:
1 parent
9d8f0835eb
commit
405a493d7e
1 file changed
+2
-2
@@ -35,7 +35,7 @@ importScripts("thirdparty/requirejs/require.js");
|
||||
MessageIds = messageIds;
|
||||
HintUtils2 = hintUtils2;
|
||||
var ternRequire = require.config({baseUrl: "./thirdparty"});
|
||||
ternRequire(["tern/lib/tern", "tern/lib/infer", "tern/plugin/requirejs", "tern/plugin/doc_comment"], function (tern, infer, requirejs, docComment) {
|
||||
ternRequire(["tern/lib/tern", "tern/lib/infer", "tern/plugin/requirejs", "tern/plugin/doc_comment", "tern/plugin/angular"], function (tern, infer, requirejs, docComment) {
|
||||
Tern = tern;
|
||||
Infer = infer;
|
||||
|
||||
@@ -86,7 +86,7 @@ importScripts("thirdparty/requirejs/require.js");
|
||||
defs: env,
|
||||
async: true,
|
||||
getFile: getFile,
|
||||
plugins: {requirejs: {}, doc_comment: true}
|
||||
plugins: {requirejs: {}, doc_comment: true, angular: true}
|
||||
};
|
||||
ternServer = new Tern.Server(ternOptions);
|
||||
|
||||
|
||||
Reference in new issue
Block a user