vscode intellisense for node_modules packages in nodejs project

0

I have a javascript project with around 7 levels of depth de module.exports object.. something like

levels.1.2.3.4.5.6.7 = 'some value'

When working in that codebase the intellisense works like a charm, but when installing the dependency from another project with npm the intellisense gets truncated at level 2. Something like

levels.1.2. ???

I found out about jsconfig.jsonfile at the root of the project with a compilerOptions.maxNodeModuleJSDepth with no luck.

this is an example of the file I am using

{
  "compilerOptions": {
    "maxNodeModuleJsDepth": 10
  },
  "include": [
      "node_modules/my-deep-package"
  ]
}

Do you have any idea on how to make the intellisense work with the node_modules package for a depth more than 2 in a javascript project?

Thanks!

Tomás Ruiz

Posted 2019-07-27T17:41:40.927

Reputation: 1

No answers