[gnome-builder] rust-analyzer: enable search provider



commit 5b1dd95796fa595f0a4960f8addb173f7fe21724
Author: Günther Wagner <info gunibert de>
Date:   Fri Jul 23 22:29:21 2021 +0200

    rust-analyzer: enable search provider
    
    After deferring the start of the rust service to other providers, it
    should be save again to enable the provider again.

 src/plugins/rust-analyzer/rust-analyzer-plugin.c          | 4 +---
 src/plugins/rust-analyzer/rust-analyzer-search-provider.c | 4 +++-
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/plugins/rust-analyzer/rust-analyzer-plugin.c 
b/src/plugins/rust-analyzer/rust-analyzer-plugin.c
index 3b381d50b..d37e7d7f1 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-plugin.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-plugin.c
@@ -1,6 +1,6 @@
 /* rust-analyzer-plugin.c
  *
- * Copyright 2020 Günther Wagner <info gunibert de>
+ * Copyright 2020-2021 Günther Wagner <info gunibert de>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -66,11 +66,9 @@ _rust_analyzer_register_types (PeasObjectModule *module)
   peas_object_module_register_extension_type (module,
                                               IDE_TYPE_RENAME_PROVIDER,
                                               RUST_TYPE_ANALYZER_RENAME_PROVIDER);
-#if 0
   peas_object_module_register_extension_type (module,
                                               IDE_TYPE_SEARCH_PROVIDER,
                                               RUST_TYPE_ANALYZER_SEARCH_PROVIDER);
-#endif
   peas_object_module_register_extension_type (module,
                                               IDE_TYPE_PREFERENCES_ADDIN,
                                               RUST_TYPE_ANALYZER_PREFERENCES_ADDIN);
diff --git a/src/plugins/rust-analyzer/rust-analyzer-search-provider.c 
b/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
index b259ca8cf..538aff65b 100644
--- a/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
+++ b/src/plugins/rust-analyzer/rust-analyzer-search-provider.c
@@ -1,6 +1,6 @@
 /* rust-analyzer-search-provider.c
  *
- * Copyright 2020 Günther Wagner <info gunibert de>
+ * Copyright 2020-2021 Günther Wagner <info gunibert de>
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -18,6 +18,8 @@
  * SPDX-License-Identifier: GPL-3.0-or-later
  */
 
+#define G_LOG_DOMAIN "rust-analyzer-search-provider"
+
 #include <libide-search.h>
 
 #include "rust-analyzer-search-provider.h"


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