razor icon indicating copy to clipboard operation
razor copied to clipboard

Use a different coloring for component slots (i.e. renderfragment parameters)

Open AdmiralSnyder opened this issue 1 year ago • 2 comments

in this image, Menu is a [Parameter] of type RenderFragment - thus creating a Slot to put things into. I suggest that those slots should be drawn in a different color to differentiate their declarations from actual component instanciations. image

AdmiralSnyder avatar Feb 10 '24 01:02 AdmiralSnyder

This is mostly tooling, but I assume if we wanted to do this, we'd need the compiler to classify them differently?

chsienki avatar Feb 10 '24 19:02 chsienki

I don't know for sure, but I suspect there is enough metadata in a tag helper descriptor that this can probably be done entirely on the tooling side.

davidwengier avatar Feb 10 '24 22:02 davidwengier