-
Notifications
You must be signed in to change notification settings - Fork 765
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
Doc: improve documentation for working with template files #3655
Comments
I also see the following error in the gopls server output:
|
Hi, are you setting the "templateExtensions" gopls setting? Without this set, VS Code will not recognize go template files. |
Thanks @bigon: are you still not seeing syntax highlighting after that change? You may also need to add: "semanticTokens": true. |
|
Thank you. Reclassifying this as a documentation bug, to improve our (nearly nonexistent) documentation for working with template files. |
Shouldn't |
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Tools Configuration
Environment
GOBIN: undefined
toolsGopath:
gopath: /home/bigon/go
GOROOT: /usr/lib/go-1.23
PATH: /home/bigon/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Tools
Go env
Workspace Folder (thanos-receivers): /home/bigon/Boulot//code/thanos-receivers
Share the Go related settings you have added/edited
Default config
Describe the bug
No syntax highlighting for gotmpl
I'm expecting to have some colors and highlighting
Steps to reproduce the behavior:
Screenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: