Standardize on canceled instead of cancelled (#36385)

Release Notes:

- N/A
This commit is contained in:
Ben Brandt 2025-08-18 06:07:32 +02:00 committed by GitHub
parent 7dc4adbd40
commit b3969ed427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 28 additions and 29 deletions

View file

@ -441,11 +441,11 @@ impl MessageEditor {
thread.cancel_editing(cx);
});
let cancelled = self.thread.update(cx, |thread, cx| {
let canceled = self.thread.update(cx, |thread, cx| {
thread.cancel_last_completion(Some(window.window_handle()), cx)
});
if cancelled {
if canceled {
self.set_editor_is_expanded(false, cx);
self.send_to_model(window, cx);
}
@ -1404,7 +1404,7 @@ impl MessageEditor {
})
.ok();
});
// Replace existing load task, if any, causing it to be cancelled.
// Replace existing load task, if any, causing it to be canceled.
let load_task = load_task.shared();
self.load_context_task = Some(load_task.clone());
cx.spawn(async move |this, cx| {