Add setting for removing trailing whitespace on save
This commit is contained in:
parent
b00e467ede
commit
ff85bc6d42
8 changed files with 231 additions and 53 deletions
|
@ -235,7 +235,7 @@ async fn test_normalize_whitespace(cx: &mut gpui::TestAppContext) {
|
|||
|
||||
// Spawn a task to format the buffer's whitespace.
|
||||
// Pause so that the foratting task starts running.
|
||||
let format = buffer.read_with(cx, |buffer, cx| buffer.normalize_whitespace(cx));
|
||||
let format = buffer.read_with(cx, |buffer, cx| buffer.remove_trailing_whitespace(cx));
|
||||
smol::future::yield_now().await;
|
||||
|
||||
// Edit the buffer while the normalization task is running.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue