pub fn update( editor: &Editor, flake_edit: &mut FlakeEdit, state: &AppState, id: Option<String>, init: bool, ) -> Result<()>