[gnome-builder] rust-analyzer: delay spawning rust-analyzer in search



commit 45e5a500f7858e9d40ce9aad90a447f569180eee
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 12 12:56:10 2021 -0700

    rust-analyzer: delay spawning rust-analyzer in search
    
    We don't want global search to cause the spawn of rust-analyzer as it will
    unecessarily get spawned for projects not usin Rust.
    
    Other providers can, however, cause the spawning of the client and then
    the search provider will pick that up.
    
    Related to #1476

 src/plugins/rust-analyzer/rust-analyzer-search-provider.c | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-search-provider.c 
b/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
index 97e195df3..b259ca8cf 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
@@ -59,7 +59,6 @@ rust_analyzer_search_provider_load (IdeSearchProvider *self,
 
   service = rust_analyzer_service_from_context (context);
   g_object_bind_property (service, "client", self, "client", G_BINDING_SYNC_CREATE);
-  rust_analyzer_service_ensure_started (service);
 
   IDE_EXIT;
 }


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