[gnome-builder] vls: Enable codeaction support
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vls: Enable codeaction support
- Date: Sun, 10 Apr 2022 21:18:39 +0000 (UTC)
commit 382f1bb9521ec5e9e0186048e3993ba1535f4be1
Author: JCWasmx86 <JCWasmx86 t-online de>
Date: Sat Apr 9 09:02:43 2022 +0200
vls: Enable codeaction support
src/plugins/vls/vala_langserv.plugin | 1 +
src/plugins/vls/vala_langserv.py | 4 ++++
2 files changed, 5 insertions(+)
---
diff --git a/src/plugins/vls/vala_langserv.plugin b/src/plugins/vls/vala_langserv.plugin
index 0c0ce6154..7b5945960 100644
--- a/src/plugins/vls/vala_langserv.plugin
+++ b/src/plugins/vls/vala_langserv.plugin
@@ -6,6 +6,7 @@ Copyright=Copyright © 2020
Loader=python3
Module=vala_langserv
+X-Code-Action-Languages=vala
X-Completion-Provider-Languages=vala
X-Diagnostic-Provider-Languages=vala
X-Diagnostic-Provider-Languages-Priority=100
diff --git a/src/plugins/vls/vala_langserv.py b/src/plugins/vls/vala_langserv.py
index 73237c1ca..2602c1e4a 100644
--- a/src/plugins/vls/vala_langserv.py
+++ b/src/plugins/vls/vala_langserv.py
@@ -89,3 +89,7 @@ class VlsSearchProvider(Ide.LspSearchProvider):
return
VlsService.bind_client_lazy(self)
+
+class VlsCodeActionProvider(Ide.LspCodeActionProvider, Ide.CodeActionProvider):
+ def do_load(self):
+ VlsService.bind_client(self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]