Update Intellisense _references.js file for certain folders

541 Views Asked by At

We have a lot of legacy javascript code which spans about 300 different files in our project in Scripts folder. When I update _references.js file, all 300 files gets referenced and it bloats the Intellisense. We are moving on to new javascript code under Scripts/New folder but also keeping the old files. We are willing to sacrifice Intellisense for old files. And we want to update _references.js when new files are added or deleted under the Scripts/New folder. Is there a way to update _references.js only for the new folder?

2

There are 2 best solutions below

0
Devidas On BEST ANSWER

try this,

files.exclude": {
    "Scripts/New": true,
}

I found this config github issue.

add or append this entry in VScode config. Hope this was helpful.

0
Dongdong On

You can enable and disable the auto sync feature via editor’s context menu button “Auto-sync JavaScript References” in this js file. You can always manually update the project’s JavaScript references using the context menu button “Update JavaScript References”.check here