-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: File Nesting #141354
Comments
I got it, I should download insiders version first
|
@marsen this feature is only available in the Insiders release of VS Code, at https://code.visualstudio.com/insiders/ Also, |
I shared some feedback with @JacksonKearl offline around ideas of supporting multiple capture groups, wildcard not allowing |
@JacksonKearl works as a charm on Ubuntu 21.10. If that could help I've tested it for vue+typescript file nesting with test, snap, and stories with the following command.
|
Refs: #6328
Complexity: 4
Create Issue
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:*.ts => $(capture).js, $(capture).d.ts
)addedExtension
pattern works:* => $(capture).*
pathSegment
patterns work:*.js => $(capture).*.js
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.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`The text was updated successfully, but these errors were encountered: