[gnome-builder/wip/gtk4-port] plugins/jedi-language-server: cleanup bits



commit c2e5651b41f6026a620640903c7a5f8a7b06a1d8
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 24 16:12:07 2022 -0700

    plugins/jedi-language-server: cleanup bits
    
    We use the macros elsewhere, so add here too. Also, python3 isn't a
    language name in LSP, so we can drop that and just use "python".

 src/plugins/jedi-language-server/gbp-jedi-service.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/jedi-language-server/gbp-jedi-service.c 
b/src/plugins/jedi-language-server/gbp-jedi-service.c
index 9feae8fe0..fe109bf24 100644
--- a/src/plugins/jedi-language-server/gbp-jedi-service.c
+++ b/src/plugins/jedi-language-server/gbp-jedi-service.c
@@ -39,11 +39,12 @@ gbp_jedi_service_configure_client (IdeLspService *service,
 {
   g_autoptr(GVariant) params = NULL;
 
+  IDE_ENTRY;
+
   g_assert (GBP_IS_JEDI_SERVICE (service));
   g_assert (IDE_IS_LSP_CLIENT (client));
 
   ide_lsp_client_add_language (client, "python");
-  ide_lsp_client_add_language (client, "python3");
 
   params = JSONRPC_MESSAGE_NEW (
     "autoImportModules", "[",
@@ -52,6 +53,8 @@ gbp_jedi_service_configure_client (IdeLspService *service,
   );
 
   ide_lsp_client_set_initialization_options (client, params);
+
+  IDE_EXIT;
 }
 
 static void


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