Skip to content

fix(content-mapper): enable only the language features that tokens need - #481

Draft
mizdra wants to merge 3 commits into
mainfrom
claude/content-mapper-explicit-span-features
Draft

mizdra wants to merge 3 commits into
mainfrom
claude/content-mapper-explicit-span-features

Conversation

@mizdra

@mizdra mizdra commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

Tokens in *.module.css now take part only in the language features that are meaningful in CSS: Go to Definition, Find All References, document highlights, and Rename Symbol. Previously they took part in every TypeScript language feature, so hovering a class name in CSS showed TypeScript type information such as (property) Styles['a_1']: string.

Document highlights are kept on purpose: removing them makes VS Code highlight nothing on a token in CSS, and it also removes the highlights across the TS and CSS editors in "editor.occurrencesHighlight": "multiFile" mode.

How to verify

  1. vp test --project e2e packages/content-mapper
  2. Run the "content-mapper: vscode (7-content-mapper)" launch configuration and open src/a.module.css.
    • Hovering .a_1 no longer shows (property) Styles['a_1']: string.
    • Placing the cursor on a_1 still highlights the token.

🤖 Generated with Claude Code

mizdra and others added 3 commits November 13, 2026 02:02
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mizdra mizdra added the Type: Bug Bug or Bug fixes label Nov 12, 2026
@changeset-bot

changeset-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4e4d9da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@css-modules-kit/content-mapper Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

Type: Bug Bug or Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant