Skip to content
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

templ-vscode should allow disabling of collapsing functionality in file explorer #1008

Open
andriygm opened this issue Dec 3, 2024 · 2 comments

Comments

@andriygm
Copy link

andriygm commented Dec 3, 2024

Currently, templ-vscode extension collapses generated .go files under .templ files, which is a nice feature, but also collapses unrelated files such as bun.lockb inside package.json. This functionality should probably default to only .templ files and allow users to enable or disable the feature all together, and choose whether they want it to also apply to these unrelated file types such as package.json.

@pharrisee
Copy link

pharrisee commented Dec 4, 2024

As far as I can see that pattern (bun.lockb inside package.json) is part of the default VSCode nesting.

Take a look at the configuration of VSCode and check the explorer.fileNesting.patterns and you should see the setting there.

The default nesting pattern for package.json is package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb

@andriygm
Copy link
Author

andriygm commented Dec 4, 2024

I had no idea this was a vscode native feature! Looks like the plugin changes the default value to enabled. Wondering if it's worth updating the https://templ.guide/commands-and-tools/ide-support doc page to mention this default behavior.
Screenshot 2024-12-04 at 1 34 29 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants