language_server-protocol 3.16.0.1 → 3.17.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/lib/language_server/protocol/constant/code_action_kind.rb +25 -24
  3. data/lib/language_server/protocol/constant/code_action_trigger_kind.rb +24 -0
  4. data/lib/language_server/protocol/constant/completion_item_tag.rb +4 -2
  5. data/lib/language_server/protocol/constant/completion_trigger_kind.rb +2 -3
  6. data/lib/language_server/protocol/constant/diagnostic_severity.rb +3 -0
  7. data/lib/language_server/protocol/constant/diagnostic_tag.rb +4 -2
  8. data/lib/language_server/protocol/constant/error_codes.rb +19 -14
  9. data/lib/language_server/protocol/constant/failure_handling_kind.rb +9 -10
  10. data/lib/language_server/protocol/constant/file_change_type.rb +1 -1
  11. data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +4 -2
  12. data/lib/language_server/protocol/constant/folding_range_kind.rb +23 -0
  13. data/lib/language_server/protocol/constant/inlay_hint_kind.rb +21 -0
  14. data/lib/language_server/protocol/constant/insert_text_format.rb +2 -0
  15. data/lib/language_server/protocol/constant/insert_text_mode.rb +2 -0
  16. data/lib/language_server/protocol/constant/lsp_error_codes.rb +55 -0
  17. data/lib/language_server/protocol/constant/markup_kind.rb +2 -2
  18. data/lib/language_server/protocol/constant/message_type.rb +3 -0
  19. data/lib/language_server/protocol/constant/moniker_kind.rb +26 -0
  20. data/lib/language_server/protocol/constant/notebook_cell_kind.rb +21 -0
  21. data/lib/language_server/protocol/constant/position_encoding_kind.rb +32 -0
  22. data/lib/language_server/protocol/constant/resource_operation_kind.rb +3 -6
  23. data/lib/language_server/protocol/constant/semantic_token_modifiers.rb +25 -0
  24. data/lib/language_server/protocol/constant/semantic_token_types.rb +45 -0
  25. data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +3 -2
  26. data/lib/language_server/protocol/constant/symbol_tag.rb +2 -0
  27. data/lib/language_server/protocol/constant/text_document_save_reason.rb +2 -2
  28. data/lib/language_server/protocol/constant/text_document_sync_kind.rb +3 -3
  29. data/lib/language_server/protocol/constant/token_format.rb +1 -1
  30. data/lib/language_server/protocol/constant/trace_values.rb +20 -0
  31. data/lib/language_server/protocol/constant/uniqueness_level.rb +33 -0
  32. data/lib/language_server/protocol/constant.rb +22 -4
  33. data/lib/language_server/protocol/interface/annotated_text_edit.rb +12 -10
  34. data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +4 -1
  35. data/lib/language_server/protocol/interface/{apply_workspace_edit_response.rb → apply_workspace_edit_result.rb} +11 -7
  36. data/lib/language_server/protocol/interface/base_symbol_information.rb +68 -0
  37. data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +7 -5
  38. data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +5 -0
  39. data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +16 -11
  40. data/lib/language_server/protocol/interface/call_hierarchy_item.rb +14 -10
  41. data/lib/language_server/protocol/interface/call_hierarchy_options.rb +6 -1
  42. data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +8 -2
  43. data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +16 -11
  44. data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +6 -1
  45. data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +10 -5
  46. data/lib/language_server/protocol/interface/cancel_params.rb +1 -1
  47. data/lib/language_server/protocol/interface/change_annotation.rb +4 -2
  48. data/lib/language_server/protocol/interface/client_capabilities.rb +22 -6
  49. data/lib/language_server/protocol/interface/code_action.rb +28 -26
  50. data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +25 -9
  51. data/lib/language_server/protocol/interface/code_action_context.rb +20 -10
  52. data/lib/language_server/protocol/interface/code_action_options.rb +16 -11
  53. data/lib/language_server/protocol/interface/code_action_params.rb +21 -21
  54. data/lib/language_server/protocol/interface/code_action_registration_options.rb +19 -14
  55. data/lib/language_server/protocol/interface/code_description.rb +3 -1
  56. data/lib/language_server/protocol/interface/code_lens.rb +8 -9
  57. data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +4 -1
  58. data/lib/language_server/protocol/interface/code_lens_options.rb +11 -8
  59. data/lib/language_server/protocol/interface/code_lens_params.rb +17 -14
  60. data/lib/language_server/protocol/interface/code_lens_registration_options.rb +14 -11
  61. data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +4 -1
  62. data/lib/language_server/protocol/interface/color.rb +4 -4
  63. data/lib/language_server/protocol/interface/color_information.rb +3 -0
  64. data/lib/language_server/protocol/interface/color_presentation.rb +8 -9
  65. data/lib/language_server/protocol/interface/color_presentation_params.rb +24 -21
  66. data/lib/language_server/protocol/interface/command.rb +7 -1
  67. data/lib/language_server/protocol/interface/completion_client_capabilities.rb +33 -5
  68. data/lib/language_server/protocol/interface/completion_context.rb +4 -6
  69. data/lib/language_server/protocol/interface/completion_item.rb +92 -49
  70. data/lib/language_server/protocol/interface/completion_item_label_details.rb +49 -0
  71. data/lib/language_server/protocol/interface/completion_list.rb +28 -5
  72. data/lib/language_server/protocol/interface/completion_options.rb +36 -25
  73. data/lib/language_server/protocol/interface/completion_params.rb +18 -16
  74. data/lib/language_server/protocol/interface/completion_registration_options.rb +42 -28
  75. data/lib/language_server/protocol/interface/configuration_item.rb +2 -2
  76. data/lib/language_server/protocol/interface/configuration_params.rb +3 -0
  77. data/lib/language_server/protocol/interface/create_file.rb +7 -5
  78. data/lib/language_server/protocol/interface/create_file_options.rb +2 -2
  79. data/lib/language_server/protocol/interface/create_files_params.rb +4 -2
  80. data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +8 -5
  81. data/lib/language_server/protocol/interface/declaration_options.rb +1 -1
  82. data/lib/language_server/protocol/interface/declaration_params.rb +4 -4
  83. data/lib/language_server/protocol/interface/declaration_registration_options.rb +5 -5
  84. data/lib/language_server/protocol/interface/definition_client_capabilities.rb +7 -2
  85. data/lib/language_server/protocol/interface/definition_options.rb +4 -1
  86. data/lib/language_server/protocol/interface/definition_params.rb +7 -4
  87. data/lib/language_server/protocol/interface/definition_registration_options.rb +7 -4
  88. data/lib/language_server/protocol/interface/delete_file.rb +6 -4
  89. data/lib/language_server/protocol/interface/delete_file_options.rb +2 -2
  90. data/lib/language_server/protocol/interface/delete_files_params.rb +4 -2
  91. data/lib/language_server/protocol/interface/diagnostic.rb +25 -14
  92. data/lib/language_server/protocol/interface/diagnostic_client_capabilities.rb +49 -0
  93. data/lib/language_server/protocol/interface/diagnostic_options.rb +66 -0
  94. data/lib/language_server/protocol/interface/diagnostic_registration_options.rb +86 -0
  95. data/lib/language_server/protocol/interface/diagnostic_related_information.rb +3 -3
  96. data/lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb +35 -0
  97. data/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb +44 -0
  98. data/lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb +1 -1
  99. data/lib/language_server/protocol/interface/did_change_configuration_params.rb +4 -1
  100. data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb +30 -0
  101. data/lib/language_server/protocol/interface/did_change_notebook_document_params.rb +62 -0
  102. data/lib/language_server/protocol/interface/did_change_text_document_params.rb +12 -11
  103. data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +17 -5
  104. data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +3 -0
  105. data/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb +1 -1
  106. data/lib/language_server/protocol/interface/did_change_workspace_folders_params.rb +3 -0
  107. data/lib/language_server/protocol/interface/did_close_notebook_document_params.rb +48 -0
  108. data/lib/language_server/protocol/interface/did_close_text_document_params.rb +3 -0
  109. data/lib/language_server/protocol/interface/did_open_notebook_document_params.rb +48 -0
  110. data/lib/language_server/protocol/interface/did_open_text_document_params.rb +3 -0
  111. data/lib/language_server/protocol/interface/did_save_notebook_document_params.rb +38 -0
  112. data/lib/language_server/protocol/interface/did_save_text_document_params.rb +4 -1
  113. data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +4 -2
  114. data/lib/language_server/protocol/interface/document_color_options.rb +1 -1
  115. data/lib/language_server/protocol/interface/document_color_params.rb +17 -14
  116. data/lib/language_server/protocol/interface/document_color_registration_options.rb +11 -11
  117. data/lib/language_server/protocol/interface/document_diagnostic_params.rb +75 -0
  118. data/lib/language_server/protocol/interface/document_diagnostic_report.rb +77 -0
  119. data/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb +35 -0
  120. data/lib/language_server/protocol/interface/document_filter.rb +25 -19
  121. data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +4 -1
  122. data/lib/language_server/protocol/interface/document_formatting_options.rb +4 -1
  123. data/lib/language_server/protocol/interface/document_formatting_params.rb +13 -10
  124. data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +7 -4
  125. data/lib/language_server/protocol/interface/document_highlight.rb +2 -2
  126. data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +4 -1
  127. data/lib/language_server/protocol/interface/document_highlight_options.rb +4 -1
  128. data/lib/language_server/protocol/interface/document_highlight_params.rb +7 -4
  129. data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +7 -4
  130. data/lib/language_server/protocol/interface/document_link.rb +10 -9
  131. data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +7 -2
  132. data/lib/language_server/protocol/interface/document_link_options.rb +11 -8
  133. data/lib/language_server/protocol/interface/document_link_params.rb +17 -14
  134. data/lib/language_server/protocol/interface/document_link_registration_options.rb +14 -11
  135. data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +4 -1
  136. data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +5 -2
  137. data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +12 -4
  138. data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +8 -5
  139. data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +5 -2
  140. data/lib/language_server/protocol/interface/document_range_formatting_options.rb +4 -1
  141. data/lib/language_server/protocol/interface/document_range_formatting_params.rb +13 -10
  142. data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +7 -4
  143. data/lib/language_server/protocol/interface/document_symbol.rb +18 -16
  144. data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +12 -5
  145. data/lib/language_server/protocol/interface/document_symbol_options.rb +13 -8
  146. data/lib/language_server/protocol/interface/document_symbol_params.rb +17 -14
  147. data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +16 -11
  148. data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +4 -1
  149. data/lib/language_server/protocol/interface/execute_command_options.rb +10 -7
  150. data/lib/language_server/protocol/interface/execute_command_params.rb +14 -11
  151. data/lib/language_server/protocol/interface/execute_command_registration_options.rb +8 -8
  152. data/lib/language_server/protocol/interface/execution_summary.rb +45 -0
  153. data/lib/language_server/protocol/interface/file_create.rb +2 -0
  154. data/lib/language_server/protocol/interface/file_delete.rb +2 -0
  155. data/lib/language_server/protocol/interface/file_event.rb +3 -3
  156. data/lib/language_server/protocol/interface/file_operation_client_capabilities.rb +95 -0
  157. data/lib/language_server/protocol/interface/file_operation_filter.rb +5 -3
  158. data/lib/language_server/protocol/interface/file_operation_options.rb +83 -0
  159. data/lib/language_server/protocol/interface/file_operation_pattern.rb +8 -10
  160. data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +3 -1
  161. data/lib/language_server/protocol/interface/file_operation_registration_options.rb +2 -0
  162. data/lib/language_server/protocol/interface/file_rename.rb +2 -0
  163. data/lib/language_server/protocol/interface/file_system_watcher.rb +4 -14
  164. data/lib/language_server/protocol/interface/folding_range.rb +30 -23
  165. data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +26 -4
  166. data/lib/language_server/protocol/interface/folding_range_options.rb +1 -1
  167. data/lib/language_server/protocol/interface/folding_range_params.rb +17 -14
  168. data/lib/language_server/protocol/interface/folding_range_registration_options.rb +5 -5
  169. data/lib/language_server/protocol/interface/formatting_options.rb +10 -4
  170. data/lib/language_server/protocol/interface/full_document_diagnostic_report.rb +58 -0
  171. data/lib/language_server/protocol/interface/general_client_capabilities.rb +91 -0
  172. data/lib/language_server/protocol/interface/glob_pattern.rb +48 -0
  173. data/lib/language_server/protocol/interface/hover.rb +3 -3
  174. data/lib/language_server/protocol/interface/hover_client_capabilities.rb +4 -5
  175. data/lib/language_server/protocol/interface/hover_options.rb +4 -1
  176. data/lib/language_server/protocol/interface/hover_params.rb +4 -1
  177. data/lib/language_server/protocol/interface/hover_registration_options.rb +7 -4
  178. data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +10 -5
  179. data/lib/language_server/protocol/interface/implementation_options.rb +1 -1
  180. data/lib/language_server/protocol/interface/implementation_params.rb +4 -4
  181. data/lib/language_server/protocol/interface/implementation_registration_options.rb +5 -5
  182. data/lib/language_server/protocol/interface/initialize_error.rb +2 -1
  183. data/lib/language_server/protocol/interface/initialize_params.rb +41 -29
  184. data/lib/language_server/protocol/interface/initialize_result.rb +6 -1
  185. data/lib/language_server/protocol/interface/inlay_hint.rb +118 -0
  186. data/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb +48 -0
  187. data/lib/language_server/protocol/interface/inlay_hint_label_part.rb +81 -0
  188. data/lib/language_server/protocol/interface/inlay_hint_options.rb +45 -0
  189. data/lib/language_server/protocol/interface/inlay_hint_params.rb +56 -0
  190. data/lib/language_server/protocol/interface/inlay_hint_registration_options.rb +65 -0
  191. data/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb +44 -0
  192. data/lib/language_server/protocol/interface/inline_value.rb +78 -0
  193. data/lib/language_server/protocol/interface/inline_value_client_capabilities.rb +38 -0
  194. data/lib/language_server/protocol/interface/inline_value_context.rb +46 -0
  195. data/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb +50 -0
  196. data/lib/language_server/protocol/interface/inline_value_options.rb +35 -0
  197. data/lib/language_server/protocol/interface/inline_value_params.rb +66 -0
  198. data/lib/language_server/protocol/interface/inline_value_registration_options.rb +55 -0
  199. data/lib/language_server/protocol/interface/inline_value_text.rb +47 -0
  200. data/lib/language_server/protocol/interface/inline_value_variable_lookup.rb +59 -0
  201. data/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb +44 -0
  202. data/lib/language_server/protocol/interface/insert_replace_edit.rb +2 -0
  203. data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +8 -4
  204. data/lib/language_server/protocol/interface/linked_editing_range_options.rb +1 -1
  205. data/lib/language_server/protocol/interface/linked_editing_range_params.rb +1 -1
  206. data/lib/language_server/protocol/interface/linked_editing_range_registration_options.rb +5 -5
  207. data/lib/language_server/protocol/interface/linked_editing_ranges.rb +7 -2
  208. data/lib/language_server/protocol/interface/location.rb +5 -1
  209. data/lib/language_server/protocol/interface/location_link.rb +13 -11
  210. data/lib/language_server/protocol/interface/log_message_params.rb +4 -1
  211. data/lib/language_server/protocol/interface/log_trace_params.rb +1 -8
  212. data/lib/language_server/protocol/interface/{message.rb → lsp_object.rb} +6 -8
  213. data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +16 -2
  214. data/lib/language_server/protocol/interface/markup_content.rb +16 -18
  215. data/lib/language_server/protocol/interface/moniker.rb +3 -1
  216. data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +9 -5
  217. data/lib/language_server/protocol/interface/moniker_options.rb +1 -1
  218. data/lib/language_server/protocol/interface/moniker_params.rb +4 -4
  219. data/lib/language_server/protocol/interface/moniker_registration_options.rb +4 -4
  220. data/lib/language_server/protocol/interface/notebook_cell.rb +73 -0
  221. data/lib/language_server/protocol/interface/notebook_cell_array_change.rb +57 -0
  222. data/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb +54 -0
  223. data/lib/language_server/protocol/interface/notebook_document.rb +78 -0
  224. data/lib/language_server/protocol/interface/notebook_document_change_event.rb +49 -0
  225. data/lib/language_server/protocol/interface/notebook_document_client_capabilities.rb +40 -0
  226. data/lib/language_server/protocol/interface/notebook_document_filter.rb +58 -0
  227. data/lib/language_server/protocol/interface/notebook_document_identifier.rb +38 -0
  228. data/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb +50 -0
  229. data/lib/language_server/protocol/interface/notebook_document_sync_options.rb +58 -0
  230. data/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb +58 -0
  231. data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +17 -18
  232. data/lib/language_server/protocol/interface/parameter_information.rb +7 -9
  233. data/lib/language_server/protocol/interface/partial_result_params.rb +3 -3
  234. data/lib/language_server/protocol/interface/position.rb +40 -7
  235. data/lib/language_server/protocol/interface/prepare_rename_params.rb +10 -1
  236. data/lib/language_server/protocol/interface/prepare_rename_result.rb +60 -0
  237. data/lib/language_server/protocol/interface/previous_result_id.rb +48 -0
  238. data/lib/language_server/protocol/interface/progress_params.rb +1 -1
  239. data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +16 -5
  240. data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +8 -4
  241. data/lib/language_server/protocol/interface/range.rb +13 -0
  242. data/lib/language_server/protocol/interface/reference_client_capabilities.rb +4 -1
  243. data/lib/language_server/protocol/interface/reference_context.rb +4 -0
  244. data/lib/language_server/protocol/interface/reference_options.rb +4 -1
  245. data/lib/language_server/protocol/interface/reference_params.rb +14 -11
  246. data/lib/language_server/protocol/interface/reference_registration_options.rb +7 -4
  247. data/lib/language_server/protocol/interface/registration.rb +2 -2
  248. data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +3 -1
  249. data/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb +73 -0
  250. data/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb +66 -0
  251. data/lib/language_server/protocol/interface/relative_pattern.rb +50 -0
  252. data/lib/language_server/protocol/interface/rename_client_capabilities.rb +12 -7
  253. data/lib/language_server/protocol/interface/rename_file.rb +7 -5
  254. data/lib/language_server/protocol/interface/rename_file_options.rb +2 -2
  255. data/lib/language_server/protocol/interface/rename_files_params.rb +6 -4
  256. data/lib/language_server/protocol/interface/rename_options.rb +13 -8
  257. data/lib/language_server/protocol/interface/rename_params.rb +15 -12
  258. data/lib/language_server/protocol/interface/rename_registration_options.rb +16 -11
  259. data/lib/language_server/protocol/interface/resource_operation.rb +47 -0
  260. data/lib/language_server/protocol/interface/save_options.rb +4 -1
  261. data/lib/language_server/protocol/interface/selection_range.rb +6 -3
  262. data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +4 -5
  263. data/lib/language_server/protocol/interface/selection_range_options.rb +1 -1
  264. data/lib/language_server/protocol/interface/selection_range_params.rb +23 -20
  265. data/lib/language_server/protocol/interface/selection_range_registration_options.rb +5 -5
  266. data/lib/language_server/protocol/interface/semantic_tokens.rb +5 -2
  267. data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +45 -11
  268. data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +5 -3
  269. data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +24 -21
  270. data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +3 -0
  271. data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +6 -3
  272. data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +3 -0
  273. data/lib/language_server/protocol/interface/semantic_tokens_options.rb +12 -9
  274. data/lib/language_server/protocol/interface/semantic_tokens_params.rb +17 -14
  275. data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +4 -1
  276. data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +23 -20
  277. data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +16 -13
  278. data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +5 -2
  279. data/lib/language_server/protocol/interface/server_capabilities.rb +139 -56
  280. data/lib/language_server/protocol/interface/set_trace_params.rb +1 -4
  281. data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +4 -2
  282. data/lib/language_server/protocol/interface/show_document_params.rb +6 -4
  283. data/lib/language_server/protocol/interface/show_document_result.rb +3 -1
  284. data/lib/language_server/protocol/interface/show_message_params.rb +4 -1
  285. data/lib/language_server/protocol/interface/show_message_request_client_capabilities.rb +1 -1
  286. data/lib/language_server/protocol/interface/show_message_request_params.rb +2 -2
  287. data/lib/language_server/protocol/interface/signature_help.rb +3 -4
  288. data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +8 -3
  289. data/lib/language_server/protocol/interface/signature_help_context.rb +10 -11
  290. data/lib/language_server/protocol/interface/signature_help_options.rb +17 -14
  291. data/lib/language_server/protocol/interface/signature_help_params.rb +17 -13
  292. data/lib/language_server/protocol/interface/signature_help_registration_options.rb +20 -17
  293. data/lib/language_server/protocol/interface/signature_information.rb +5 -3
  294. data/lib/language_server/protocol/interface/static_registration_options.rb +3 -2
  295. data/lib/language_server/protocol/interface/symbol_information.rb +34 -30
  296. data/lib/language_server/protocol/interface/t.rb +24 -0
  297. data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +12 -13
  298. data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +108 -43
  299. data/lib/language_server/protocol/interface/text_document_content_change_event.rb +8 -10
  300. data/lib/language_server/protocol/interface/text_document_edit.rb +10 -1
  301. data/lib/language_server/protocol/interface/text_document_filter.rb +69 -0
  302. data/lib/language_server/protocol/interface/text_document_identifier.rb +5 -2
  303. data/lib/language_server/protocol/interface/text_document_item.rb +7 -3
  304. data/lib/language_server/protocol/interface/text_document_position_params.rb +4 -0
  305. data/lib/language_server/protocol/interface/text_document_registration_options.rb +3 -3
  306. data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +7 -4
  307. data/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb +4 -4
  308. data/lib/language_server/protocol/interface/text_document_sync_options.rb +15 -17
  309. data/lib/language_server/protocol/interface/text_edit.rb +3 -0
  310. data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +10 -5
  311. data/lib/language_server/protocol/interface/type_definition_options.rb +1 -1
  312. data/lib/language_server/protocol/interface/type_definition_params.rb +4 -4
  313. data/lib/language_server/protocol/interface/type_definition_registration_options.rb +5 -5
  314. data/lib/language_server/protocol/interface/type_hierarchy_client_capabilities.rb +38 -0
  315. data/lib/language_server/protocol/interface/type_hierarchy_item.rb +105 -0
  316. data/lib/language_server/protocol/interface/type_hierarchy_options.rb +35 -0
  317. data/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb +56 -0
  318. data/lib/language_server/protocol/interface/type_hierarchy_registration_options.rb +55 -0
  319. data/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb +54 -0
  320. data/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb +54 -0
  321. data/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb +52 -0
  322. data/lib/language_server/protocol/interface/unregistration.rb +2 -2
  323. data/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb +47 -0
  324. data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +13 -13
  325. data/lib/language_server/protocol/interface/will_save_text_document_params.rb +1 -1
  326. data/lib/language_server/protocol/interface/window_client_capabilities.rb +63 -0
  327. data/lib/language_server/protocol/interface/work_done_progress_begin.rb +6 -6
  328. data/lib/language_server/protocol/interface/work_done_progress_end.rb +1 -1
  329. data/lib/language_server/protocol/interface/work_done_progress_options.rb +1 -1
  330. data/lib/language_server/protocol/interface/work_done_progress_params.rb +1 -1
  331. data/lib/language_server/protocol/interface/work_done_progress_report.rb +6 -7
  332. data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +176 -0
  333. data/lib/language_server/protocol/interface/workspace_diagnostic_params.rb +67 -0
  334. data/lib/language_server/protocol/interface/workspace_diagnostic_report.rb +35 -0
  335. data/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb +35 -0
  336. data/lib/language_server/protocol/interface/workspace_document_diagnostic_report.rb +77 -0
  337. data/lib/language_server/protocol/interface/workspace_edit.rb +28 -17
  338. data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +15 -6
  339. data/lib/language_server/protocol/interface/workspace_folder.rb +4 -1
  340. data/lib/language_server/protocol/interface/workspace_folders_initialize_params.rb +39 -0
  341. data/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb +3 -3
  342. data/lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb +77 -0
  343. data/lib/language_server/protocol/interface/workspace_symbol.rb +95 -0
  344. data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +23 -6
  345. data/lib/language_server/protocol/interface/workspace_symbol_options.rb +17 -2
  346. data/lib/language_server/protocol/interface/workspace_symbol_params.rb +16 -16
  347. data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +17 -2
  348. data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb +70 -0
  349. data/lib/language_server/protocol/interface.rb +156 -14
  350. data/lib/language_server/protocol/transport/io/reader.rb +8 -24
  351. data/lib/language_server/protocol/transport/io/writer.rb +1 -0
  352. data/lib/language_server/protocol/version.rb +1 -1
  353. metadata +92 -24
  354. data/lib/language_server/protocol/constant/initialize_error.rb +0 -16
  355. data/lib/language_server/protocol/interface/notification_message.rb +0 -48
  356. data/lib/language_server/protocol/interface/request_message.rb +0 -57
  357. data/lib/language_server/protocol/interface/response_error.rb +0 -52
  358. data/lib/language_server/protocol/interface/response_message.rb +0 -58
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e3ec18ff38c90b4514892b8cf1994ebd4d0b6b67ac552e6c7b0b809cc70b0eb6
4
- data.tar.gz: 04aa9a94aefae834792332a1287aa3e31861a4bd4e77b5348bf09e714f3d03c8
3
+ metadata.gz: b8b12f6835b7cca36a672a8afc09734c35c01d161d6114ba629df50b8769c182
4
+ data.tar.gz: 3518d1ed28dbb882685c35f687d96bb8a838ba8c733c1797fa1f273382a6e391
5
5
  SHA512:
6
- metadata.gz: 05ac0882550bbf58993ddb5d656163d612385e51f093ec2c6d8c410e35df8462ca7fd2a8205668089f991bcf0867060ddbe36de7a6aebd0442494be70e04d13b
7
- data.tar.gz: 0ff19e07d9f55793106a2d925f5076067e4c13af2bea679d89fba19f42477526f08bc45c5191b59be86c2115711077743756a73df216443ec7ce82aa06db27c7
6
+ metadata.gz: 474dcb382b626379424257691e35c0b739182bb201f35b843eab1d860f4f165aad509405fd050c6852d06b0ac2f72809cf7556af7cd9051867a832baa2663630
7
+ data.tar.gz: 86d984fd5d02006d904233422700c52a9b647fbcbe7c838fcc07dfb68d2b6571d9506930fda0cfc42eb861db12730c0832bad1f820284e8cd1d1bad4ab380611
@@ -2,30 +2,23 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
4
  #
5
- # The kind of a code action.
6
- #
7
- # Kinds are a hierarchical list of identifiers separated by `.`,
8
- # e.g. `"refactor.extract.function"`.
9
- #
10
- # The set of kinds is open and client needs to announce the kinds it supports
11
- # to the server during initialization.
12
- # A set of predefined code action kinds.
5
+ # A set of predefined code action kinds
13
6
  #
14
7
  module CodeActionKind
15
8
  #
16
9
  # Empty kind.
17
10
  #
18
- EMPTY = ''
11
+ EMPTY = ""
19
12
  #
20
- # Base kind for quickfix actions: 'quickfix'.
13
+ # Base kind for quickfix actions: 'quickfix'
21
14
  #
22
- QUICK_FIX = 'quickfix'
15
+ QUICK_FIX = "quickfix"
23
16
  #
24
- # Base kind for refactoring actions: 'refactor'.
17
+ # Base kind for refactoring actions: 'refactor'
25
18
  #
26
- REFACTOR = 'refactor'
19
+ REFACTOR = "refactor"
27
20
  #
28
- # Base kind for refactoring extraction actions: 'refactor.extract'.
21
+ # Base kind for refactoring extraction actions: 'refactor.extract'
29
22
  #
30
23
  # Example extract actions:
31
24
  #
@@ -35,9 +28,9 @@ module LanguageServer
35
28
  # - Extract interface from class
36
29
  # - ...
37
30
  #
38
- REFACTOR_EXTRACT = 'refactor.extract'
31
+ REFACTOR_EXTRACT = "refactor.extract"
39
32
  #
40
- # Base kind for refactoring inline actions: 'refactor.inline'.
33
+ # Base kind for refactoring inline actions: 'refactor.inline'
41
34
  #
