Fix staging error reporting (#25630)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin
2025-02-26 12:38:04 -07:00
committed by GitHub
parent 089ea5da50
commit b2a685f00a
3 changed files with 40 additions and 24 deletions
+4 -2
View File
@@ -8720,11 +8720,12 @@ fn diff_hunk_controls(
})
.on_click({
let editor = editor.clone();
move |_event, _, cx| {
move |_event, window, cx| {
editor.update(cx, |editor, cx| {
editor.stage_or_unstage_diff_hunks(
false,
&[hunk_range.start..hunk_range.start],
window,
cx,
);
});
@@ -8749,11 +8750,12 @@ fn diff_hunk_controls(
})
.on_click({
let editor = editor.clone();
move |_event, _, cx| {
move |_event, window, cx| {
editor.update(cx, |editor, cx| {
editor.stage_or_unstage_diff_hunks(
true,
&[hunk_range.start..hunk_range.start],
window,
cx,
);
});