[gnome-builder] tests: give more data to initialize call
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tests: give more data to initialize call
- Date: Fri, 20 Apr 2018 23:22:31 +0000 (UTC)
commit 38a8b139c88063999da5ec07f8ca3135481a70fc
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 20 16:21:33 2018 -0700
tests: give more data to initialize call
src/plugins/clang/test-daemon.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/clang/test-daemon.c b/src/plugins/clang/test-daemon.c
index 5285e2687..e6cb68cec 100644
--- a/src/plugins/clang/test-daemon.c
+++ b/src/plugins/clang/test-daemon.c
@@ -128,10 +128,17 @@ test_initialize (JsonrpcClient *client,
{
g_autoptr(GVariant) params = NULL;
g_autofree gchar *root = NULL;
+ g_autofree gchar *uri = NULL;
root = g_path_get_dirname (path);
+ uri = g_strdup_printf ("file://%s", root);
- params = JSONRPC_MESSAGE_NEW ("rootUri", JSONRPC_MESSAGE_PUT_STRING (root));
+ params = JSONRPC_MESSAGE_NEW (
+ "rootUri", JSONRPC_MESSAGE_PUT_STRING (uri),
+ "rootPath", JSONRPC_MESSAGE_PUT_STRING (root),
+ "processId", JSONRPC_MESSAGE_PUT_INT64 (getpid ()),
+ "capabilities", "{", "}"
+ );
jsonrpc_client_call_async (client,
"initialize",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]