42
35
  # Example inline actions:
43
36
  #
@@ -46,9 +39,9 @@ module LanguageServer
46
39
  # - Inline constant
47
40
  # - ...
48
41
  #
49
- REFACTOR_INLINE = 'refactor.inline'
42
+ REFACTOR_INLINE = "refactor.inline"
50
43
  #
51
- # Base kind for refactoring rewrite actions: 'refactor.rewrite'.
44
+ # Base kind for refactoring rewrite actions: 'refactor.rewrite'
52
45
  #
53
46
  # Example rewrite actions:
54
47
  #
@@ -59,18 +52,26 @@ module LanguageServer
59
52
  # - Move method to base class
60
53
  # - ...
61
54
  #
62
- REFACTOR_REWRITE = 'refactor.rewrite'
55
+ REFACTOR_REWRITE = "refactor.rewrite"
63
56
  #
64
- # Base kind for source actions: `source`.
57
+ # Base kind for source actions: `source`
65
58
  #
66
59
  # Source code actions apply to the entire file.
67
60
  #
68
- SOURCE = 'source'
61
+ SOURCE = "source"
62
+ #
63
+ # Base kind for an organize imports source action: `source.organizeImports`
64
+ #
65
+ SOURCE_ORGANIZE_IMPORTS = "source.organizeImports"
66
+ #
67
+ # Base kind for auto-fix source actions: `source.fixAll`.
68
+ #
69
+ # Fix all actions automatically fix errors that have a clear fix that do not require user input.
70
+ # They should not suppress errors or perform unsafe fixes such as generating new types or classes.
69
71
  #
