Allow enabling/disabling breakpoints (#27280)
This PR adds the ability to enable/disable breakpoints. It also fixes a bug where toggling a log breakpoint from the breakpoint context menu would add a standard breakpoint on top of the log breakpoint instead of deleting it. todo: - [x] Add `BreakpointState` field Breakpoint that manages if a breakpoint is active or not - [x] Don't send disabled breakpoints to DAP servers - in progress - [x] Half the opacity of disabled breakpoints - in progress - [x] Add `BreakpointState` to database - [x] Editor test for enabling/disabling breakpoints - [ ] Integration Test to make sure we don't send disabled breakpoints to DAP servers - [x] Database test to make sure we properly serialize/deserialize BreakpointState Release Notes: - N/A --------- Co-authored-by: Piotr <piotr@zed.dev> Co-authored-by: Conrad <conrad@zed.dev> Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
parent
df583d73b9
commit
d70ac64fe4
9 changed files with 583 additions and 172 deletions
|
@ -11,7 +11,7 @@ use crate::connection::Connection;
|
|||
pub struct Statement<'a> {
|
||||
/// vector of pointers to the raw SQLite statement objects.
|
||||
/// it holds the actual prepared statements that will be executed.
|
||||
raw_statements: Vec<*mut sqlite3_stmt>,
|
||||
pub raw_statements: Vec<*mut sqlite3_stmt>,
|
||||
/// Index of the current statement being executed from the `raw_statements` vector.
|
||||
current_statement: usize,
|
||||
/// A reference to the database connection.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue