lsp: report errors for component call without parentheses #676
Labels
enhancement
New feature or request
lsp
NeedsInvestigation
Issue needs some investigation before being fixed
Hi there, just learning this wonderful library! 👍
I encountered a little problem (using VSCode, templ v0.2.648 and vscode extension v0.0.22), where I (silly me) used
@subcomponent
instead of@subcomponent()
and the extension wouldn't complain about it, but the generated code would be invalid (since it generatessubcomponent.Render
instead ofsubcomponent().Render
. Example:Although the extension should watch out for components given as arguments which can be called without parentheses. By the way, why is this? 🤔 Shouldn't we make it consistent and force the developer to use
@subcomponent()
in all cases? 🤔The text was updated successfully, but these errors were encountered: