[gnome-builder] lsp: convert protocol to internal symbol kinds



commit 8d13045042f2f38029289babe4509412766d8138
Author: Christian Hergert <chergert redhat com>
Date:   Thu Dec 5 12:55:35 2019 -0800

    lsp: convert protocol to internal symbol kinds
    
    Related #1088

 src/libide/lsp/ide-lsp-util.c | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/src/libide/lsp/ide-lsp-util.c b/src/libide/lsp/ide-lsp-util.c
index bf3950c1b..2baf4ce4e 100644
--- a/src/libide/lsp/ide-lsp-util.c
+++ b/src/libide/lsp/ide-lsp-util.c
@@ -43,6 +43,14 @@ ide_lsp_decode_symbol_kind (guint kind)
     case 16:  kind = IDE_SYMBOL_KIND_NUMBER;       break;
     case 17:  kind = IDE_SYMBOL_KIND_BOOLEAN;      break;
     case 18:  kind = IDE_SYMBOL_KIND_ARRAY;        break;
+    case 19:  kind = IDE_SYMBOL_KIND_OBJECT;       break;
+    case 20:  kind = IDE_SYMBOL_KIND_VARIABLE;     break; /* Key */
+    case 21:  kind = IDE_SYMBOL_KIND_CONSTANT;     break; /* Null */
+    case 22:  kind = IDE_SYMBOL_KIND_ENUM_VALUE;   break;
+    case 23:  kind = IDE_SYMBOL_KIND_STRUCT;       break;
+    case 24:  kind = IDE_SYMBOL_KIND_EVENT;        break;
+    case 25:  kind = IDE_SYMBOL_KIND_OPERATOR;     break;
+    case 26:  kind = IDE_SYMBOL_KIND_TYPE_PARAM;   break;
     default:  kind = IDE_SYMBOL_KIND_NONE;         break;
     }
 


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