瀏覽代碼

inlay-hints: use words for inlay hint kinds so that we can support extensions and tsserver

Ben Jackson 2 年之前
父節點
當前提交
1a0a06bca3
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 3 4
      python/ycm/inlay_hints.py
  2. 1 1
      third_party/ycmd

+ 3 - 4
python/ycm/inlay_hints.py

@@ -23,10 +23,9 @@ from ycm import text_properties as tp
 
 
 HIGHLIGHT_GROUP = {
-  # 1-based inedexes
-  0: '',
-  1: 'YcmInlayHint',  # Type
-  2: 'YcmInlayHint'   # Parameter
+  'Type':      'YcmInlayHint',
+  'Parameter': 'YcmInlayHint',
+  'Enum':      'YcmInlayHint',
 }
 REPORTED_MISSING_TYPES = set()
 

+ 1 - 1
third_party/ycmd

@@ -1 +1 @@
-Subproject commit 1803ab68a1ec120536eb27b4a57b022f61b14347
+Subproject commit 41a6f955ec72b08c898f939cd4c8c75468af66b5