[gnome-builder/wip/chergert/lsp-plugin-loader] plugins/blueprint: port to dynamic LSP plugin



commit 1f9bd2e614eed441e4167c444c4c8e280c1cefe9
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 13 21:46:29 2022 -0500

    plugins/blueprint: port to dynamic LSP plugin

 src/plugins/blueprint/blueprint-plugin.c           | 52 --------------
 src/plugins/blueprint/blueprint.plugin             |  4 +-
 .../blueprint/gbp-blueprint-code-action-provider.c | 65 ------------------
 .../blueprint/gbp-blueprint-code-action-provider.h | 31 ---------
 .../blueprint/gbp-blueprint-completion-provider.c  | 61 -----------------
 .../blueprint/gbp-blueprint-completion-provider.h  | 31 ---------
 .../blueprint/gbp-blueprint-diagnostic-provider.c  | 65 ------------------
 .../blueprint/gbp-blueprint-diagnostic-provider.h  | 31 ---------
 .../blueprint/gbp-blueprint-hover-provider.c       | 66 ------------------
 .../blueprint/gbp-blueprint-hover-provider.h       | 31 ---------
 src/plugins/blueprint/gbp-blueprint-service.c      | 79 ----------------------
 src/plugins/blueprint/gbp-blueprint-service.h      | 31 ---------
 src/plugins/blueprint/meson.build                  |  9 ---
 13 files changed, 3 insertions(+), 553 deletions(-)
---
diff --git a/src/plugins/blueprint/blueprint.plugin b/src/plugins/blueprint/blueprint.plugin
index 95d2b0b75..ccdc53c69 100644
--- a/src/plugins/blueprint/blueprint.plugin
+++ b/src/plugins/blueprint/blueprint.plugin
@@ -1,7 +1,7 @@
 [Plugin]
 Builtin=true
 Description=Provides integration with the blueprint language server
-Embedded=_gbp_blueprint_register_types
+Embedded=ide_lsp_plugin_register_types
 Module=blueprint
 Name=Blueprint Language Server
 X-Category=lsps
@@ -10,3 +10,5 @@ X-Completion-Provider-Languages=blueprint
 X-Diagnostic-Provider-Languages-Priority=100
 X-Diagnostic-Provider-Languages=blueprint
 X-Hover-Provider-Languages=blueprint
+X-LSP-Command=blueprint-compiler lsp
+X-LSP-Languages=blueprint
diff --git a/src/plugins/blueprint/meson.build b/src/plugins/blueprint/meson.build
index 5581e4f70..924afed44 100644
--- a/src/plugins/blueprint/meson.build
+++ b/src/plugins/blueprint/meson.build
@@ -1,14 +1,5 @@
 if get_option('plugin_blueprint')
 
-plugins_sources += files([
-  'blueprint-plugin.c',
-  'gbp-blueprint-code-action-provider.c',
-  'gbp-blueprint-completion-provider.c',
-  'gbp-blueprint-diagnostic-provider.c',
-  'gbp-blueprint-hover-provider.c',
-  'gbp-blueprint-service.c',
-])
-
 plugin_blueprint_resources = gnome.compile_resources(
   'blueprint-resources',
   'blueprint.gresource.xml',


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