File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ pub(super) fn start_editor(
106106 let child = ForegroundChild :: spawn (
107107 command,
108108 engine_state. is_interactive ,
109- engine_state. current_thread_job . is_some ( ) ,
109+ engine_state. is_background_job ( ) ,
110110 & engine_state. pipeline_externals_state ,
111111 ) ;
112112
Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ impl Command for External {
251251 let child = ForegroundChild :: spawn (
252252 command,
253253 engine_state. is_interactive ,
254- engine_state. current_thread_job . is_some ( ) ,
254+ engine_state. is_background_job ( ) ,
255255 & engine_state. pipeline_externals_state ,
256256 ) ;
257257
Original file line number Diff line number Diff line change @@ -1072,6 +1072,11 @@ impl EngineState {
10721072 . position ( |sp| sp == & span)
10731073 . map ( SpanId :: new)
10741074 }
1075+
1076+ // Determines whether the current state is being held by a background job
1077+ pub fn is_background_job ( & self ) -> bool {
1078+ self . current_thread_job . is_some ( )
1079+ }
10751080}
10761081
10771082impl GetSpan for & EngineState {
You can’t perform that action at this time.
0 commit comments