zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
34.46k stars 1.71k forks source link

golang gopls semanticTokens support #11019

Open youngxhui opened 3 weeks ago

youngxhui commented 3 weeks ago

Check for existing issues

Describe the feature

Unable to distinguish between package names or struct names by color.

setting ui.semanticTokens, but not work.

In vscode:

ui.semanticTokens: false

image

ui.semanticTokens: true

image

package name's color different struct name.

In zed

config

  "lsp": {
    "gopls": {
      "ui.semanticTokens": true,
      "symbolStyle": "Dynamic"
    }
  }

image

package name'color same as struct name.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 3 weeks ago

Slightly related, but more general: