问题描述:

Yesterday I added files.exclude to my user settings in visual studio code to hide .js and .map files and it worked correctly. But today (and without restarting or closing code) it stopped working.

This is the full settings.json file

// Place your settings in this file to overwrite the default settings

{

"files.exclude": {

"app/*.js": true,

"app/*.map": true

}

}

Anyone knows how to fix this?

网友答案:

I got it to work by adding "**/" before each exclude, I might have opened the project in a different way and didn't notice the parent folder had been added to the project structure

网友答案:

You might have already got the answer but thought of posting as this might be a solution for others. Below worked for me.

"**/app/*.js": {"when": "$(basename).ts"} or

"**/app/**/*.js": {"when": "$(basename).ts"}
相关阅读:
Top