Remove stray dbg statements
This commit is contained in:
parent
1b07fd6a70
commit
21d3ae603d
4 changed files with 3 additions and 7 deletions
|
@ -2613,13 +2613,13 @@ impl Element for EditorElement {
|
||||||
move |known_dimensions, available_space, cx| {
|
move |known_dimensions, available_space, cx| {
|
||||||
editor_handle
|
editor_handle
|
||||||
.update(cx, |editor, cx| {
|
.update(cx, |editor, cx| {
|
||||||
dbg!(compute_auto_height_layout(
|
compute_auto_height_layout(
|
||||||
editor,
|
editor,
|
||||||
max_lines,
|
max_lines,
|
||||||
max_line_number_width,
|
max_line_number_width,
|
||||||
known_dimensions,
|
known_dimensions,
|
||||||
cx,
|
cx,
|
||||||
))
|
)
|
||||||
})
|
})
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
},
|
},
|
||||||
|
|
|
@ -315,14 +315,11 @@ impl SelectionsCollection {
|
||||||
|
|
||||||
let line = display_map.layout_row(row, &text_layout_details);
|
let line = display_map.layout_row(row, &text_layout_details);
|
||||||
|
|
||||||
dbg!("****START COL****");
|
|
||||||
let start_col = line.closest_index_for_x(positions.start) as u32;
|
let start_col = line.closest_index_for_x(positions.start) as u32;
|
||||||
if start_col < line_len || (is_empty && positions.start == line.width) {
|
if start_col < line_len || (is_empty && positions.start == line.width) {
|
||||||
let start = DisplayPoint::new(row, start_col);
|
let start = DisplayPoint::new(row, start_col);
|
||||||
dbg!("****END COL****");
|
|
||||||
let end_col = line.closest_index_for_x(positions.end) as u32;
|
let end_col = line.closest_index_for_x(positions.end) as u32;
|
||||||
let end = DisplayPoint::new(row, end_col);
|
let end = DisplayPoint::new(row, end_col);
|
||||||
dbg!(start_col, end_col);
|
|
||||||
|
|
||||||
Some(Selection {
|
Some(Selection {
|
||||||
id: post_inc(&mut self.next_selection_id),
|
id: post_inc(&mut self.next_selection_id),
|
||||||
|
|
|
@ -1225,7 +1225,7 @@ mod tests {
|
||||||
//
|
//
|
||||||
// TODO: without closing, the opened items do not propagate their history changes for some reason
|
// TODO: without closing, the opened items do not propagate their history changes for some reason
|
||||||
// it does work in real app though, only tests do not propagate.
|
// it does work in real app though, only tests do not propagate.
|
||||||
workspace.update(cx, |_, cx| dbg!(cx.focused()));
|
workspace.update(cx, |_, cx| cx.focused());
|
||||||
|
|
||||||
let initial_history = open_close_queried_buffer("fir", 1, "first.rs", &workspace, cx).await;
|
let initial_history = open_close_queried_buffer("fir", 1, "first.rs", &workspace, cx).await;
|
||||||
assert!(
|
assert!(
|
||||||
|
|
|
@ -80,7 +80,6 @@ impl Render for Toolbar {
|
||||||
type Element = Div;
|
type Element = Div;
|
||||||
|
|
||||||
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
fn render(&mut self, cx: &mut ViewContext<Self>) -> Self::Element {
|
||||||
//dbg!(&self.items.len());
|
|
||||||
v_stack()
|
v_stack()
|
||||||
.border_b()
|
.border_b()
|
||||||
.border_color(cx.theme().colors().border_variant)
|
.border_color(cx.theme().colors().border_variant)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue