vscode-go-template
vscode-go-template copied to clipboard
Incorrect error message using templates inside script
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 ?