vscode-go-template icon indicating copy to clipboard operation
vscode-go-template copied to clipboard

Incorrect error message using templates inside script

Open GekixD opened this issue 7 months ago • 0 comments

I have a code similar to this:

<script>
 {{with .Warning}}
  // do something with {{.}}
 {{end}}
 </script>

inside a Go template file, and there are 2 errors in {{with '.'Warning'}'} at the parts where the single quotes are. Specifically, in VS Code it displays an error message that says: expected "(" and expected ")" respectively.

I tried restarting the tool in VS Code, and the problem still persists. Am I doing something wrong (or is there a configuration I should change but didn't) or there is an issue with JS scripts inside go templates ?

GekixD avatar Jul 19 '24 13:07 GekixD