Skip to main content

classify_exit

Function classify_exit 

Source
pub fn classify_exit(success: bool, code: Option<i32>) -> EditorRunOutcome
Expand description

Classify an editor subprocess’s exit. code == None means it ended without an exit code (a signal kill). A pure function so both arms are unit-testable on every platform, independent of whether a real process can produce a code-less status there.