microsoft / microsoft/vscode-css-languageservice

Color completion only displays color squares for hex variables

Open
#314 2 comments 1 reaction 0 assignees View on GitHub

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

image

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.