[gnome-builder/wip/chergert/lsp-plugin-loader: 22/24] plugins/serve-d: port to generic LSP plugin




commit f7581f0923b5f6d3e71a6f82b4cb0de536ab3dbd
Author: Christian Hergert <chergert redhat com>
Date:   Fri Oct 14 11:53:00 2022 -0500

    plugins/serve-d: port to generic LSP plugin

 .../serve-d/gbp-served-code-action-provider.c      | 65 ---------------------
 .../serve-d/gbp-served-code-action-provider.h      | 31 ----------
 .../serve-d/gbp-served-completion-provider.c       | 61 -------------------
 .../serve-d/gbp-served-completion-provider.h       | 31 ----------
 .../serve-d/gbp-served-diagnostic-provider.c       | 65 ---------------------
 .../serve-d/gbp-served-diagnostic-provider.h       | 31 ----------
 src/plugins/serve-d/gbp-served-formatter.c         | 65 ---------------------
 src/plugins/serve-d/gbp-served-formatter.h         | 31 ----------
 src/plugins/serve-d/gbp-served-highlighter.c       | 65 ---------------------
 src/plugins/serve-d/gbp-served-highlighter.h       | 31 ----------
 src/plugins/serve-d/gbp-served-hover-provider.c    | 66 ---------------------
 src/plugins/serve-d/gbp-served-hover-provider.h    | 31 ----------
 src/plugins/serve-d/gbp-served-rename-provider.c   | 65 ---------------------
 src/plugins/serve-d/gbp-served-rename-provider.h   | 31 ----------
 src/plugins/serve-d/gbp-served-service.c           | 62 --------------------
 src/plugins/serve-d/gbp-served-service.h           | 31 ----------
 src/plugins/serve-d/gbp-served-symbol-resolver.c   | 65 ---------------------
 src/plugins/serve-d/gbp-served-symbol-resolver.h   | 31 ----------
 src/plugins/serve-d/meson.build                    | 13 -----
 src/plugins/serve-d/serve-d-plugin.c               | 68 ----------------------
 src/plugins/serve-d/serve-d.gresource.xml          |  1 +
 src/plugins/serve-d/serve-d.plugin                 | 11 ++--
 src/plugins/serve-d/settings.json                  |  4 ++
 23 files changed, 12 insertions(+), 943 deletions(-)
---
diff --git a/src/plugins/serve-d/meson.build b/src/plugins/serve-d/meson.build
index 67b4ba6c2..32f7c0735 100644
--- a/src/plugins/serve-d/meson.build
+++ b/src/plugins/serve-d/meson.build
@@ -1,18 +1,5 @@
 if get_option('plugin_serve_d')
 
-plugins_sources += files([
-  'serve-d-plugin.c',
-  'gbp-served-code-action-provider.c',
-  'gbp-served-completion-provider.c',
-  'gbp-served-diagnostic-provider.c',
-  'gbp-served-formatter.c',
-  'gbp-served-highlighter.c',
-  'gbp-served-hover-provider.c',
-  'gbp-served-rename-provider.c',
-  'gbp-served-symbol-resolver.c',
-  'gbp-served-service.c',
-])
-
 plugin_served_resources = gnome.compile_resources(
   'serve-d-resources',
   'serve-d.gresource.xml',
diff --git a/src/plugins/serve-d/serve-d.gresource.xml b/src/plugins/serve-d/serve-d.gresource.xml
index 7cf0a1f10..663037e09 100644
--- a/src/plugins/serve-d/serve-d.gresource.xml
+++ b/src/plugins/serve-d/serve-d.gresource.xml
@@ -2,5 +2,6 @@
 <gresources>
   <gresource prefix="/plugins/serve-d">
     <file>serve-d.plugin</file>
+    <file>settings.json</file>
   </gresource>
 </gresources>
diff --git a/src/plugins/serve-d/serve-d.plugin b/src/plugins/serve-d/serve-d.plugin
index 86f84b713..1133b689d 100644
--- a/src/plugins/serve-d/serve-d.plugin
+++ b/src/plugins/serve-d/serve-d.plugin
@@ -2,15 +2,18 @@
 Builtin=true
 Copyright=Copyright © 2022 Christian Hergert
 Description=Provides integration with the serve-d language server for D
-Embedded=_gbp_served_register_types
+Embedded=ide_lsp_plugin_register_types
 Module=serve-d
 Name=D Language Server (serve-d)
 X-Category=lsps
+X-Code-Action-Languages=d
 X-Completion-Provider-Languages=d
-X-Symbol-Resolver-Languages=d
 X-Diagnostic-Provider-Languages=d
+X-Formatter-Languages=d
 X-Highlighter-Languages=d
 X-Hover-Provider-Languages=d
+X-LSP-Command=serve-d
+X-LSP-Languages=d
+X-LSP-Settings=settings.json
 X-Rename-Provider-Languages=d
-X-Formatter-Languages=d
-X-Code-Action-Languages=d
+X-Symbol-Resolver-Languages=d
diff --git a/src/plugins/serve-d/settings.json b/src/plugins/serve-d/settings.json
new file mode 100644
index 000000000..6da2a6e01
--- /dev/null
+++ b/src/plugins/serve-d/settings.json
@@ -0,0 +1,4 @@
+{
+    "serve-d" : {
+    }
+}


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