-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
vscode: show _templ.go files greyed out? #730
Comments
Why not allow both the options via plugin settings? Anyhow, my personal preference would be for option 1 |
Nesting seems the most sensible to me, its the default behavior of the goland plugin too. |
Either nesting or greyed out files would work quite well, I think, and make it clearer what parts to focus on in the explorer! 🎉 Hiding them completely might be confusing. |
Options 1 and 2 can be set in the vscode Settings without changing anything in the extension. Edit: option 2 is really great. It makes it much easier to focus on the templ files and not be distracted by the _templ.go files. Ctrl+p also excludes them so searching for file names shows less results too. |
Fixed in templ-go/templ-vscode@913c9b8 |
It would be nice if the generated
*_templ.go
files could be greyed out in the tree view in VS Code, either by default or as an option, just to indicate that one probably doesn't want to edit those, and that it's the.templ
files that are important.Perhaps one could even indicate that
_templ.go
files are stale by some kind of marker, if they have an older timestamp than the corresponding.templ
file..I'm not super familiar with TypeScript, or how VS Code plugins work in general, but I'm guessing something like how files in
.gitignore
are handled would be applicable:https://github.com/microsoft/vscode/blob/4a6ebe0ee5b2d13435e42416640b69d1a1004289/extensions/git/src/decorationProvider.ts#L14-L85
The text was updated successfully, but these errors were encountered: