How does the dsl marker colors work? All I can see...
# intellij
j
How does the dsl marker colors work? All I can see is that everything is extending from the
DslMarker
and somehow that ends up being using DslStyle1,2,3 or 4.
m
The choice between 1,2,3,4 is based on the hash of the fully qualified name of the DSL marker. In this case that’s
io.ktor.client.HttpClientDsl
. Changing the name or package will likely change the color. There’s a discussion somewhere to make the color selection more predictable through a
DslMarker
annotation parameter.
👍 1
j
Thanks for the explaination. If someone knows the youtrack issue or where this is being discussed. I would love to follow that progress 🙂
m