[gnome-builder/wip/gtk4-port] plugins/gopls: port gopls plugin to C



commit 83b3feae4bdb0c7617e760ca4aa0d2f7d3e71875
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 24 14:35:19 2022 -0700

    plugins/gopls: port gopls plugin to C
    
    Another language server moved over to C, as part of #1670

 src/plugins/gopls/gbp-gopls-code-action-provider.c |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-code-action-provider.h |  31 ++++++
 src/plugins/gopls/gbp-gopls-completion-provider.c  |  75 +++++++++++++
 src/plugins/gopls/gbp-gopls-completion-provider.h  |  31 ++++++
 src/plugins/gopls/gbp-gopls-diagnostic-provider.c  |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-diagnostic-provider.h  |  31 ++++++
 src/plugins/gopls/gbp-gopls-formatter.c            |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-formatter.h            |  31 ++++++
 src/plugins/gopls/gbp-gopls-highlighter.c          |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-highlighter.h          |  31 ++++++
 src/plugins/gopls/gbp-gopls-hover-provider.c       |  66 ++++++++++++
 src/plugins/gopls/gbp-gopls-hover-provider.h       |  31 ++++++
 src/plugins/gopls/gbp-gopls-rename-provider.c      |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-rename-provider.h      |  31 ++++++
 src/plugins/gopls/gbp-gopls-service.c              | 117 +++++++++++++++++++++
 src/plugins/gopls/gbp-gopls-service.h              |  31 ++++++
 src/plugins/gopls/gbp-gopls-symbol-resolver.c      |  65 ++++++++++++
 src/plugins/gopls/gbp-gopls-symbol-resolver.h      |  31 ++++++
 src/plugins/gopls/go-langserv.plugin               |  12 ---
 src/plugins/gopls/go_langserver_plugin.py          |  50 ---------
 src/plugins/gopls/gopls-plugin.c                   |  68 ++++++++++++
 src/plugins/gopls/gopls.gresource.xml              |   6 ++
 src/plugins/gopls/gopls.plugin                     |  16 +++
 src/plugins/gopls/meson.build                      |  27 +++--
 24 files changed, 1036 insertions(+), 70 deletions(-)
---
diff --git a/src/plugins/gopls/gbp-gopls-code-action-provider.c 
b/src/plugins/gopls/gbp-gopls-code-action-provider.c
new file mode 100644
index 000000000..6af35036e
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-code-action-provider.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-code-action-provider.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-code-action-provider"
+
+#include "config.h"
+
+#include "gbp-gopls-code-action-provider.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsCodeActionProvider
+{
+  IdeLspCodeActionProvider parent_instance;
+};
+
+static void
+gbp_gopls_code_action_provider_load (IdeCodeActionProvider *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_CODE_ACTION_PROVIDER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+code_action_provider_iface_init (IdeCodeActionProviderInterface *iface)
+{
+  iface->load = gbp_gopls_code_action_provider_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsCodeActionProvider, gbp_gopls_code_action_provider, 
IDE_TYPE_LSP_CODE_ACTION_PROVIDER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_CODE_ACTION_PROVIDER, 
code_action_provider_iface_init))
+
+static void
+gbp_gopls_code_action_provider_class_init (GbpGoplsCodeActionProviderClass *klass)
+{
+}
+
+static void
+gbp_gopls_code_action_provider_init (GbpGoplsCodeActionProvider *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-code-action-provider.h 
b/src/plugins/gopls/gbp-gopls-code-action-provider.h
new file mode 100644
index 000000000..06ef40ffc
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-code-action-provider.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-code-action-provider.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_CODE_ACTION_PROVIDER (gbp_gopls_code_action_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsCodeActionProvider, gbp_gopls_code_action_provider, GBP, 
GOPLS_CODE_ACTION_PROVIDER, IdeLspCodeActionProvider)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-completion-provider.c 
b/src/plugins/gopls/gbp-gopls-completion-provider.c
new file mode 100644
index 000000000..40659d788
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-completion-provider.c
@@ -0,0 +1,75 @@
+/* gbp-gopls-completion-provider.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-completion-provider"
+
+#include "config.h"
+
+#include "gbp-gopls-completion-provider.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsCompletionProvider
+{
+  IdeLspCompletionProvider parent_instance;
+};
+
+static void
+gbp_gopls_completion_provider_load (IdeLspCompletionProvider *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_COMPLETION_PROVIDER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static int
+gbp_gopls_completion_provider_get_priority (GtkSourceCompletionProvider *provider,
+                                           GtkSourceCompletionContext  *context)
+{
+  return -1000;
+}
+
+static void
+completion_provider_iface_init (GtkSourceCompletionProviderInterface *iface)
+{
+  iface->get_priority = gbp_gopls_completion_provider_get_priority;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsCompletionProvider, gbp_gopls_completion_provider, 
IDE_TYPE_LSP_COMPLETION_PROVIDER,
+                               G_IMPLEMENT_INTERFACE (GTK_SOURCE_TYPE_COMPLETION_PROVIDER, 
completion_provider_iface_init))
+
+static void
+gbp_gopls_completion_provider_class_init (GbpGoplsCompletionProviderClass *klass)
+{
+  IdeLspCompletionProviderClass *lsp_completion_provider_class = IDE_LSP_COMPLETION_PROVIDER_CLASS (klass);
+
+  lsp_completion_provider_class->load = gbp_gopls_completion_provider_load;
+}
+
+static void
+gbp_gopls_completion_provider_init (GbpGoplsCompletionProvider *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-completion-provider.h 
b/src/plugins/gopls/gbp-gopls-completion-provider.h
new file mode 100644
index 000000000..268ae8b05
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-completion-provider.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-completion-provider.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_COMPLETION_PROVIDER (gbp_gopls_completion_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsCompletionProvider, gbp_gopls_completion_provider, GBP, 
GOPLS_COMPLETION_PROVIDER, IdeLspCompletionProvider)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-diagnostic-provider.c 
b/src/plugins/gopls/gbp-gopls-diagnostic-provider.c
new file mode 100644
index 000000000..38b27d199
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-diagnostic-provider.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-diagnostic-provider.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-diagnostic-provider"
+
+#include "config.h"
+
+#include "gbp-gopls-diagnostic-provider.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsDiagnosticProvider
+{
+  IdeLspDiagnosticProvider parent_instance;
+};
+
+static void
+gbp_gopls_diagnostic_provider_load (IdeDiagnosticProvider *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_DIAGNOSTIC_PROVIDER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+diagnostic_provider_iface_init (IdeDiagnosticProviderInterface *iface)
+{
+  iface->load = gbp_gopls_diagnostic_provider_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsDiagnosticProvider, gbp_gopls_diagnostic_provider, 
IDE_TYPE_LSP_DIAGNOSTIC_PROVIDER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_DIAGNOSTIC_PROVIDER, 
diagnostic_provider_iface_init))
+
+static void
+gbp_gopls_diagnostic_provider_class_init (GbpGoplsDiagnosticProviderClass *klass)
+{
+}
+
+static void
+gbp_gopls_diagnostic_provider_init (GbpGoplsDiagnosticProvider *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-diagnostic-provider.h 
b/src/plugins/gopls/gbp-gopls-diagnostic-provider.h
new file mode 100644
index 000000000..f8356a2a1
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-diagnostic-provider.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-diagnostic-provider.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_DIAGNOSTIC_PROVIDER (gbp_gopls_diagnostic_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsDiagnosticProvider, gbp_gopls_diagnostic_provider, GBP, 
GOPLS_DIAGNOSTIC_PROVIDER, IdeLspDiagnosticProvider)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-formatter.c b/src/plugins/gopls/gbp-gopls-formatter.c
new file mode 100644
index 000000000..97a0f963c
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-formatter.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-formatter.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-formatter"
+
+#include "config.h"
+
+#include "gbp-gopls-formatter.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsFormatter
+{
+  IdeLspFormatter parent_instance;
+};
+
+static void
+gbp_gopls_formatter_load (IdeFormatter *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_FORMATTER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+formatter_iface_init (IdeFormatterInterface *iface)
+{
+  iface->load = gbp_gopls_formatter_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsFormatter, gbp_gopls_formatter, IDE_TYPE_LSP_FORMATTER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_FORMATTER, formatter_iface_init))
+
+static void
+gbp_gopls_formatter_class_init (GbpGoplsFormatterClass *klass)
+{
+}
+
+static void
+gbp_gopls_formatter_init (GbpGoplsFormatter *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-formatter.h b/src/plugins/gopls/gbp-gopls-formatter.h
new file mode 100644
index 000000000..05398476e
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-formatter.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-formatter.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_FORMATTER (gbp_gopls_formatter_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsFormatter, gbp_gopls_formatter, GBP, GOPLS_FORMATTER, IdeLspFormatter)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-highlighter.c b/src/plugins/gopls/gbp-gopls-highlighter.c
new file mode 100644
index 000000000..636be6f8a
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-highlighter.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-highlighter.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-highlighter"
+
+#include "config.h"
+
+#include "gbp-gopls-highlighter.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsHighlighter
+{
+  IdeLspHighlighter parent_instance;
+};
+
+static void
+gbp_gopls_highlighter_load (IdeHighlighter *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_HIGHLIGHTER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+highlighter_iface_init (IdeHighlighterInterface *iface)
+{
+  iface->load = gbp_gopls_highlighter_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsHighlighter, gbp_gopls_highlighter, IDE_TYPE_LSP_HIGHLIGHTER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_HIGHLIGHTER, highlighter_iface_init))
+
+static void
+gbp_gopls_highlighter_class_init (GbpGoplsHighlighterClass *klass)
+{
+}
+
+static void
+gbp_gopls_highlighter_init (GbpGoplsHighlighter *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-highlighter.h b/src/plugins/gopls/gbp-gopls-highlighter.h
new file mode 100644
index 000000000..dee27f03b
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-highlighter.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-highlighter.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_HIGHLIGHTER (gbp_gopls_highlighter_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsHighlighter, gbp_gopls_highlighter, GBP, GOPLS_HIGHLIGHTER, IdeLspHighlighter)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-hover-provider.c b/src/plugins/gopls/gbp-gopls-hover-provider.c
new file mode 100644
index 000000000..5b7d2aac4
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-hover-provider.c
@@ -0,0 +1,66 @@
+/* gbp-gopls-hover-provider.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-hover-provider"
+
+#include "config.h"
+
+#include "gbp-gopls-hover-provider.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsHoverProvider
+{
+  IdeLspHoverProvider parent_instance;
+};
+
+static void
+gbp_gopls_hover_provider_prepare (IdeLspHoverProvider *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_HOVER_PROVIDER (provider));
+
+  g_object_set (provider,
+                "category", "Go",
+                "priority", 100,
+                NULL);
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+G_DEFINE_FINAL_TYPE (GbpGoplsHoverProvider, gbp_gopls_hover_provider, IDE_TYPE_LSP_HOVER_PROVIDER)
+
+static void
+gbp_gopls_hover_provider_class_init (GbpGoplsHoverProviderClass *klass)
+{
+  IdeLspHoverProviderClass *lsp_hover_provider_class = IDE_LSP_HOVER_PROVIDER_CLASS (klass);
+
+  lsp_hover_provider_class->prepare = gbp_gopls_hover_provider_prepare;
+}
+
+static void
+gbp_gopls_hover_provider_init (GbpGoplsHoverProvider *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-hover-provider.h b/src/plugins/gopls/gbp-gopls-hover-provider.h
new file mode 100644
index 000000000..30abd7bac
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-hover-provider.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-hover-provider.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_HOVER_PROVIDER (gbp_gopls_hover_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsHoverProvider, gbp_gopls_hover_provider, GBP, GOPLS_HOVER_PROVIDER, 
IdeLspHoverProvider)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-rename-provider.c b/src/plugins/gopls/gbp-gopls-rename-provider.c
new file mode 100644
index 000000000..37a8c5860
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-rename-provider.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-rename-provider.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-rename-provider"
+
+#include "config.h"
+
+#include "gbp-gopls-rename-provider.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsRenameProvider
+{
+  IdeLspRenameProvider parent_instance;
+};
+
+static void
+gbp_gopls_rename_provider_load (IdeRenameProvider *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_RENAME_PROVIDER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+rename_provider_iface_init (IdeRenameProviderInterface *iface)
+{
+  iface->load = gbp_gopls_rename_provider_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsRenameProvider, gbp_gopls_rename_provider, 
IDE_TYPE_LSP_RENAME_PROVIDER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_RENAME_PROVIDER, rename_provider_iface_init))
+
+static void
+gbp_gopls_rename_provider_class_init (GbpGoplsRenameProviderClass *klass)
+{
+}
+
+static void
+gbp_gopls_rename_provider_init (GbpGoplsRenameProvider *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-rename-provider.h b/src/plugins/gopls/gbp-gopls-rename-provider.h
new file mode 100644
index 000000000..a86dc3537
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-rename-provider.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-rename-provider.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_RENAME_PROVIDER (gbp_gopls_rename_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsRenameProvider, gbp_gopls_rename_provider, GBP, GOPLS_RENAME_PROVIDER, 
IdeLspRenameProvider)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-service.c b/src/plugins/gopls/gbp-gopls-service.c
new file mode 100644
index 000000000..8e8095507
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-service.c
@@ -0,0 +1,117 @@
+/* gbp-gopls-service.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-service"
+
+#include "config.h"
+
+#include <jsonrpc-glib.h>
+
+#include <libide-io.h>
+#include <libide-threading.h>
+
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsService
+{
+  IdeLspService parent_instance;
+};
+
+G_DEFINE_FINAL_TYPE (GbpGoplsService, gbp_gopls_service, IDE_TYPE_LSP_SERVICE)
+
+static void
+gbp_gopls_service_configure_client (IdeLspService *service,
+                                    IdeLspClient  *client)
+{
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_SERVICE (service));
+  g_assert (IDE_IS_LSP_CLIENT (client));
+
+  ide_lsp_client_add_language (client, "go");
+
+  IDE_EXIT;
+}
+
+static void
+gbp_gopls_service_configure_launcher (IdeLspService         *service,
+                                      IdePipeline           *pipeline,
+                                      IdeSubprocessLauncher *launcher)
+{
+  const char *user_shell;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_SERVICE (service));
+  g_assert (IDE_IS_PIPELINE (pipeline));
+  g_assert (IDE_IS_SUBPROCESS_LAUNCHER (launcher));
+
+  /* First add our necessary "serve" argument */
+  ide_subprocess_launcher_push_argv (launcher, "serve");
+
+  /* Bash will load the host $PATH and $GOPATH (and optionally $GOROOT)
+   * for us.  This does mean there will be a possible .bashrc vs
+   * .bash_profile discrepancy. Possibly there is a better native way to
+   * make sure that builder running in flatpak can run processes in the
+   * host context with the host's $PATH.
+   */
+
+  /* Now we need to convert the arguments into something we can pass to
+   * $SHELL --login -c if the shell supports that.
+   */
+  if ((user_shell = ide_get_user_shell ()) &&
+      ide_shell_supports_dash_c (user_shell) &&
+      ide_shell_supports_dash_login (user_shell))
+    {
+      const char * const *argv = ide_subprocess_launcher_get_argv (launcher);
+      g_autoptr(GPtrArray) ar = g_ptr_array_new_with_free_func (g_free);
+      g_autofree char *quoted = NULL;
+
+      for (guint i = 0; argv[i]; i++)
+        g_ptr_array_add (ar, g_shell_quote (argv[i]));
+      g_ptr_array_add (ar, NULL);
+
+      quoted = g_strjoinv (" ", (char **)(gpointer)ar->pdata);
+      ide_subprocess_launcher_set_argv (launcher,
+                                        IDE_STRV_INIT (user_shell, "--login", "-c", quoted));
+    }
+
+  IDE_EXIT;
+}
+
+static void
+gbp_gopls_service_class_init (GbpGoplsServiceClass *klass)
+{
+  IdeLspServiceClass *lsp_service_class = IDE_LSP_SERVICE_CLASS (klass);
+
+  lsp_service_class->configure_client = gbp_gopls_service_configure_client;
+  lsp_service_class->configure_launcher = gbp_gopls_service_configure_launcher;
+}
+
+static void
+gbp_gopls_service_init (GbpGoplsService *self)
+{
+  g_autofree char *go_bin_dir = NULL;
+
+  go_bin_dir = g_build_filename (g_get_home_dir (), "go", "bin", NULL);
+
+  ide_lsp_service_set_program (IDE_LSP_SERVICE (self), "gopls");
+  ide_lsp_service_set_search_path (IDE_LSP_SERVICE (self), IDE_STRV_INIT (go_bin_dir));
+}
diff --git a/src/plugins/gopls/gbp-gopls-service.h b/src/plugins/gopls/gbp-gopls-service.h
new file mode 100644
index 000000000..1614f9749
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-service.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-service.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_SERVICE (gbp_gopls_service_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsService, gbp_gopls_service, GBP, GOPLS_SERVICE, IdeLspService)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gbp-gopls-symbol-resolver.c b/src/plugins/gopls/gbp-gopls-symbol-resolver.c
new file mode 100644
index 000000000..a783fa193
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-symbol-resolver.c
@@ -0,0 +1,65 @@
+/* gbp-gopls-symbol-resolver.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gbp-gopls-symbol-resolver"
+
+#include "config.h"
+
+#include "gbp-gopls-symbol-resolver.h"
+#include "gbp-gopls-service.h"
+
+struct _GbpGoplsSymbolResolver
+{
+  IdeLspSymbolResolver parent_instance;
+};
+
+static void
+gbp_gopls_symbol_provider_load (IdeSymbolResolver *provider)
+{
+  g_autoptr(IdeLspServiceClass) klass = NULL;
+
+  IDE_ENTRY;
+
+  g_assert (GBP_IS_GOPLS_SYMBOL_RESOLVER (provider));
+
+  klass = g_type_class_ref (GBP_TYPE_GOPLS_SERVICE);
+  ide_lsp_service_class_bind_client (klass, IDE_OBJECT (provider));
+
+  IDE_EXIT;
+}
+
+static void
+symbol_provider_iface_init (IdeSymbolResolverInterface *iface)
+{
+  iface->load = gbp_gopls_symbol_provider_load;
+}
+
+G_DEFINE_FINAL_TYPE_WITH_CODE (GbpGoplsSymbolResolver, gbp_gopls_symbol_provider, 
IDE_TYPE_LSP_SYMBOL_RESOLVER,
+                               G_IMPLEMENT_INTERFACE (IDE_TYPE_SYMBOL_RESOLVER, symbol_provider_iface_init))
+
+static void
+gbp_gopls_symbol_provider_class_init (GbpGoplsSymbolResolverClass *klass)
+{
+}
+
+static void
+gbp_gopls_symbol_provider_init (GbpGoplsSymbolResolver *self)
+{
+}
diff --git a/src/plugins/gopls/gbp-gopls-symbol-resolver.h b/src/plugins/gopls/gbp-gopls-symbol-resolver.h
new file mode 100644
index 000000000..24f984f1a
--- /dev/null
+++ b/src/plugins/gopls/gbp-gopls-symbol-resolver.h
@@ -0,0 +1,31 @@
+/* gbp-gopls-symbol-resolver.h
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#pragma once
+
+#include <libide-lsp.h>
+
+G_BEGIN_DECLS
+
+#define GBP_TYPE_GOPLS_SYMBOL_RESOLVER (gbp_gopls_symbol_provider_get_type())
+
+G_DECLARE_FINAL_TYPE (GbpGoplsSymbolResolver, gbp_gopls_symbol_provider, GBP, GOPLS_SYMBOL_RESOLVER, 
IdeLspSymbolResolver)
+
+G_END_DECLS
diff --git a/src/plugins/gopls/gopls-plugin.c b/src/plugins/gopls/gopls-plugin.c
new file mode 100644
index 000000000..9d1023efe
--- /dev/null
+++ b/src/plugins/gopls/gopls-plugin.c
@@ -0,0 +1,68 @@
+/* gopls-plugin.c
+ *
+ * Copyright 2022 Christian Hergert <chergert redhat com>
+ *
+ * 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
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ *
+ * SPDX-License-Identifier: GPL-3.0-or-later
+ */
+
+#define G_LOG_DOMAIN "gopls-plugin"
+
+#include "config.h"
+
+#include <libpeas/peas.h>
+
+#include <libide-code.h>
+#include <libide-foundry.h>
+#include <libide-lsp.h>
+
+#include "gbp-gopls-service.h"
+#include "gbp-gopls-completion-provider.h"
+#include "gbp-gopls-diagnostic-provider.h"
+#include "gbp-gopls-symbol-resolver.h"
+#include "gbp-gopls-highlighter.h"
+#include "gbp-gopls-formatter.h"
+#include "gbp-gopls-rename-provider.h"
+#include "gbp-gopls-hover-provider.h"
+#include "gbp-gopls-code-action-provider.h"
+
+_IDE_EXTERN void
+_gbp_gopls_register_types (PeasObjectModule *module)
+{
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_DIAGNOSTIC_PROVIDER,
+                                              GBP_TYPE_GOPLS_DIAGNOSTIC_PROVIDER);
+  peas_object_module_register_extension_type (module,
+                                              GTK_SOURCE_TYPE_COMPLETION_PROVIDER,
+                                              GBP_TYPE_GOPLS_COMPLETION_PROVIDER);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_SYMBOL_RESOLVER,
+                                              GBP_TYPE_GOPLS_SYMBOL_RESOLVER);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_HIGHLIGHTER,
+                                              GBP_TYPE_GOPLS_HIGHLIGHTER);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_FORMATTER,
+                                              GBP_TYPE_GOPLS_FORMATTER);
+  peas_object_module_register_extension_type (module,
+                                              GTK_SOURCE_TYPE_HOVER_PROVIDER,
+                                              GBP_TYPE_GOPLS_HOVER_PROVIDER);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_RENAME_PROVIDER,
+                                              GBP_TYPE_GOPLS_RENAME_PROVIDER);
+  peas_object_module_register_extension_type (module,
+                                              IDE_TYPE_CODE_ACTION_PROVIDER,
+                                              GBP_TYPE_GOPLS_CODE_ACTION_PROVIDER);
+}
diff --git a/src/plugins/gopls/gopls.gresource.xml b/src/plugins/gopls/gopls.gresource.xml
new file mode 100644
index 000000000..f7d047b9c
--- /dev/null
+++ b/src/plugins/gopls/gopls.gresource.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+  <gresource prefix="/plugins/gopls">
+    <file>gopls.plugin</file>
+  </gresource>
+</gresources>
diff --git a/src/plugins/gopls/gopls.plugin b/src/plugins/gopls/gopls.plugin
new file mode 100644
index 000000000..79a4635c8
--- /dev/null
+++ b/src/plugins/gopls/gopls.plugin
@@ -0,0 +1,16 @@
+[Plugin]
+Builtin=true
+Copyright=Copyright © 2018 Henry Finucane, Copyright © 2022 Christian Hergert
+Description=Language server integration for the Go programming language using gopls
+Embedded=_gbp_gopls_register_types
+Module=gopls
+Name=Go Language Server
+X-Category=lsps
+X-Completion-Provider-Languages=go
+X-Symbol-Resolver-Languages=go
+X-Diagnostic-Provider-Languages=go
+X-Highlighter-Languages=go
+X-Hover-Provider-Languages=go
+X-Rename-Provider-Languages=go
+X-Formatter-Languages=go
+X-Code-Action-Languages=go
diff --git a/src/plugins/gopls/meson.build b/src/plugins/gopls/meson.build
index dcb84f969..296e99a51 100644
--- a/src/plugins/gopls/meson.build
+++ b/src/plugins/gopls/meson.build
@@ -1,13 +1,24 @@
 if get_option('plugin_gopls')
 
-install_data('go_langserver_plugin.py', install_dir: plugindir)
-
-configure_file(
-          input: 'go-langserv.plugin',
-         output: 'go-langserv.plugin',
-  configuration: config_h,
-        install: true,
-    install_dir: plugindir,
+plugins_sources += files([
+  'gopls-plugin.c',
+  'gbp-gopls-code-action-provider.c',
+  'gbp-gopls-completion-provider.c',
+  'gbp-gopls-diagnostic-provider.c',
+  'gbp-gopls-formatter.c',
+  'gbp-gopls-highlighter.c',
+  'gbp-gopls-hover-provider.c',
+  'gbp-gopls-rename-provider.c',
+  'gbp-gopls-symbol-resolver.c',
+  'gbp-gopls-service.c',
+])
+
+plugin_gopls_resources = gnome.compile_resources(
+  'gopls-resources',
+  'gopls.gresource.xml',
+  c_name: 'gbp_gopls',
 )
 
+plugins_sources += plugin_gopls_resources
+
 endif


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