microsoft / microsoft/vscode-css-languageservice
Color completion only displays color squares for hex variables
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 384
- Forks
- 217
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 14
Description
Based on issue microsoft/vscode#166197

File: cssCompletion.ts
This function only tests for built-in colors and hex values. Adding another part to it that checks for color functions fixes the two color functions.
Making this change fixes $rgb and $rgba.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/services/cssCompletion.ts, where color completion checks built-in colors and hex values. Trace that function's handling of variables, then verify that $rgb and $rgba receive color-square completion indicators; the issue is done when both color functions are handled like the existing color values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scss, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100