fix: improve comment node style and support twistier click #2946
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Types
Background or solution
🤖 Generated by Copilot at 10a3875
renderSearchTree
function torenderCommentTree
and update its usage incomments-panel.view.tsx
(link, link, link, link)handleClick
function inCommentNode
to support customonSelect
functions for comment nodes (link)避免自定义节点绑定了 onSelect 后,点击依旧打开错误文件的问题,优化样式及样式名
Changelog
🤖 Generated by Copilot at 10a3875
This pull request improves the functionality and appearance of the comment tree view in the comments package. It adds a new prop and method for handling twistier icon clicks, renames and refactors some components and functions, and fixes some style issues with the comment node elements.