P
P
polyakovyevgeniy2016-06-10 15:23:14
Node.js
polyakovyevgeniy, 2016-06-10 15:23:14

Why doesn't Visual Studio 2015 display IntelliScense for some packages in node.js?

All tools for node.js in the studio are installed. But there is such a problem that if you connect some packages, then the studio does not display tooltips for them. For example, if you connect the package: npm install --save telegram-node-bot. The studio does not give hints. If you connect your files, then prompts immediately appear.
I noticed that relatively new JS constructs are used in such libraries, and the studio swears at them.
d059b381579443a9a7648229a47d183b.png
Maybe this is the issue? How can this be fixed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-06-11
@senal

To set up IntelliScense for any third-party libraries, you need to create a _references.js file in the project and add links to them there, something like this:

/// <reference path="modernizr-2.6.2.js" /> 
/// <reference path="jquery-1.10.2.js" /> 
/// <reference path="bootstrap.js" /> 
/// <reference path="respond.js" />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question