Skip to content

New and Noteworthy 0.7.0

angelozerr edited this page Nov 25, 2014 · 14 revisions

Here's a list of the most noteworthy things in the tern.java 0.7.0 release which will be available for download on ?. You can see issues for 0.7.0

Advanced Completion

generate anonymous function

When a completion item defines a function which have a function, parameter, the applied completion generate an anonymous function.

For instance if you apply Node#addEventListener(type: string, listener: fn(e: +Event), capture: bool) :

Elt completion

it generates addEventListener parameters and an anonymous function for listener parameter with a e parameter :

Apply completion

For more information, please read here

Tern modules support

Tern 0.7.0 support now 3 node.js libraries.

Node.js Express

Add a support for [express web application framework for node support] :

Express Completion

For more information, please read Node.js Express.

Node.js MongoDB Native

Add a support for Mongo DB Native NodeJS Driver :

MongoDB Native Completion

For more information, please read Node.js MongoDB Native.

Node.js Mongoose

Add a support forMongoose :

Mongoose Completion

For more information, please read Node.js Mongoose.

Lint "Unused variable/function")

Lint (Validation) was improved to validate :

  • unused variable :

Unused variable

  • unused function :

Unused function

Please read Validation Rules to know what this tern lint is able to validate.

Modules label

Tern modules shows a custom label instead of using the tern module name :

Modules label

Tern Hover

Clickable origin

Tern hover which displays Origin becomes clickable to open the given file with click :

Clickable origin

TernHoverClickableOrigin.png

Clone this wiki locally