How to get VSCode 1.14.2 to look up types in my files?

39 views Asked by At

So, there's no more /// comments and no more _reference.js and yet still I cannot figure out how to get Intellisense to show me the declaration of a type that is NOT in the currently open editor window.

Since it can do it with the open editor, it must be able to parse the JS.

How to include my js/lib/**/*.js files for Intellisense-based navigation (go to definition)?

1

There are 1 answers

2
Matt Bierner On

Try creating a jsconfig.json file at the root of your project:

{
    "compilerOptions": {
        "target": "ES6"
    },
    "exclude": [
        "node_modules",
        "**/node_modules/*"
    ]
}

This file tells VS Code to treat all js files in the workspace as part of a single project