[gnome-builder] langserv-client: use textDocument/didSave



commit 7c3b9fc2a22f46bcd1c6b48e5422be9335bd1f8d
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 24 00:42:04 2016 -0700

    langserv-client: use textDocument/didSave
    
    This is more appropriate than using the didChangeWatchedFiles notification.

 libide/langserv/ide-langserv-client.c |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/libide/langserv/ide-langserv-client.c b/libide/langserv/ide-langserv-client.c
index dfea0c3..b1a11a1 100644
--- a/libide/langserv/ide-langserv-client.c
+++ b/libide/langserv/ide-langserv-client.c
@@ -111,16 +111,12 @@ ide_langserv_client_buffer_saved (IdeLangservClient *self,
   uri = ide_buffer_get_uri (buffer);
 
   params = JCON_NEW (
-    "changes", "[",
-      "{",
-        "uri", JCON_STRING (uri),
-        "type", JCON_INT (FILE_CHANGE_TYPE_CHANGED),
-      "}",
-    "]"
+    "textDocument", "{",
+      "uri", JCON_STRING (uri),
+    "}"
   );
 
-  ide_langserv_client_notification_async (self,
-                                          "workspace/didChangeWatchedFiles",
+  ide_langserv_client_notification_async (self, "textDocument/didSave",
                                           g_steal_pointer (&params),
                                           NULL, NULL, NULL);
 


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