I decided to jump in Visual Studio Code to create an app.
Now I can't seem to get intellisense working for both JQuery and JQuery Mobile.
My VSC version is 0.10.1
I tried adding a reference.d.ts
file with this contents
/// <reference path="js/jquery.d.ts"/>
/// <reference path="js/jquerymobile.d.ts"/>
(files downloaded from https://github.com/DefinitelyTyped/DefinitelyTyped)
I tried opening a .js
file, add a $(this)
and hitting ctrl+period but it
says 'No suggestions'.
Something I missed?
UPDATE:
Tried adding a jsconfig.json
file following https://code.visualstudio.com/docs/languages/javascript#_javascript-projects-jsconfigjson
{
"files": [
"js/jquery.d.ts",
"js/jquerymobile.d.ts"
]
}
Restarted, nothing...
UPDATE 2:
added a .js
file, typed $
and clicked on the lightbulb to download jquery.d.ts file. It warns me about adding this file to the jsconfig.json file.
After doing all this, restarted still not working.
jsconfig.json
file contents:
{
"files": [
"typings/jquery/jquery.d.ts"
]
}
Nothing!