-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
SCMResourceDecorations ambiguity #23600
Comments
Interesting. I went with the same approach as for the editor decoration api. Thoughts @jrieken ? |
@alexandrudima and @aeschli know the reasoning behind the editor decoration API. As usual I am in for consistence. Also the editor inherit and overwrite approach has the benefit of not needing to repeat equal values. That will come into play once there are more values, but then it allows you define the defaults in the literal and then you only have specialisations/overrides in the light/dark part |
Tho what we could consider is to always use the |
As per last comment: #23648 |
The editor decorations allow to specify different values for dark/light at decoration creation time because we want to be able to switch themes without deleting all decorations or needing to go back to extensions and ask them to update the decorations to match the new theme. i.e. decorations are set with both light/dark options and we can easily flip between the light/dark options when the theme changes on the UI thread, without pinging extensions and without loosing decorations. |
I would go for consistency here and keep the same API. |
Testing #23311
SCMResourceDecorations
has aniconPath
and at the same timedark
andlight
, all can be specified in the same decoration, but onlydark
/light
will be used. An alternative that only allows one of the two options at once would be:The text was updated successfully, but these errors were encountered: