probe-rs/vscode-legacy

Handle removal of breakpoints

Tiwalun opened this issue · 0 comments

Currently we don't handle removal of breakpoints at all.

vscode always sents a complete list of breakpoints for a single source file. If breakpoints are removed,
it will send a new request, where the removed breakpoints are not included anymore.

See also https://microsoft.github.io/debug-adapter-protocol/specification#Requests_SetBreakpoints

When a SetBreakpoint request is received, we should compare the list of breakpoints with the list of the breakpoints which are currently set, and remove all breakpoints which are not active anymore.