[gnome-builder/wip/chergert/lsp-plugin-loader] plugins/intelephense: port to generic LSP plugin
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/lsp-plugin-loader] plugins/intelephense: port to generic LSP plugin
- Date: Fri, 14 Oct 2022 17:03:38 +0000 (UTC)
commit 4ed46d28c879d978a4185f4525efbb4cac8d4bf0
Author: Christian Hergert <chergert redhat com>
Date: Fri Oct 14 11:28:53 2022 -0500
plugins/intelephense: port to generic LSP plugin
.../gbp-intelephense-code-action-provider.c | 65 --------
.../gbp-intelephense-code-action-provider.h | 31 ----
.../gbp-intelephense-completion-provider.c | 61 -------
.../gbp-intelephense-completion-provider.h | 31 ----
.../gbp-intelephense-diagnostic-provider.c | 65 --------
.../gbp-intelephense-diagnostic-provider.h | 31 ----
.../intelephense/gbp-intelephense-formatter.c | 65 --------
.../intelephense/gbp-intelephense-formatter.h | 31 ----
.../intelephense/gbp-intelephense-highlighter.c | 65 --------
.../intelephense/gbp-intelephense-highlighter.h | 31 ----
.../intelephense/gbp-intelephense-hover-provider.c | 66 --------
.../intelephense/gbp-intelephense-hover-provider.h | 31 ----
.../gbp-intelephense-rename-provider.c | 65 --------
.../gbp-intelephense-rename-provider.h | 31 ----
.../intelephense/gbp-intelephense-service.c | 184 ---------------------
.../intelephense/gbp-intelephense-service.h | 31 ----
.../gbp-intelephense-symbol-resolver.c | 65 --------
.../gbp-intelephense-symbol-resolver.h | 31 ----
src/plugins/intelephense/intelephense-plugin.c | 68 --------
.../intelephense/intelephense.gresource.xml | 1 +
src/plugins/intelephense/intelephense.plugin | 15 +-
src/plugins/intelephense/meson.build | 13 --
src/plugins/intelephense/settings.json | 17 ++
23 files changed, 27 insertions(+), 1067 deletions(-)
---
diff --git a/src/plugins/intelephense/intelephense.gresource.xml
b/src/plugins/intelephense/intelephense.gresource.xml
index ddee34ddc..8d4a4f345 100644
--- a/src/plugins/intelephense/intelephense.gresource.xml
+++ b/src/plugins/intelephense/intelephense.gresource.xml
@@ -2,5 +2,6 @@
<gresources>
<gresource prefix="/plugins/intelephense">
<file>intelephense.plugin</file>
+ <file>settings.json</file>
</gresource>
</gresources>
diff --git a/src/plugins/intelephense/intelephense.plugin b/src/plugins/intelephense/intelephense.plugin
index 6a2184cdb..de0efcfbe 100644
--- a/src/plugins/intelephense/intelephense.plugin
+++ b/src/plugins/intelephense/intelephense.plugin
@@ -1,16 +1,19 @@
[Plugin]
+Author=Peter Maatman <blackwolf12333 gmail com>
Builtin=true
-Name=PHP Language Server
Description=Provides integration with the intelephense language server for PHP
-Embedded=_gbp_intelephense_register_types
+Embedded=ide_lsp_plugin_register_types
Module=intelephense
-Author=Peter Maatman <blackwolf12333 gmail com>
+Name=PHP Language Server
X-Category=lsps
+X-Code-Action-Languages=php
X-Completion-Provider-Languages=php
-X-Symbol-Resolver-Languages=php
X-Diagnostic-Provider-Languages=php
+X-Formatter-Languages=php
X-Highlighter-Languages=php
X-Hover-Provider-Languages=php
+X-LSP-Command=intelephense
+X-LSP-Languages=php
+X-LSP-Settings=settings.json
X-Rename-Provider-Languages=php
-X-Formatter-Languages=php
-X-Code-Action-Languages=php
+X-Symbol-Resolver-Languages=php
diff --git a/src/plugins/intelephense/meson.build b/src/plugins/intelephense/meson.build
index 241893dab..b2b876c14 100644
--- a/src/plugins/intelephense/meson.build
+++ b/src/plugins/intelephense/meson.build
@@ -1,18 +1,5 @@
if get_option('plugin_intelephense')
-plugins_sources += files([
- 'intelephense-plugin.c',
- 'gbp-intelephense-code-action-provider.c',
- 'gbp-intelephense-completion-provider.c',
- 'gbp-intelephense-diagnostic-provider.c',
- 'gbp-intelephense-formatter.c',
- 'gbp-intelephense-highlighter.c',
- 'gbp-intelephense-hover-provider.c',
- 'gbp-intelephense-rename-provider.c',
- 'gbp-intelephense-symbol-resolver.c',
- 'gbp-intelephense-service.c',
-])
-
plugin_intelephense_resources = gnome.compile_resources(
'intelephense-resources',
'intelephense.gresource.xml',
diff --git a/src/plugins/intelephense/settings.json b/src/plugins/intelephense/settings.json
new file mode 100644
index 000000000..49f327a7f
--- /dev/null
+++ b/src/plugins/intelephense/settings.json
@@ -0,0 +1,17 @@
+{
+ "intelephense" : {
+ "files" : {
+ "associations" : ["*.php", "*.phtml"],
+ "exclude" : []
+ },
+ "completion" : {
+ "insertUseDeclaration" : true,
+ "fullyQualifyGlobalConstantsAndFunctions" : false,
+ "triggerParameterHints" : true,
+ "maxItems" : 100
+ },
+ "format" : {
+ "enable" : true
+ }
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]