[gnome-builder] lsp: cleanup function name



commit 4a78b954712d16429b44f7af3da2b1cad8cd17a4
Author: Christian Hergert <chergert redhat com>
Date:   Thu Aug 19 15:06:26 2021 -0700

    lsp: cleanup function name
    
    So it is not missleading where it came from.

 src/libide/lsp/ide-lsp-completion-provider.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/libide/lsp/ide-lsp-completion-provider.c b/src/libide/lsp/ide-lsp-completion-provider.c
index 2b92a3818..bd4cf01d6 100644
--- a/src/libide/lsp/ide-lsp-completion-provider.c
+++ b/src/libide/lsp/ide-lsp-completion-provider.c
@@ -386,20 +386,23 @@ ide_lsp_completion_provider_display_proposal (IdeCompletionProvider   *provider,
 }
 
 static void
-ide_lsp_client_apply_additional_edits_cb (GObject      *object,
-                                          GAsyncResult *result,
-                                          gpointer      user_data)
+ide_lsp_completion_provider_apply_additional_edits_cb (GObject      *object,
+                                                       GAsyncResult *result,
+                                                       gpointer      user_data)
 {
   IdeBufferManager *bufmgr = (IdeBufferManager *)object;
   g_autoptr(GError) error = NULL;
 
+  IDE_ENTRY;
+
   g_assert (IDE_IS_BUFFER_MANAGER (bufmgr));
   g_assert (G_IS_ASYNC_RESULT (result));
 
   if (!ide_buffer_manager_apply_edits_finish (bufmgr, result, &error))
-    {
-      g_warning ("Failed to apply additional text edits for completion: %s", error->message);
-    }
+    g_warning ("Failed to apply additional text edits for completion: %s",
+               error->message);
+
+  IDE_EXIT;
 }
 
 static void
@@ -449,7 +452,7 @@ ide_lsp_completion_provider_activate_proposal (IdeCompletionProvider *provider,
       ide_buffer_manager_apply_edits_async (buffer_manager,
                                             IDE_PTR_ARRAY_STEAL_FULL (&additional_text_edits),
                                             NULL,
-                                            ide_lsp_client_apply_additional_edits_cb,
+                                            ide_lsp_completion_provider_apply_additional_edits_cb,
                                             NULL);
     }
 }


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