Skip to content

New and Noteworthy 0.7.0

angelozerr edited this page Feb 7, 2015 · 14 revisions

Here's a list of the most noteworthy things in the tern.java 0.7.0 release which is released in December 2014. 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.

tabris.js

Add a support for tabris.js :

Tabris Completion

For more information, please read tabris.js support.

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

Open declaration

When hover is opened you can click on the left icon to open the declaration of the hovered expression (like JDT):

Open declaration

Clickable origin

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

Clickable origin

Clone this wiki locally