70
- # Base kind for an organize imports source action:
71
- # `source.organizeImports`.
72
+ # @since 3.15.0
72
73
  #
73
- SOURCE_ORGANIZE_IMPORTS = 'source.organizeImports'
74
+ SOURCE_FIX_ALL = "source.fixAll"
74
75
  end
75
76
  end
76
77
  end
@@ -0,0 +1,24 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # The reason why code actions were requested.
6
+ #
7
+ # @since 3.17.0
8
+ #
9
+ module CodeActionTriggerKind
10
+ #
11
+ # Code actions were explicitly requested by the user or by an extension.
12
+ #
13
+ INVOKED = 1
14
+ #
15
+ # Code actions were requested automatically.
16
+ #
17
+ # This typically happens when current selection in a file changes, but can
18
+ # also be triggered when file content changes.
19
+ #
20
+ AUTOMATIC = 2
21
+ end
22
+ end
23
+ end
24
+ end
@@ -2,8 +2,10 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
4
  #
5
- # Completion item tags are extra annotations that tweak the rendering of a
6
- # completion item.
5
+ # Completion item tags are extra annotations that tweak the rendering of a completion
6
+ # item.
7
+ #
8
+ # @since 3.15.0
7
9
  #
8
10
  module CompletionItemTag
9
11
  #
