Carbon-Config-Project / CarbonConfig

Apache License 2.0
3 stars 2 forks source link

ColorValue should have a optional function to expose the SuggestionProviders for Parsed Values #22

Open Speiger opened 6 months ago

Speiger commented 6 months ago

because it is useful to have that for those too.

At the moment hackfix is:

public ISuggestionProvider getExpandedColorSuggestions() {
    ColorValue value = new ColorValue("dummy", 0);
    value.addExpandedColorSuggestions();
    return value.getProviders().get(0);
}

This gets you the Suggestion Provider since they are not bound to a config entry themselves.