Skip to content

Use modern rgb() syntax in color completions#496

Open
NgoQuocViet2001 wants to merge 1 commit into
microsoft:mainfrom
NgoQuocViet2001:fix-413-modern-rgb-completion
Open

Use modern rgb() syntax in color completions#496
NgoQuocViet2001 wants to merge 1 commit into
microsoft:mainfrom
NgoQuocViet2001:fix-413-modern-rgb-completion

Conversation

@NgoQuocViet2001

Copy link
Copy Markdown

Fixes #413

The rgb completion still inserts the legacy comma-separated three-channel form, so it cannot express alpha without switching to the legacy rgba alias.

This updates the rgb proposal to the CSS Color 4 space-separated form with an optional-alpha slot (rgb(R G B / A)). The existing rgba proposal remains available for users who want the legacy syntax. The completion test now covers the displayed signature, documentation, and inserted snippet.

Tests:

  • npm run compile (TypeScript + ESLint)
  • all 29 compiled test files via Node's test runner: 710 passing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New rgb() function syntax for completion

1 participant