[gnome-builder/wip/gtk4-port] plugins/ts-language-server: port to GTK 4



commit 4f0d1576d08032865d7290905f51b9d0744c2df9
Author: Christian Hergert <chergert redhat com>
Date:   Mon Apr 11 17:40:16 2022 -0700

    plugins/ts-language-server: port to GTK 4

 src/plugins/meson.build                                 |  2 +-
 .../ts-language-server/ts_language_server_plugin.py     | 17 ++++++++---------
 2 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/src/plugins/meson.build b/src/plugins/meson.build
index 3ef5b2fc2..1472eb417 100644
--- a/src/plugins/meson.build
+++ b/src/plugins/meson.build
@@ -130,7 +130,7 @@ subdir('stylelint')
 subdir('terminal')
 #subdir('testui')
 subdir('todo')
-#subdir('ts-language-server')
+subdir('ts-language-server')
 subdir('trim-spaces')
 subdir('update-manager')
 #subdir('vagrant')
diff --git a/src/plugins/ts-language-server/ts_language_server_plugin.py 
b/src/plugins/ts-language-server/ts_language_server_plugin.py
index 567421684..c7bd50f24 100644
--- a/src/plugins/ts-language-server/ts_language_server_plugin.py
+++ b/src/plugins/ts-language-server/ts_language_server_plugin.py
@@ -39,12 +39,11 @@ class TypescriptService(Ide.LspService):
         client.add_language('javascript')
         client.add_language('typescript')
 
-
-class TypescriptDiagnosticProvider(Ide.LspDiagnosticProvider, Ide.DiagnosticProvider):
+class TypescriptDiagnosticProvider(Ide.LspDiagnosticProvider):
     def do_load(self):
         TypescriptService.bind_client(self)
 
-class TypescriptCompletionProvider(Ide.LspCompletionProvider, Ide.CompletionProvider):
+class TypescriptCompletionProvider(Ide.LspCompletionProvider):
     def do_load(self, context):
         TypescriptService.bind_client(self)
 
@@ -53,29 +52,29 @@ class TypescriptCompletionProvider(Ide.LspCompletionProvider, Ide.CompletionProv
         # want the results. So use high priority (negative is better).
         return -1000
 
-class TypescriptSymbolResolver(Ide.LspSymbolResolver, Ide.SymbolResolver):
+class TypescriptSymbolResolver(Ide.LspSymbolResolver):
     def do_load(self):
         TypescriptService.bind_client(self)
 
-class TypescriptHighlighter(Ide.LspHighlighter, Ide.Highlighter):
+class TypescriptHighlighter(Ide.LspHighlighter):
     def do_load(self):
         TypescriptService.bind_client(self)
 
-class TypescriptFormatter(Ide.LspFormatter, Ide.Formatter):
+class TypescriptFormatter(Ide.LspFormatter):
     def do_load(self):
         TypescriptService.bind_client(self)
 
-class TypescriptHoverProvider(Ide.LspHoverProvider, Ide.HoverProvider):
+class TypescriptHoverProvider(Ide.LspHoverProvider):
     def do_prepare(self):
         self.props.category = 'Typescript'
         self.props.priority = 200
         TypescriptService.bind_client(self)
 
-class TypescriptRenameProvider(Ide.LspRenameProvider, Ide.RenameProvider):
+class TypescriptRenameProvider(Ide.LspRenameProvider):
     def do_load(self):
         TypescriptService.bind_client(self)
 
-class TypescriptCodeActionProvider(Ide.LspCodeActionProvider, Ide.CodeActionProvider):
+class TypescriptCodeActionProvider(Ide.LspCodeActionProvider):
     def do_load(self):
         TypescriptService.bind_client(self)
 


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