-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Each catalog has a different color #6
Labels
Comments
Un, interesting. I don't actually use named catalogs, but yeah I think this would be a nice feature. PR welcome if anyone wants to work on it |
I cloned this repo, and tried to the following, predefine 10 colors in the config, and get colors by the catalog index,
"contributes": {
"configuration": {
+ "pnpmCatalogLens.colors": {
+ "type": "array",
+ "default": ["#f69220", "#845EC2", "#D65DB1", "#2C73D2", "#0089BA", "#008F7A", "#00C7AD", "#F3C5FF", "#00C0FF", "#E6E885"],
+ "description": "text colors to diff catalogs. the first for default, #000000 for IndexOutOfBounds",
+ "items": {
+ "type": "string"
+ }
} const configColors = workspace.getConfiguration('pnpmCatalogLens').get('colors',['#f69220'])
const decorationsOverrideMap = new Map<string, ShallowRef<DecorationOptions[]>>(); and finally, i give up, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clear and concise description of the problem
it would be great if catalog with different color to distinguish them.
Suggested solution
color can auto calculate or manually set
Alternative
No response
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: