Skip to content

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

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

[lexical-code] Bug fix: Add editor key in highlighted nodes cache#7970
takuyakanbr merged 1 commit intomainfrom
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
Copy link
Copy Markdown

vercel bot commented Nov 3, 2025

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
40 checks passed
@takuyakanbr takuyakanbr deleted the code-highlight-cache branch November 3, 2025 19:47
@etrepum etrepum mentioned this pull request Dec 10, 2025
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