kisstkondoros / codemetrics

VSCode extension which shows the complexity information for TypeScript class members
Other
404 stars 20 forks source link

Add DecorationTemplate configuration #64

Closed luchsamapparat closed 5 years ago

luchsamapparat commented 5 years ago

Hi,

I didn't like those big rectangle decorators, so I added a configuration option to customize the decorator SVG.

That way you can override the default SVG like this:

{
    "codemetrics.basics.DecorationTemplate": "<svg xmlns='http://www.w3.org/2000/svg' width='{{size}}px' height='{{size}}px' viewbox='0 0 {{size}} {{size}}'><circle r='30%' cx='30%' cy='70%' style='fill:{{color}}'/></svg>"
}

And get this...

image

kisstkondoros commented 5 years ago

I'll come back to this soon, thanks for the contribution!

kisstkondoros commented 5 years ago

The version 1.18.0 was just released which includes this feature, thanks again for the contribution! :fireworks: