Related Issues:
#116418
#114869
#114447
#102147
#98205
#96782
#95056
#45470
#45399
- VS Code Version: 1.54.1
- OS Version: Linux x64 5.8.0-44-generic
Steps to Reproduce:
- Create a root folder (files-exclude-sample)
- Inside that folder create two nested folders (child1, child2)
- In root folder (files-exclude-sample), create a workspace definition file (files-exclude-sample.code-workspace)
{
"folders": [
{
"path": "."
},
{
"path": "child1"
},
{
"path": "child2"
}
]
}
- In root folder (files-exclude-sample), create a .vscode folder
- Inside .vscode folder create a settings.json file
{
// Configure glob patterns for excluding files and folders.
"files.exclude": {
"child1": true,
"child2": true
}
}
- Alternatively to previous steps, just clone this GitHub repo: https://github.com/rubensa/files-exclude-sample
- In VSCode, open the workspace (files-exclude-sample.code-workspace)
- Everything looks ok. You have tree root folders (files-exclude-sample, child1 and child2)

- If you expand all three folder you can see something like

- As specified in root folder .vscode/settings.json, child1 and child2 are excluded
- Open file.txt from child1 folder
- child1 folder is collapsed (not removed from explorer tree) and it appears inside root folder (files-exclude-sample) folder

- The expected behavior is that child1 is not collapsed and it does not appear inside root folder
Does this issue occur when all extensions are disabled?: Yes
Related Issues:
#116418
#114869
#114447
#102147
#98205
#96782
#95056
#45470
#45399
Steps to Reproduce:
{ "folders": [ { "path": "." }, { "path": "child1" }, { "path": "child2" } ] }{ // Configure glob patterns for excluding files and folders. "files.exclude": { "child1": true, "child2": true } }Does this issue occur when all extensions are disabled?: Yes