-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Closed
Labels
Milestone
Description
Refs: #6328
Complexity: 4
This iteration we added (experimental) support for file nesting. There are several settings to try out:
explorer.experimental.fileNesting.enabled, main switch for nesting. Verify that the explorer enables/disables nesting live when toggled.explorer.experimental.fileNesting.expand, controls whether file nests get expanded by default upon expanding a folder's contents. (Note that expansion state is stored, so reopening a folder after toggling this has no effect)explorer.experimental.fileNesting.patterns, central configuration for the whole operation. Some things to verify:- The vscode repo has a local configuration for this, verify that works and inheritance behaves in a way you expect
- The prebuilt patterns work as expected (for instance
*.ts => $(capture).js, $(capture).d.ts) - The
addedExtensionpattern works:* => $(capture).* pathSegmentpatterns work:*.js => $(capture).*.js- Suffix/prefix/substring patterns work, for instance:
foo-*.js => $(capture).js,*.js => foo-$(capture).js,*-foo.js => $(capture).js,*.js => $(capture)-foo.js,foo-*-bar.js => $(capture).js,*.js => foo-$(capture)-bar.js, etc. - Anything else you can think of!
Ref https://docs.microsoft.com/en-us/visualstudio/ide/file-nesting-solution-explorer?view=vs-2022 for how VS does this. Generally speaking we should be able to support anything VS does, with the exception of the generic pathSegment operator (".*": {} in VS), which we only support on a per-file extension basis: .js => $(capture)..js`
Reactions are currently unavailable