@@ -12,12 +12,11 @@ module LanguageServer
12
12
  INVOKED = 1
13
13
  #
14
14
  # Completion was triggered by a trigger character specified by
15
- # the `triggerCharacters` properties of the
16
- # `CompletionRegistrationOptions`.
15
+ # the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
17
16
  #
18
17
  TRIGGER_CHARACTER = 2
19
18
  #
20
- # Completion was re-triggered as the current completion list is incomplete.
19
+ # Completion was re-triggered as current completion list is incomplete
21
20
  #
22
21
  TRIGGER_FOR_INCOMPLETE_COMPLETIONS = 3
23
22
  end
@@ -1,6 +1,9 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
+ #
5
+ # The diagnostic's severity.
6
+ #
4
7
  module DiagnosticSeverity
5
8
  #
6
9
  # Reports an error.
@@ -4,12 +4,14 @@ module LanguageServer
4
4
  #
5
5
  # The diagnostic tags.
6
6
  #
7
+ # @since 3.15.0
8
+ #
7
9
  module DiagnosticTag
8
10
  #
9
11
  # Unused or unnecessary code.
10
12
  #
11
- # Clients are allowed to render diagnostics with this tag faded out
12
- # instead of having an error squiggle.
13
+ # Clients are allowed to render diagnostics with this tag faded out instead of having
14
+ # an error squiggle.
13
15
  #
14
16
  UNNECESSARY = 1
15
17
  #
@@ -1,6 +1,9 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
+ #
5
+ # Predefined error codes.
6
+ #
4
7
  module ErrorCodes
5
8
  PARSE_ERROR = -32700
6
9
  INVALID_REQUEST = -32600
@@ -9,33 +12,35 @@ module LanguageServer
9
12
  INTERNAL_ERROR = -32603
10
13
  #
11
14
  # This is the start range of JSON RPC reserved error codes.
12
- # It doesn't denote a real error code. No LSP error codes should
15
+ # It doesn't denote a real error code. No application error codes should
13
16
  # be defined between the start and end range. For backwards
14
17
  # compatibility the `ServerNotInitialized` and the `UnknownErrorCode`
15
18
  # are left in the range.
16
19
  #
20
+ # @since 3.16.0
21
+ #
17
22
  JSONRPC_RESERVED_ERROR_RANGE_START = -32099
18
- SERVER_ERROR_START = JSONRPC_RESERVED_ERROR_RANGE_START
23
+ #
24
+ # @deprecated use jsonrpcReservedErrorRangeStart */
25
+ #
26
+ SERVER_ERROR_START = -32099
27
+ #
28
+ # Error code indicating that a server received a notification or
29
+ # request before the server has received the `initialize` request.
30
+ #
19
31
  SERVER_NOT_INITIALIZED = -32002
20
32
  UNKNOWN_ERROR_CODE = -32001
21
33
  #
22
- # This is the start range of JSON RPC reserved error codes.
34
+ # This is the end range of JSON RPC reserved error codes.
23
35
  # It doesn't denote a real error code.
24
36
  #
25
- JSONRPC_RESERVED_ERROR_RANGE_END = -32000
26
- SERVER_ERROR_END = JSONRPC_RESERVED_ERROR_RANGE_END
27
- #
28
- # This is the start range of LSP reserved error codes.
29
- # It doesn't denote a real error code.
37
+ # @since 3.16.0
30
38
  #
31
- LSP_RESERVED_ERROR_RANGE_START = -32899
32
- CONTENT_MODIFIED = -32801
33
- REQUEST_CANCELLED = -32800
39
+ JSONRPC_RESERVED_ERROR_RANGE_END = -32000
34
40
  #
35
- # This is the end range of LSP reserved error codes.
36
- # It doesn't denote a real error code.
41
+ # @deprecated use jsonrpcReservedErrorRangeEnd */
37
42
  #
