[gnome-builder/gnome-builder-3-28] build-manager: fix initial diagnose after build



commit 08f120d42d1d9d765a2a6e8c64b56f4a9401bd3b
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jun 27 14:58:11 2018 -0700

    build-manager: fix initial diagnose after build
    
    The first time we do a build, even to configure phase, we want to diagnose
    any open documents. This fixes a situation where the user opens up a file,
    but there are no CFLAGS yet, then the build completes and they still see
    diagnostic warnings.

 src/libide/buildsystem/ide-build-manager.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/libide/buildsystem/ide-build-manager.c b/src/libide/buildsystem/ide-build-manager.c
index e54c44af0..95ac5d060 100644
--- a/src/libide/buildsystem/ide-build-manager.c
+++ b/src/libide/buildsystem/ide-build-manager.c
@@ -688,6 +688,8 @@ ide_build_manager_real_build_finished (IdeBuildManager  *self,
 
       ide_diagnostics_manager_rediagnose (diagnostics, buffer);
     }
+
+  self->needs_rediagnose = FALSE;
 }
 
 static void
@@ -1070,6 +1072,7 @@ ide_build_manager_init (IdeBuildManager *self)
   ide_build_manager_update_action_enabled (self);
 
   self->cancellable = g_cancellable_new ();
+  self->needs_rediagnose = TRUE;
 
   self->pipeline_signals = dzl_signal_group_new (IDE_TYPE_BUILD_PIPELINE);
 


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