Skip to content
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

Add goland's bluish tint color for user defined types #28

Closed
soypat opened this issue Mar 20, 2021 · 1 comment
Closed

Add goland's bluish tint color for user defined types #28

soypat opened this issue Mar 20, 2021 · 1 comment

Comments

@soypat
Copy link

soypat commented Mar 20, 2021

In Go, types are defined like so:

type logLevel int

Your extension colors these a bluish tint, which is similar to how Goland darcula does it.

It'd be great to extend this coloring for any time user defined types appear, such as:

package main

type logLevel int

const (
    Info logLevel = 0 // `logLevel` should be of different color than `Info`
    Warn logLevel = 1
    Error logLevel = 2
)
// same goes for functions argument types and return types
func SetLogLevel(lvl logLevel) logLevel {
   var packageLevel logLevel = lvl // and var declarations types
   var lotsLevels []logLevel
}

All logLevel appearances should have a slightly different color. See this image https://www.jetbrains.com/go/img/screenshots/1_Code_insight_2.png and this one https://www.jetbrains.com/go/img/screenshots/2_Navigation_Search.png

@soypat
Copy link
Author

soypat commented Mar 26, 2021

It is being taken care of by gopls!

@soypat soypat closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant