[gnome-builder] libide/foundry: attach PTY to run context instead of launcher



commit 13eb7738b674a5901f744183525386ea9bdc43d4
Author: Christian Hergert <chergert redhat com>
Date:   Mon Sep 26 12:36:57 2022 -0700

    libide/foundry: attach PTY to run context instead of launcher
    
    This will help ensure that the runtimes know about what is necessary when
    collapsing run context layers.

 src/libide/foundry/ide-pipeline-stage-command.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/foundry/ide-pipeline-stage-command.c b/src/libide/foundry/ide-pipeline-stage-command.c
index 4a41b6368..4b886993b 100644
--- a/src/libide/foundry/ide-pipeline-stage-command.c
+++ b/src/libide/foundry/ide-pipeline-stage-command.c
@@ -24,7 +24,7 @@
 
 #include <libide-threading.h>
 
-#include "ide-pipeline.h"
+#include "ide-pipeline-private.h"
 #include "ide-pipeline-stage-command.h"
 #include "ide-run-command.h"
 #include "ide-run-context.h"
@@ -103,11 +103,11 @@ ide_pipeline_stage_command_build_async (IdePipelineStage    *stage,
 
   run_context = ide_pipeline_create_run_context (pipeline, self->build_command);
 
+  _ide_pipeline_attach_pty_to_run_context (pipeline, run_context);
+
   if (!(launcher = ide_run_context_end (run_context, &error)))
     IDE_GOTO (handle_error);
 
-  ide_pipeline_attach_pty (pipeline, launcher);
-
   if (!(subprocess = ide_subprocess_launcher_spawn (launcher, NULL, &error)))
     IDE_GOTO (handle_error);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]