38
- LSP_RESERVED_ERROR_RANGE_END = -32800
43
+ SERVER_ERROR_END = -32000
39
44
  end
40
45
  end
41
46
  end
@@ -3,27 +3,26 @@ module LanguageServer
3
3
  module Constant
4
4
  module FailureHandlingKind
5
5
  #
6
- # Applying the workspace change is simply aborted if one of the changes
7
- # provided fails. All operations executed before the failing operation
8
- # stay executed.
6
+ # Applying the workspace change is simply aborted if one of the changes provided
7
+ # fails. All operations executed before the failing operation stay executed.
9
8
  #
10
- ABORT = 'abort'
9
+ ABORT = "abort"
11
10
  #
12
11
  # All operations are executed transactional. That means they either all
13
12
  # succeed or no changes at all are applied to the workspace.
14
13
  #
15
- TRANSACTIONAL = 'transactional'
14
+ TRANSACTIONAL = "transactional"
16
15
  #
17
- # If the workspace edit contains only textual file changes they are
18
- # executed transactional. If resource changes (create, rename or delete
19
- # file) are part of the change the failure handling strategy is abort.
16
+ # If the workspace edit contains only textual file changes they are executed transactional.
17
+ # If resource changes (create, rename or delete file) are part of the change the failure
18
+ # handling strategy is abort.
20
19
  #
21
- TEXT_ONLY_TRANSACTIONAL = 'textOnlyTransactional'
20
+ TEXT_ONLY_TRANSACTIONAL = "textOnlyTransactional"
22
21
  #
23
22
  # The client tries to undo the operations already executed. But there is no
24
23
  # guarantee that this is succeeding.
25
24
  #
26
- UNDO = 'undo'
25
+ UNDO = "undo"
27
26
  end
28
27
  end
29
28
  end
@@ -2,7 +2,7 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
4
  #
5
- # The file event type.
5
+ # The file event type
6
6
  #
7
7
  module FileChangeType
8
8
  #
@@ -5,15 +5,17 @@ module LanguageServer
5
5
  # A pattern kind describing if a glob pattern matches a file a folder or
6
6
  # both.
7
7
  #
8
+ # @since 3.16.0
9
+ #
8
10
  module FileOperationPatternKind
9
11
  #
10
12
  # The pattern matches a file only.
11
13
  #
12
- FILE = 'file'
14
+ FILE = "file"
13
15
  #
14
16
  # The pattern matches a folder only.
15
17
  #
16
- FOLDER = 'folder'
18
+ FOLDER = "folder"
17
19
  end
18
20
  end
19
21
  end
@@ -0,0 +1,23 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # A set of predefined range kinds.
6
+ #
7
+ module FoldingRangeKind
8
+ #
9
+ # Folding range for a comment
10
+ #
11
+ COMMENT = "comment"
12
+ #
13
+ # Folding range for an import or include
14
+ #
15
+ IMPORTS = "imports"
16
+ #
17
+ # Folding range for a region (e.g. `#region`)
18
+ #
19
+ REGION = "region"
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,21 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # Inlay hint kinds.
6
+ #
7
+ # @since 3.17.0
8
+ #
9
+ module InlayHintKind
10
+ #
11
+ # An inlay hint that for a type annotation.
12
+ #
13
+ TYPE = 1
14
+ #
15
+ # An inlay hint that is for a parameter.
16
+ #
17
+ PARAMETER = 2
18
+ end
19
+ end
20
+ end
21
+ end
@@ -18,6 +18,8 @@ module LanguageServer
18
18
  # the end of the snippet. Placeholders with equal identifiers are linked,
19
19
  # that is typing in one will update others too.
20
20
  #
21
+ # See also: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#snippet_syntax
22
+ #
21
23
  SNIPPET = 2
22
24
  end
23
25
  end
@@ -5,6 +5,8 @@ module LanguageServer
5
5
  # How whitespace and indentation is handled during completion
6
6
  # item insertion.
7
7
  #
8
+ # @since 3.16.0
9
+ #
8
10
  module InsertTextMode
9
11
  #
10
12
  # The insertion or replace strings is taken as it is. If the
@@ -0,0 +1,55 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ module LSPErrorCodes
5
+ #
6
+ # This is the start range of LSP reserved error codes.
7
+ # It doesn't denote a real error code.
8
+ #
9
+ # @since 3.16.0
10
+ #
11
+ LSP_RESERVED_ERROR_RANGE_START = -32899
12
+ #
13
+ # A request failed but it was syntactically correct, e.g the
14
+ # method name was known and the parameters were valid. The error
15
+ # message should contain human readable information about why
16
+ # the request failed.
17
+ #
18
+ # @since 3.17.0
19
+ #
20
+ REQUEST_FAILED = -32803
21
+ #
22
+ # The server cancelled the request. This error code should
23
+ # only be used for requests that explicitly support being
24
+ # server cancellable.
25
+ #
26
+ # @since 3.17.0
27
+ #
28
+ SERVER_CANCELLED = -32802
29
+ #
30
+ # The server detected that the content of a document got
31
+ # modified outside normal conditions. A server should
32
+ # NOT send this error code if it detects a content change
33
+ # in it unprocessed messages. The result even computed
34
+ # on an older state might still be useful for the client.
35
+ #
36
+ # If a client decides that a result is not of any use anymore
37
+ # the client should cancel the request.
38
+ #
39
+ CONTENT_MODIFIED = -32801
40
+ #
41
+ # The client has canceled a request and a server as detected
42
+ # the cancel.
43
+ #
44
+ REQUEST_CANCELLED = -32800
45
+ #
46
+ # This is the end range of LSP reserved error codes.
47
+ # It doesn't denote a real error code.
48
+ #
49
+ # @since 3.16.0
50
+ #
51
+ LSP_RESERVED_ERROR_RANGE_END = -32800
52
+ end
53
+ end
54
+ end
55
+ end
@@ -12,11 +12,11 @@ module LanguageServer
12
12
  #
13
13
  # Plain text is supported as a content format
