feat: support delete or edit breakpoints when hovering on the it #2655
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 a0d60ad
removeAllBreakpoints
command and remove theisEnabled
property (link)debug-breakpoints.view.tsx
file (link)BreakpointManager
service for managing and editing breakpoints in thedebug-breakpoints.view.tsx
file (link, link)title
prop and use it as the title attribute for the breakpoint file item label in theBreakpointFileItem
component (link, link, link)removeBreakpoint
function and the close icon to theBreakpointFileItem
component and handle the click event to remove all breakpoints associated with the file (link, link)editBreakpoint
function and the edit icon to theBreakpointItem
component and handle the click event to open the editor and execute theDEBUG_COMMANDS.EDIT_BREAKPOINT
command (link, link).debug_breakpoints_item_control
to control the display of the edit and remove icons for each breakpoint item in thedebug-breakpoints.module.less
file (link, link, link)debug-breakpoints.module.less
file (link, link)debug-contribution.ts
file for code readability and style consistency (link)Changelog
🤖 Generated by Copilot at a0d60ad
This pull request improves the debug feature of the opensumi core by enhancing the code quality, style, and functionality of the
DebugContribution
class and the breakpoint view components. It also adds internationalization, external icons, and editor integration for breakpoints.