-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Prevent duplicating ToDos in documents content #10063
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Connected to Huly®: UBERF-13907 |
There was a problem hiding this 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.
plugins/text-editor-resources/src/components/extension/todo/todo.ts
Outdated
Show resolved
Hide resolved
plugins/text-editor-resources/src/components/extension/todo/todo.ts
Outdated
Show resolved
Hide resolved
plugins/text-editor-resources/src/components/extension/todo/todo.ts
Outdated
Show resolved
Hide resolved
9b1391b to
05dfd9f
Compare
plugins/text-editor-resources/src/components/extension/todo/todo.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
05dfd9f to
e481106
Compare
Signed-off-by: Nikolay Marchuk <nikolay.marchuk@hardcoreeng.com>
There was a problem hiding this 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>
No description provided.