mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-23 01:46:18 +04:00
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.
28 lines
578 B
Rust
28 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;
|
|
}
|