[gnome-builder] lsp: Fix format of params of 'initialize' method
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] lsp: Fix format of params of 'initialize' method
- Date: Sun, 6 Sep 2020 20:18:51 +0000 (UTC)
commit 53b953bef3c9b807ce5ee180d3ea22638e39f2b7
Author: Ondřej Míchal <harrymichal seznam cz>
Date: Sun Sep 6 17:52:33 2020 +0200
lsp: Fix format of params of 'initialize' method
The format of params of the 'initialize' method diverged from the lsp
specification[0].
[0]
https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#workspaceclientcapabilities-define-capabilities-the-editor--tool-provides-on-the-workspace
src/libide/lsp/ide-lsp-client.c | 58 +++++++++++++++++++++--------------------
1 file changed, 30 insertions(+), 28 deletions(-)
---
diff --git a/src/libide/lsp/ide-lsp-client.c b/src/libide/lsp/ide-lsp-client.c
index 29ba657fc..0af69fa03 100644
--- a/src/libide/lsp/ide-lsp-client.c
+++ b/src/libide/lsp/ide-lsp-client.c
@@ -1450,34 +1450,36 @@ ide_lsp_client_start (IdeLspClient *self)
"applyEdit", JSONRPC_MESSAGE_PUT_BOOLEAN (TRUE),
"configuration", JSONRPC_MESSAGE_PUT_BOOLEAN (TRUE),
"symbol", "{",
- "SymbolKind", "[",
- JSONRPC_MESSAGE_PUT_INT64 (1), /* File */
- JSONRPC_MESSAGE_PUT_INT64 (2), /* Module */
- JSONRPC_MESSAGE_PUT_INT64 (3), /* Namespace */
- JSONRPC_MESSAGE_PUT_INT64 (4), /* Package */
- JSONRPC_MESSAGE_PUT_INT64 (5), /* Class */
- JSONRPC_MESSAGE_PUT_INT64 (6), /* Method */
- JSONRPC_MESSAGE_PUT_INT64 (7), /* Property */
- JSONRPC_MESSAGE_PUT_INT64 (8), /* Field */
- JSONRPC_MESSAGE_PUT_INT64 (9), /* Constructor */
- JSONRPC_MESSAGE_PUT_INT64 (10), /* Enum */
- JSONRPC_MESSAGE_PUT_INT64 (11), /* Interface */
- JSONRPC_MESSAGE_PUT_INT64 (12), /* Function */
- JSONRPC_MESSAGE_PUT_INT64 (13), /* Variable */
- JSONRPC_MESSAGE_PUT_INT64 (14), /* Constant */
- JSONRPC_MESSAGE_PUT_INT64 (15), /* String */
- JSONRPC_MESSAGE_PUT_INT64 (16), /* Number */
- JSONRPC_MESSAGE_PUT_INT64 (17), /* Boolean */
- JSONRPC_MESSAGE_PUT_INT64 (18), /* Array */
- JSONRPC_MESSAGE_PUT_INT64 (19), /* Object */
- JSONRPC_MESSAGE_PUT_INT64 (20), /* Key */
- JSONRPC_MESSAGE_PUT_INT64 (21), /* Null */
- JSONRPC_MESSAGE_PUT_INT64 (22), /* EnumMember */
- JSONRPC_MESSAGE_PUT_INT64 (23), /* Struct */
- JSONRPC_MESSAGE_PUT_INT64 (24), /* Event */
- JSONRPC_MESSAGE_PUT_INT64 (25), /* Operator */
- JSONRPC_MESSAGE_PUT_INT64 (26), /* TypeParameter */
- "]",
+ "SymbolKind", "{",
+ "valueSet", "[",
+ JSONRPC_MESSAGE_PUT_INT64 (1), /* File */
+ JSONRPC_MESSAGE_PUT_INT64 (2), /* Module */
+ JSONRPC_MESSAGE_PUT_INT64 (3), /* Namespace */
+ JSONRPC_MESSAGE_PUT_INT64 (4), /* Package */
+ JSONRPC_MESSAGE_PUT_INT64 (5), /* Class */
+ JSONRPC_MESSAGE_PUT_INT64 (6), /* Method */
+ JSONRPC_MESSAGE_PUT_INT64 (7), /* Property */
+ JSONRPC_MESSAGE_PUT_INT64 (8), /* Field */
+ JSONRPC_MESSAGE_PUT_INT64 (9), /* Constructor */
+ JSONRPC_MESSAGE_PUT_INT64 (10), /* Enum */
+ JSONRPC_MESSAGE_PUT_INT64 (11), /* Interface */
+ JSONRPC_MESSAGE_PUT_INT64 (12), /* Function */
+ JSONRPC_MESSAGE_PUT_INT64 (13), /* Variable */
+ JSONRPC_MESSAGE_PUT_INT64 (14), /* Constant */
+ JSONRPC_MESSAGE_PUT_INT64 (15), /* String */
+ JSONRPC_MESSAGE_PUT_INT64 (16), /* Number */
+ JSONRPC_MESSAGE_PUT_INT64 (17), /* Boolean */
+ JSONRPC_MESSAGE_PUT_INT64 (18), /* Array */
+ JSONRPC_MESSAGE_PUT_INT64 (19), /* Object */
+ JSONRPC_MESSAGE_PUT_INT64 (20), /* Key */
+ JSONRPC_MESSAGE_PUT_INT64 (21), /* Null */
+ JSONRPC_MESSAGE_PUT_INT64 (22), /* EnumMember */
+ JSONRPC_MESSAGE_PUT_INT64 (23), /* Struct */
+ JSONRPC_MESSAGE_PUT_INT64 (24), /* Event */
+ JSONRPC_MESSAGE_PUT_INT64 (25), /* Operator */
+ JSONRPC_MESSAGE_PUT_INT64 (26), /* TypeParameter */
+ "]",
+ "}",
"}",
"}",
"textDocument", "{",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]