Skip to content

Conversation

@n1kolasM
Copy link
Contributor

No description provided.

@n1kolasM n1kolasM requested review from aonnikov and Copilot October 10, 2025 06:24
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13907

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

This PR prevents duplicating ToDo items when copying and pasting content within text editor documents by implementing deduplication logic.

  • Adds an EditorContextExtension to track the current editor's object context (ID, class, and space)
  • Implements a TodoItemPastePlugin that cleans duplicate ToDo attributes during paste operations
  • Extends ToDo items with parent context attributes to identify their origin

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
plugins/text-editor-resources/src/kits/editor-kit.ts Integrates the new EditorContextExtension into the editor kit
plugins/text-editor-resources/src/components/extension/todo/todo.ts Implements deduplication logic and adds parent context tracking to ToDo items
plugins/text-editor-resources/src/components/extension/editorContext.ts Creates new extension to provide editor context for ToDo deduplication

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

aonnikov
aonnikov previously approved these changes Oct 10, 2025
@n1kolasM n1kolasM marked this pull request as draft October 13, 2025 05:20
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
@n1kolasM n1kolasM marked this pull request as ready for review October 15, 2025 08:22
@n1kolasM n1kolasM requested review from aonnikov and Copilot October 15, 2025 08:22
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 3 out of 3 changed files in this pull request and generated 2 comments.

Conflicting rules for typescript validation and eslint only work with
strange conversion from ParseRule to TagParseRule

Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
@n1kolasM n1kolasM merged commit b334ef5 into develop Oct 16, 2025
15 checks passed
@BykhovDenis BykhovDenis deleted the separate_todos branch October 22, 2025 18:25
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.

3 participants