If you go to your VSCode defaultSettings.json
you'll see explorer.fileNesting.patterns
key, turns out VSCode
can group files based on some patterns.
Here is that section;
// Controls nesting of files in the Explorer. `explorer.fileNesting.enabled` must be set for this to take effect. Each __Item__ represents a parent pattern and may contain a single `*` character that matches any string. Each __Value__ represents a comma separated list of the child patterns that should be shown nested under a given parent. Child patterns may contain several special tokens:
// - `${capture}`: Matches the resolved value of the `*` from the parent pattern
// - `${basename}`: Matches the parent file's basename, the `file` in `file.ts`