New and Noteworthy 1.0.0 - angelozerr/tern.java GitHub Wiki
Here's a list of the most noteworthy things in the tern.java 1.0.0 release which is available for download since 30/08/2015. You can see issues for 1.0.0
Include/Exclude Tern script paths
When the completion, hyperlink, hover, validation is executed the first time tern.java load some JavaScript files according your configuration of tern script paths.
You can have performance problem, for instance if you use bower, npm which download a lot of JavaScript files
inside /bower_component
, /node_modules
folder. Eclipse Mars excludes now by default those folders; tern.java is now able to use it.
To improve performance, now you can include/exclude JavaScripts files
to load by using JSDT JavaScript / Include Path
:
If you go at Tern /Scripts Path
, you can check that JavaScript files from your /bower_component
, /node_modules
folders will be ignored by tern.java:
ECMAScript 6 (Promise)
ES6 Promise was improved. You can benefit with Promise#then
value completion :
See promise.js tests to know the other Promise features that tern can support.
Node (required module)
Node - Hover
Node support was improved to support hover for required module :
RequireJS (required module)
RequireJS support was improved to support required module.
RequireJS - Completion
RequireJS - Hyperlink
RequireJS - Validation
RequireJS Extension provides the capability to validate required module :
Delite
Add a support for Delite :
As Delite uses RequireJS, you can benefit with the whole features of RequireJS support.
For more information, please read Delite.
Tern Hyperlink inside HTML
Tern hyperlink is now available inside HTML editor :
Browser Extension
Browser Extension provides advanced features like completion, hyperlink, validation
- for HTML elements ids :
- for CSS Selectors :
jQuery Extension
jQuery Extension gives the capability to provide support for CSS selectors :
YUI improvement
YUI - Validation
Lint validator was improved.
tern-lint improvement
Multiple type support
The Lint validator is able to validate multiple types:
JSDoc support
The Lint validator is able to validate your JavaScript files by using JSDoc annotations :
- here a sample with assignment type error :
- here a sample with function parameter type error:
Validation Settings Changed
When you add/remove a linter (Lint, JSHint, etc) :
- at hand from your
.tern-project
- or with the UI
Tern -> Modules
property page:
a dialog appears to launch or not the validation.
The click on Yes button execute the validation :
Tern Explorer
Tern Explorer is an Eclipse View which looks like JSDT Outline and try to improve it: