Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How enable Intellisense for Javascript AMD modules in VSCode

According to the docs

IntelliSense across CommonJS and AMD modules inside your project folders is enabled by understanding your code.

Does anyone have more information about how to get this to work? I've tried adding the following to my workspace settings.json file, but no joy.

"javascript.validate.module": "amd"

Thanks

like image 336
tarling Avatar asked May 13 '15 09:05

tarling


1 Answers

Try to set "javascript.validate.baseUrl" setting.

// Allows to configure the base url that is used to resolve module references (http://requirejs.org/docs/api.html#config-baseUrl). This options applies only to projects that use the asynchronous module definition ("module": "amd").

"javascript.validate.baseUrl": "",
like image 75
Erich Gamma Avatar answered Oct 14 '22 00:10

Erich Gamma