Skip to content

Comments

TextEditorMask: Refactor and improve typing#32572

Open
marker-dao wants to merge 38 commits intoDevExpress:26_1from
marker-dao:26_1_texteditor_masks
Open

TextEditorMask: Refactor and improve typing#32572
marker-dao wants to merge 38 commits intoDevExpress:26_1from
marker-dao:26_1_texteditor_masks

Conversation

@marker-dao
Copy link
Contributor

No description provided.

@marker-dao marker-dao self-assigned this Feb 13, 2026
@marker-dao marker-dao force-pushed the 26_1_texteditor_masks branch from 623f3c1 to 44757c5 Compare February 13, 2026 15:41
@marker-dao marker-dao marked this pull request as ready for review February 13, 2026 15:41
@marker-dao marker-dao requested a review from a team as a code owner February 13, 2026 15:41
Copilot AI review requested due to automatic review settings February 13, 2026 15:41

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings February 13, 2026 16:11
r-farkhutdinov
r-farkhutdinov previously approved these changes Feb 13, 2026

This comment was marked as resolved.

@marker-dao marker-dao force-pushed the 26_1_texteditor_masks branch from 1d43728 to cd18b6f Compare February 19, 2026 13:38
Copilot AI review requested due to automatic review settings February 19, 2026 14:09

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

This comment was marked as resolved.

@marker-dao marker-dao force-pushed the 26_1_texteditor_masks branch from 185e44b to 60aa9a8 Compare February 20, 2026 17:40
Copilot AI review requested due to automatic review settings February 20, 2026 19:58

This comment was marked as resolved.

Copilot AI review requested due to automatic review settings February 20, 2026 20:42
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment on lines +561 to +565
const currentCaret = this._caret()?.start;

this._adjustCaret();
return !currentCaret || currentCaret !== this._caret().start;

return !currentCaret || currentCaret !== this._caret()?.start;
Copy link

Copilot AI Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_tryMoveCaretBackward uses a falsy check (!currentCaret) to detect whether the caret position changed. This makes the method return true when the caret is at position 0 (because 0 is falsy), even if the caret did not move. Consider comparing against undefined explicitly (or using isDefined) and returning currentCaret !== this._caret()?.start only when a previous caret value is actually available.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants