I'm trying to insert a rule in the configuration in the JSON configuration file of Visual Studio Code, for the umpteenth time... I don't know, if what I want is possible.
Using "files.exclude" I try to "exclude" all the contents of a directory except a specific directory from the same one I want it to appear.
For example, I don't want the editor's file and directory tree to show me the contents of "views/public/" except its "posts" folder. I have tried with:
"views/public/" : true,
"views/public/posts/": false,
I've tried ordering them differently, using wildcards , etc. The exclusive rule always prevails, if I don't "break" it, that is, everything is always hidden or the entire content of "views/public/" is always shown.
Using Visual Studio Code v.1.51.0 on Linux.
Since there is no (or I don't know) a direct way, you can use this way, which hurts the eyes but works: