f486f34ebe
When force quitting, we need to block on the pending writes to ensure that write commands succeed before exiting, and also to avoid a crash when all the views are gone before the auto format call returns from the LS.
27 lines
578 B
Rust
27 lines
578 B
Rust
#[cfg(feature = "integration")]
|
|
mod test {
|
|
mod helpers;
|
|
|
|
use std::path::PathBuf;
|
|
|
|
use helix_core::{syntax::AutoPairConfig, Position, Selection};
|
|
use helix_term::{args::Args, config::Config};
|
|
|
|
use indoc::indoc;
|
|
|
|
use self::helpers::*;
|
|
|
|
#[tokio::test(flavor = "multi_thread")]
|
|
async fn hello_world() -> anyhow::Result<()> {
|
|
test(("#[\n|]#", "ihello world<esc>", "hello world#[|\n]#")).await?;
|
|
Ok(())
|
|
}
|
|
|
|
mod auto_indent;
|
|
mod auto_pairs;
|
|
mod commands;
|
|
mod movement;
|
|
mod prompt;
|
|
mod splits;
|
|
mod write;
|
|
}
|