Skip to content

[lexical-code] Bug fix: Add editor key in highlighted nodes cache - #7970

Merged
takuyakanbr merged 1 commit into
mainfrom
code-highlight-cache
Nov 3, 2025
Merged

takuyakanbr merged 1 commit into
mainfrom
code-highlight-cache

Conversation

@takuyakanbr

Copy link
Copy Markdown
Contributor

Prepend editor keys when adding node keys into the nodesCurrentlyHighlighting cache in CodeHighlighterPrism.ts, so that code highlighting does not get skipped for some editors when multiple editors on the page are initialized with the same content.

Test plan

Run existing tests:
npm run test-unit LexicalCodeNode

@vercel

vercel Bot commented Nov 3, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Nov 3, 2025 6:45pm
lexical-playground Ready Ready Preview Comment Nov 3, 2025 6:45pm

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2025
@takuyakanbr
takuyakanbr added this pull request to the merge queue Nov 3, 2025
Merged via the queue into main with commit 4f0d5a3 Nov 3, 2025
@takuyakanbr
takuyakanbr deleted the code-highlight-cache branch November 3, 2025 19:47
@etrepum etrepum mentioned this pull request Dec 10, 2025

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 5c37a547 Deployed Nov 3, 2025 by vercel[bot]
Preview – lexical — 5c37a547 Deployed Nov 3, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants