Skip to content

only attempt on-type-formatting when replace length is 0 - #2911

Merged
rchl merged 1 commit into
mainfrom
fix/on-type
May 18, 2026
Merged

rchl merged 1 commit into
mainfrom
fix/on-type

Conversation

@rchl

@rchl rchl commented May 17, 2026

Copy link
Copy Markdown
Member

While I don't know of any case that it fixes, it shouldn't break anything and it makes sense to me that we would not attempt on-type-formatting when replacing existing range.

If nothing else, it's an optimization to avoid extra work in many cases.

@rchl
rchl merged commit 5a72fd2 into main May 18, 2026
8 checks passed
@rchl
rchl deleted the fix/on-type branch May 18, 2026 06:01
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.

2 participants