Skip to content

Add Pigments extension - #7459

Open
JonathonRP wants to merge 1 commit into
zed-industries:mainfrom
JonathonRP:jonathonrp-register-zed-pigments
Open

Add Pigments extension#7459
JonathonRP wants to merge 1 commit into
zed-industries:mainfrom
JonathonRP:jonathonrp-register-zed-pigments

Conversation

@JonathonRP

Copy link
Copy Markdown

Summary

Adds Pigments, a language-server extension providing native Zed document-color previews.

  • Registry ID: pigments-lsp
  • Version: 0.3.1
  • Extension path: zed-pigments
  • Pinned source commit: 545ee63
  • Release: v0.3.1

Existing extensions and differentiation

This overlaps with the document-color use case served by Color Highlight and the narrower hex-colorizer submission in #7456. Pigments is based on ColorLSP and preserves attribution, but materially expands the behavior:

  • language-aware, context-aware parsing rather than matching every hex-looking token
  • CSS hex (including #RGBA), 0x, RGB/HSL, CSS Color 4 (hwb, lab, lch, oklab, and oklch), and safe named-color recognition
  • recursive document-local CSS custom-property and Sass/Less/Stylus variable resolution, with scope and cycle safeguards
  • UTF-16-correct LSP ranges
  • hover details and style-preserving colorPresentation edits

The source README documents the supported syntax, semantic safeguards, limitations, attribution, and architecture.

Validation

  • pnpm sort-extensions

  • pnpm build

  • pnpm test (115 tests)

  • pnpm package-extensions pigments-lsp using the upstream Linux packaging environment: Node 24, Rust 1.90, wasm32-wasip2, and pinned zed-extension CLI 9ee3c503a4bbbc6b4a0f8a789acca4871d773223

  • Confirmed the pinned commit remains reachable from the source repository's main history and publication branch

  • I've read the contribution guidelines and followed the relevant guidance for adding or updating my extension.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@cla-bot

cla-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @JonathonRP on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@JonathonRP

Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot

cla-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have @JonathonRP on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot

cla-bot Bot commented Sep 2, 2026

Copy link
Copy Markdown

The cla-bot has been summoned, and re-checked this pull request!

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.

1 participant