14
14
  #
15
- PLAIN_TEXT = 'plaintext'
15
+ PLAIN_TEXT = "plaintext"
16
16
  #
17
17
  # Markdown is supported as a content format
18
18
  #
19
- MARKDOWN = 'markdown'
19
+ MARKDOWN = "markdown"
20
20
  end
21
21
  end
22
22
  end
@@ -1,6 +1,9 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
+ #
5
+ # The message type
6
+ #
4
7
  module MessageType
5
8
  #
6
9
  # An error message.
@@ -0,0 +1,26 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # The moniker kind.
6
+ #
7
+ # @since 3.16.0
8
+ #
9
+ module MonikerKind
10
+ #
11
+ # The moniker represent a symbol that is imported into a project
12
+ #
13
+ IMPORT = "import"
14
+ #
15
+ # The moniker represents a symbol that is exported from a project
16
+ #
17
+ EXPORT = "export"
18
+ #
19
+ # The moniker represents a symbol that is local to a project (e.g. a local
20
+ # variable of a function, a class not visible outside the project, ...)
21
+ #
22
+ LOCAL = "local"
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,21 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # A notebook cell kind.
6
+ #
7
+ # @since 3.17.0
8
+ #
9
+ module NotebookCellKind
10
+ #
11
+ # A markup-cell is formatted source that is used for display.
12
+ #
13
+ MARKUP = 1
14
+ #
15
+ # A code-cell is source code.
16
+ #
17
+ CODE = 2
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,32 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # A set of predefined position encoding kinds.
6
+ #
7
+ # @since 3.17.0
8
+ #
9
+ module PositionEncodingKind
10
+ #
11
+ # Character offsets count UTF-8 code units.
12
+ #
13
+ UTF8 = "utf-8"
14
+ #
15
+ # Character offsets count UTF-16 code units.
16
+ #
17
+ # This is the default and must always be supported
18
+ # by servers
19
+ #
20
+ UTF16 = "utf-16"
21
+ #
22
+ # Character offsets count UTF-32 code units.
23
+ #
24
+ # Implementation note: these are the same as Unicode code points,
25
+ # so this `PositionEncodingKind` may also be used for an
26
+ # encoding-agnostic representation of character offsets.
27
+ #
28
+ UTF32 = "utf-32"
29
+ end
30
+ end
31
+ end
32
+ end
@@ -1,22 +1,19 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Constant
4
- #
5
- # The kind of resource operations supported by the client.
6
- #
7
4
  module ResourceOperationKind
8
5
  #
9
6
  # Supports creating new files and folders.
10
7
  #
11
- CREATE = 'create'
8
+ CREATE = "create"
12
9
  #
13
10
  # Supports renaming existing files and folders.
14
11
  #
15
- RENAME = 'rename'
12
+ RENAME = "rename"
16
13
  #
17
14
  # Supports deleting existing files and folders.
18
15
  #
19
- DELETE = 'delete'
16
+ DELETE = "delete"
20
17
  end
21
18
  end
22
19
  end
@@ -0,0 +1,25 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # A set of predefined token modifiers. This set is not fixed
6
+ # an clients can specify additional token types via the
7
+ # corresponding client capabilities.
8
+ #
9
+ # @since 3.16.0
10
+ #
11
+ module SemanticTokenModifiers
12
+ DECLARATION = "declaration"
13
+ DEFINITION = "definition"
14
+ READONLY = "readonly"
15
+ STATIC = "static"
16
+ DEPRECATED = "deprecated"
17
+ ABSTRACT = "abstract"
18
+ ASYNC = "async"
19
+ MODIFICATION = "modification"
20
+ DOCUMENTATION = "documentation"
21
+ DEFAULT_LIBRARY = "defaultLibrary"
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,45 @@
1
+ module LanguageServer
2
+ module Protocol
3
+ module Constant
4
+ #
5
+ # A set of predefined token types. This set is not fixed
6
+ # an clients can specify additional token types via the
7
+ # corresponding client capabilities.
8
+ #
9
+ # @since 3.16.0
10
+ #
11
+ module SemanticTokenTypes
12
+ NAMESPACE = "namespace"
13
+ #
14
+ # Represents a generic type. Acts as a fallback for types which can't be mapped to
15
+ # a specific type like class or enum.
16
+ #
17
+ TYPE = "type"
18
+ CLASS = "class"
19
+ ENUM = "enum"
20
+ INTERFACE = "interface"
21
+ STRUCT = "struct"
22
+ TYPE_PARAMETER = "typeParameter"
23
+ PARAMETER = "parameter"
24
+ VARIABLE = "variable"
25
+ PROPERTY = "property"
26
+ ENUM_MEMBER = "enumMember"
27
+ EVENT = "event"
28
+ FUNCTION = "function"
29
+ METHOD = "method"
30
+ MACRO = "macro"
31
+ KEYWORD = "keyword"
32
+ MODIFIER = "modifier"
33
+ COMMENT = "comment"
34
+ STRING = "string"
35
+ NUMBER = "number"
36
+ REGEXP = "regexp"
37
+ OPERATOR = "operator"
38
+ #
39
+ # @since 3.17.0
40
+ #
41
+ DECORATOR = "decorator"
42
+ end
43
+ end
44
+ end
45
+ end
@@ -4,6 +4,8 @@ module LanguageServer
4
4
  #
5
5
  # How a signature help was triggered.
6
6
  #
7
+ # @since 3.15.0
8
+ #
7
9
  module SignatureHelpTriggerKind
8
10
  #
9
11
  # Signature help was invoked manually by the user or by a command.
@@ -14,8 +16,7 @@ module LanguageServer
14
16
  #
15
17
  TRIGGER_CHARACTER = 2
16
18
  #
17
- # Signature help was triggered by the cursor moving or by the document
18
- # content changing.
19
+ # Signature help was triggered by the cursor moving or by the document content changing.
19
20
  #
20
21
  CONTENT_CHANGE = 3
21
22
  end