Skip to content

[lexical-extension] Bug Fix: Set the correct default $canIndent#8510

Merged
etrepum merged 2 commits into
facebook:mainfrom
levensta:fix-default-can-indent
May 14, 2026
Merged

[lexical-extension] Bug Fix: Set the correct default $canIndent#8510
etrepum merged 2 commits into
facebook:mainfrom
levensta:fix-default-can-indent

Conversation

@levensta

Copy link
Copy Markdown
Contributor

Description

It looks like it was an autocomplete error, so I'm fixing it to correctly use the default predicate for TabExtension

Test plan

Before

In the TabIndentationExtension and TabIndentationPlugin, the results of canBeEmpty() method was used by default for the $canIndent parameter

After

The $canIndent option defaults to the result of the canIndent() method

@vercel

vercel Bot commented May 13, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 13, 2026 11:35pm
lexical-playground Ready Ready Preview, Comment May 13, 2026 11:35pm

Request Review

@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 May 13, 2026
@levensta levensta changed the title [lexical-extension] Bug Fix: Sets the correct default $canIndent May 13, 2026
@etrepum etrepum added this pull request to the merge queue May 14, 2026
Merged via the queue into facebook:main with commit e8e5910 May 14, 2026
42 checks passed
@etrepum etrepum mentioned this pull request May 28, 2026
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.

2 participants