-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Closed
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
What version of Go are you using (go version)?
$ gopls version
golang.org/x/tools/gopls v0.6.10
golang.org/x/tools/gopls@v0.6.10 h1:8Ebz8PymS2umcuCFhoz67unyJfWsipjTIrkBUF9kypg=
$ VsCode settings:
"gopls": {
"ui.semanticTokens": true,
},
"editor.semanticHighlighting.enabled": true,
What did you do?
Write following code in VSCode with semanticTokens enabled
const httpResponse = "HTTP/1.0 200 OK\r\nContent-Type: text/html\r\nPragma: no-cache\r\n\r\n<h2>..::TinyGo Rocks::..</h2>"
fmt.Sprintf("%v", httpResponse)What did you expect to see?
Semantic tokenization of \n\r\t escaped characters and format characters like %v in strings inside a Format function.
What did you see instead?
Monocolor string like the one github displays.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.