language_server-protocol 3.17.0.0 → 3.17.0.1

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 +29 -22
  3. data/lib/language_server/protocol/constant/code_action_trigger_kind.rb +0 -2
  4. data/lib/language_server/protocol/constant/completion_item_tag.rb +2 -4
  5. data/lib/language_server/protocol/constant/completion_trigger_kind.rb +3 -2
  6. data/lib/language_server/protocol/constant/diagnostic_severity.rb +0 -3
  7. data/lib/language_server/protocol/constant/diagnostic_tag.rb +2 -4
  8. data/lib/language_server/protocol/constant/document_diagnostic_report_kind.rb +21 -0
  9. data/lib/language_server/protocol/constant/error_codes.rb +42 -16
  10. data/lib/language_server/protocol/constant/failure_handling_kind.rb +10 -9
  11. data/lib/language_server/protocol/constant/file_change_type.rb +1 -1
  12. data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +2 -4
  13. data/lib/language_server/protocol/constant/folding_range_kind.rb +5 -4
  14. data/lib/language_server/protocol/constant/initialize_error_codes.rb +16 -0
  15. data/lib/language_server/protocol/constant/inlay_hint_kind.rb +0 -2
  16. data/lib/language_server/protocol/constant/insert_text_format.rb +0 -2
  17. data/lib/language_server/protocol/constant/insert_text_mode.rb +0 -2
  18. data/lib/language_server/protocol/constant/markup_kind.rb +2 -2
  19. data/lib/language_server/protocol/constant/message_type.rb +0 -3
  20. data/lib/language_server/protocol/constant/moniker_kind.rb +3 -5
  21. data/lib/language_server/protocol/constant/notebook_cell_kind.rb +0 -2
  22. data/lib/language_server/protocol/constant/position_encoding_kind.rb +5 -5
  23. data/lib/language_server/protocol/constant/prepare_support_default_behavior.rb +1 -1
  24. data/lib/language_server/protocol/constant/resource_operation_kind.rb +6 -3
  25. data/lib/language_server/protocol/constant/semantic_token_modifiers.rb +10 -17
  26. data/lib/language_server/protocol/constant/semantic_token_types.rb +25 -35
  27. data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +2 -3
  28. data/lib/language_server/protocol/constant/symbol_tag.rb +0 -2
  29. data/lib/language_server/protocol/constant/text_document_save_reason.rb +2 -2
  30. data/lib/language_server/protocol/constant/text_document_sync_kind.rb +3 -3
  31. data/lib/language_server/protocol/constant/token_format.rb +1 -1
  32. data/lib/language_server/protocol/constant/uniqueness_level.rb +5 -7
  33. data/lib/language_server/protocol/constant.rb +6 -4
  34. data/lib/language_server/protocol/interface/annotated_text_edit.rb +10 -12
  35. data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +1 -4
  36. data/lib/language_server/protocol/interface/apply_workspace_edit_result.rb +6 -10
  37. data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +5 -7
  38. data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +0 -5
  39. data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +11 -16
  40. data/lib/language_server/protocol/interface/call_hierarchy_item.rb +9 -13
  41. data/lib/language_server/protocol/interface/call_hierarchy_options.rb +1 -6
  42. data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +2 -8
  43. data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +11 -16
  44. data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +1 -6
  45. data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +5 -10
  46. data/lib/language_server/protocol/interface/cancel_params.rb +1 -1
  47. data/lib/language_server/protocol/interface/change_annotation.rb +2 -4
  48. data/lib/language_server/protocol/interface/client_capabilities.rb +6 -13
  49. data/lib/language_server/protocol/interface/code_action.rb +26 -28
  50. data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +9 -25
  51. data/lib/language_server/protocol/interface/code_action_context.rb +10 -11
  52. data/lib/language_server/protocol/interface/code_action_options.rb +11 -16
  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 +14 -19
  55. data/lib/language_server/protocol/interface/code_description.rb +1 -3
  56. data/lib/language_server/protocol/interface/code_lens.rb +9 -8
  57. data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +1 -4
  58. data/lib/language_server/protocol/interface/code_lens_options.rb +8 -11
  59. data/lib/language_server/protocol/interface/code_lens_params.rb +14 -17
  60. data/lib/language_server/protocol/interface/code_lens_registration_options.rb +11 -14
  61. data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +1 -4
  62. data/lib/language_server/protocol/interface/color.rb +4 -4
  63. data/lib/language_server/protocol/interface/color_information.rb +0 -3
  64. data/lib/language_server/protocol/interface/color_presentation.rb +9 -8
  65. data/lib/language_server/protocol/interface/color_presentation_params.rb +21 -24
  66. data/lib/language_server/protocol/interface/command.rb +1 -7
  67. data/lib/language_server/protocol/interface/completion_client_capabilities.rb +16 -24
  68. data/lib/language_server/protocol/interface/completion_context.rb +6 -4
  69. data/lib/language_server/protocol/interface/completion_item.rb +50 -61
  70. data/lib/language_server/protocol/interface/completion_item_label_details.rb +8 -8
  71. data/lib/language_server/protocol/interface/completion_list.rb +5 -6
  72. data/lib/language_server/protocol/interface/completion_options.rb +26 -27
  73. data/lib/language_server/protocol/interface/completion_params.rb +16 -18
  74. data/lib/language_server/protocol/interface/completion_registration_options.rb +29 -33
  75. data/lib/language_server/protocol/interface/configuration_item.rb +2 -2
  76. data/lib/language_server/protocol/interface/configuration_params.rb +0 -3
  77. data/lib/language_server/protocol/interface/create_file.rb +4 -6
  78. data/lib/language_server/protocol/interface/create_file_options.rb +2 -2
  79. data/lib/language_server/protocol/interface/create_files_params.rb +2 -4
  80. data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +5 -8
  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 +2 -7
  85. data/lib/language_server/protocol/interface/definition_options.rb +1 -4
  86. data/lib/language_server/protocol/interface/definition_params.rb +4 -7
  87. data/lib/language_server/protocol/interface/definition_registration_options.rb +4 -7
  88. data/lib/language_server/protocol/interface/delete_file.rb +3 -5
  89. data/lib/language_server/protocol/interface/delete_file_options.rb +2 -2
  90. data/lib/language_server/protocol/interface/delete_files_params.rb +2 -4
  91. data/lib/language_server/protocol/interface/diagnostic.rb +14 -25
  92. data/lib/language_server/protocol/interface/diagnostic_client_capabilities.rb +7 -7
  93. data/lib/language_server/protocol/interface/diagnostic_options.rb +8 -10
  94. data/lib/language_server/protocol/interface/diagnostic_registration_options.rb +12 -14
  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 +0 -2
  97. data/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb +4 -6
  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 +0 -3
  100. data/lib/language_server/protocol/interface/did_change_notebook_document_params.rb +8 -14
  101. data/lib/language_server/protocol/interface/did_change_text_document_params.rb +11 -12
  102. data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +6 -8
  103. data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +0 -3
  104. data/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb +1 -1
  105. data/lib/language_server/protocol/interface/did_change_workspace_folders_params.rb +0 -3
  106. data/lib/language_server/protocol/interface/did_close_notebook_document_params.rb +0 -2
  107. data/lib/language_server/protocol/interface/did_close_text_document_params.rb +0 -3
  108. data/lib/language_server/protocol/interface/did_open_notebook_document_params.rb +0 -2
  109. data/lib/language_server/protocol/interface/did_open_text_document_params.rb +0 -3
  110. data/lib/language_server/protocol/interface/did_save_notebook_document_params.rb +0 -2
  111. data/lib/language_server/protocol/interface/did_save_text_document_params.rb +1 -4
  112. data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +2 -4
  113. data/lib/language_server/protocol/interface/document_color_options.rb +1 -1
  114. data/lib/language_server/protocol/interface/document_color_params.rb +14 -17
  115. data/lib/language_server/protocol/interface/document_color_registration_options.rb +11 -11
  116. data/lib/language_server/protocol/interface/document_diagnostic_params.rb +22 -24
  117. data/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb +1 -3
  118. data/lib/language_server/protocol/interface/document_filter.rb +19 -25
  119. data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +1 -4
  120. data/lib/language_server/protocol/interface/document_formatting_options.rb +1 -4
  121. data/lib/language_server/protocol/interface/document_formatting_params.rb +10 -13
  122. data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +4 -7
  123. data/lib/language_server/protocol/interface/document_highlight.rb +2 -2
  124. data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +1 -4
  125. data/lib/language_server/protocol/interface/document_highlight_options.rb +1 -4
  126. data/lib/language_server/protocol/interface/document_highlight_params.rb +4 -7
  127. data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +4 -7
  128. data/lib/language_server/protocol/interface/document_link.rb +9 -10
  129. data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +2 -7
  130. data/lib/language_server/protocol/interface/document_link_options.rb +8 -11
  131. data/lib/language_server/protocol/interface/document_link_params.rb +14 -17
  132. data/lib/language_server/protocol/interface/document_link_registration_options.rb +11 -14
  133. data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +1 -4
  134. data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +1 -4
  135. data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +0 -3
  136. data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +4 -7
  137. data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +2 -5
  138. data/lib/language_server/protocol/interface/document_range_formatting_options.rb +1 -4
  139. data/lib/language_server/protocol/interface/document_range_formatting_params.rb +10 -13
  140. data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +4 -7
  141. data/lib/language_server/protocol/interface/document_symbol.rb +15 -17
  142. data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +5 -12
  143. data/lib/language_server/protocol/interface/document_symbol_options.rb +8 -13
  144. data/lib/language_server/protocol/interface/document_symbol_params.rb +14 -17
  145. data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +11 -16
  146. data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +1 -4
  147. data/lib/language_server/protocol/interface/execute_command_options.rb +7 -10
  148. data/lib/language_server/protocol/interface/execute_command_params.rb +11 -14
  149. data/lib/language_server/protocol/interface/execute_command_registration_options.rb +8 -8
  150. data/lib/language_server/protocol/interface/execution_summary.rb +2 -2
  151. data/lib/language_server/protocol/interface/file_create.rb +0 -2
  152. data/lib/language_server/protocol/interface/file_delete.rb +0 -2
  153. data/lib/language_server/protocol/interface/file_event.rb +3 -3
  154. data/lib/language_server/protocol/interface/file_operation_filter.rb +3 -5
  155. data/lib/language_server/protocol/interface/file_operation_pattern.rb +10 -8
  156. data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +1 -3
  157. data/lib/language_server/protocol/interface/file_operation_registration_options.rb +0 -2
  158. data/lib/language_server/protocol/interface/file_rename.rb +0 -2
  159. data/lib/language_server/protocol/interface/file_system_watcher.rb +3 -4
  160. data/lib/language_server/protocol/interface/folding_range.rb +23 -19
  161. data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +5 -9
  162. data/lib/language_server/protocol/interface/folding_range_options.rb +1 -1
  163. data/lib/language_server/protocol/interface/folding_range_params.rb +14 -17
  164. data/lib/language_server/protocol/interface/folding_range_registration_options.rb +5 -5
  165. data/lib/language_server/protocol/interface/formatting_options.rb +4 -10
  166. data/lib/language_server/protocol/interface/full_document_diagnostic_report.rb +2 -4
  167. data/lib/language_server/protocol/interface/hover.rb +3 -3
  168. data/lib/language_server/protocol/interface/hover_client_capabilities.rb +5 -4
  169. data/lib/language_server/protocol/interface/hover_options.rb +1 -4
  170. data/lib/language_server/protocol/interface/hover_params.rb +1 -4
  171. data/lib/language_server/protocol/interface/hover_registration_options.rb +4 -7
  172. data/lib/language_server/protocol/interface/{t.rb → hover_result.rb} +8 -2
  173. data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +5 -10
  174. data/lib/language_server/protocol/interface/implementation_options.rb +1 -1
  175. data/lib/language_server/protocol/interface/implementation_params.rb +4 -4
  176. data/lib/language_server/protocol/interface/implementation_registration_options.rb +5 -5
  177. data/lib/language_server/protocol/interface/initialize_error.rb +0 -4
  178. data/lib/language_server/protocol/interface/initialize_params.rb +29 -41
  179. data/lib/language_server/protocol/interface/initialize_result.rb +1 -6
  180. data/lib/language_server/protocol/interface/inlay_hint.rb +13 -9
  181. data/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb +3 -5
  182. data/lib/language_server/protocol/interface/inlay_hint_label_part.rb +3 -5
  183. data/lib/language_server/protocol/interface/inlay_hint_options.rb +8 -10
  184. data/lib/language_server/protocol/interface/inlay_hint_params.rb +11 -13
  185. data/lib/language_server/protocol/interface/inlay_hint_registration_options.rb +12 -14
  186. data/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb +1 -3
  187. data/lib/language_server/protocol/interface/inline_value_client_capabilities.rb +3 -4
  188. data/lib/language_server/protocol/interface/inline_value_context.rb +3 -5
  189. data/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb +7 -5
  190. data/lib/language_server/protocol/interface/inline_value_options.rb +1 -3
  191. data/lib/language_server/protocol/interface/inline_value_params.rb +10 -12
  192. data/lib/language_server/protocol/interface/inline_value_registration_options.rb +5 -7
  193. data/lib/language_server/protocol/interface/inline_value_text.rb +0 -2
  194. data/lib/language_server/protocol/interface/inline_value_variable_lookup.rb +7 -5
  195. data/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb +5 -7
  196. data/lib/language_server/protocol/interface/insert_replace_edit.rb +0 -2
  197. data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +4 -8
  198. data/lib/language_server/protocol/interface/linked_editing_range_options.rb +1 -1
  199. data/lib/language_server/protocol/interface/linked_editing_range_params.rb +1 -1
  200. data/lib/language_server/protocol/interface/linked_editing_range_registration_options.rb +5 -5
  201. data/lib/language_server/protocol/interface/linked_editing_ranges.rb +7 -11
  202. data/lib/language_server/protocol/interface/location.rb +1 -5
  203. data/lib/language_server/protocol/interface/location_link.rb +11 -13
  204. data/lib/language_server/protocol/interface/log_message_params.rb +1 -4
  205. data/lib/language_server/protocol/interface/log_trace_params.rb +8 -1
  206. data/lib/language_server/protocol/interface/markup_content.rb +18 -16
  207. data/lib/language_server/protocol/interface/{lsp_object.rb → message.rb} +8 -6
  208. data/lib/language_server/protocol/interface/moniker.rb +1 -3
  209. data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +5 -9
  210. data/lib/language_server/protocol/interface/moniker_options.rb +1 -1
  211. data/lib/language_server/protocol/interface/moniker_params.rb +4 -4
  212. data/lib/language_server/protocol/interface/moniker_registration_options.rb +4 -4
  213. data/lib/language_server/protocol/interface/notebook_cell.rb +4 -8
  214. data/lib/language_server/protocol/interface/notebook_cell_array_change.rb +4 -6
  215. data/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb +1 -3
  216. data/lib/language_server/protocol/interface/notebook_document.rb +4 -8
  217. data/lib/language_server/protocol/interface/notebook_document_change_event.rb +2 -6
  218. data/lib/language_server/protocol/interface/notebook_document_client_capabilities.rb +0 -4
  219. data/lib/language_server/protocol/interface/notebook_document_filter.rb +32 -11
  220. data/lib/language_server/protocol/interface/notebook_document_identifier.rb +2 -4
  221. data/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb +2 -4
  222. data/lib/language_server/protocol/interface/notebook_document_sync_options.rb +3 -5
  223. data/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb +3 -5
  224. data/lib/language_server/protocol/interface/notification_message.rb +48 -0
  225. data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +18 -17
  226. data/lib/language_server/protocol/interface/parameter_information.rb +9 -7
  227. data/lib/language_server/protocol/interface/partial_result_params.rb +3 -3
  228. data/lib/language_server/protocol/interface/position.rb +6 -40
  229. data/lib/language_server/protocol/interface/prepare_rename_params.rb +1 -1
  230. data/lib/language_server/protocol/interface/previous_result_id.rb +1 -3
  231. data/lib/language_server/protocol/interface/progress_params.rb +1 -1
  232. data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +5 -16
  233. data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +4 -8
  234. data/lib/language_server/protocol/interface/range.rb +0 -13
  235. data/lib/language_server/protocol/interface/reference_client_capabilities.rb +1 -4
  236. data/lib/language_server/protocol/interface/reference_context.rb +0 -4
  237. data/lib/language_server/protocol/interface/reference_options.rb +1 -4
  238. data/lib/language_server/protocol/interface/reference_params.rb +11 -14
  239. data/lib/language_server/protocol/interface/reference_registration_options.rb +4 -7
  240. data/lib/language_server/protocol/interface/registration.rb +2 -2
  241. data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +1 -3
  242. data/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb +16 -20
  243. data/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb +15 -19
  244. data/lib/language_server/protocol/interface/relative_pattern.rb +2 -4
  245. data/lib/language_server/protocol/interface/rename_client_capabilities.rb +7 -12
  246. data/lib/language_server/protocol/interface/rename_file.rb +4 -6
  247. data/lib/language_server/protocol/interface/rename_file_options.rb +2 -2
  248. data/lib/language_server/protocol/interface/rename_files_params.rb +4 -6
  249. data/lib/language_server/protocol/interface/rename_options.rb +8 -13
  250. data/lib/language_server/protocol/interface/rename_params.rb +12 -15
  251. data/lib/language_server/protocol/interface/rename_registration_options.rb +11 -16
  252. data/lib/language_server/protocol/interface/request_message.rb +57 -0
  253. data/lib/language_server/protocol/interface/response_error.rb +52 -0
  254. data/lib/language_server/protocol/interface/response_message.rb +58 -0
  255. data/lib/language_server/protocol/interface/save_options.rb +1 -4
  256. data/lib/language_server/protocol/interface/selection_range.rb +3 -6
  257. data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +5 -4
  258. data/lib/language_server/protocol/interface/selection_range_options.rb +1 -1
  259. data/lib/language_server/protocol/interface/selection_range_params.rb +20 -23
  260. data/lib/language_server/protocol/interface/selection_range_registration_options.rb +5 -5
  261. data/lib/language_server/protocol/interface/semantic_tokens.rb +2 -5
  262. data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +13 -19
  263. data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +3 -5
  264. data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +21 -24
  265. data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +0 -3
  266. data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +3 -6
  267. data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +0 -3
  268. data/lib/language_server/protocol/interface/semantic_tokens_options.rb +9 -12
  269. data/lib/language_server/protocol/interface/semantic_tokens_params.rb +14 -17
  270. data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +1 -4
  271. data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +20 -23
  272. data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +13 -16
  273. data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +2 -5
  274. data/lib/language_server/protocol/interface/server_capabilities.rb +66 -89
  275. data/lib/language_server/protocol/interface/set_trace_params.rb +4 -1
  276. data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +2 -4
  277. data/lib/language_server/protocol/interface/show_document_params.rb +4 -6
  278. data/lib/language_server/protocol/interface/show_document_result.rb +1 -3
  279. data/lib/language_server/protocol/interface/show_message_params.rb +1 -4
  280. data/lib/language_server/protocol/interface/show_message_request_client_capabilities.rb +1 -1
  281. data/lib/language_server/protocol/interface/show_message_request_params.rb +2 -2
  282. data/lib/language_server/protocol/interface/signature_help.rb +6 -5
  283. data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +3 -8
  284. data/lib/language_server/protocol/interface/signature_help_context.rb +11 -10
  285. data/lib/language_server/protocol/interface/signature_help_options.rb +14 -17
  286. data/lib/language_server/protocol/interface/signature_help_params.rb +13 -17
  287. data/lib/language_server/protocol/interface/signature_help_registration_options.rb +17 -20
  288. data/lib/language_server/protocol/interface/signature_information.rb +3 -5
  289. data/lib/language_server/protocol/interface/static_registration_options.rb +2 -3
  290. data/lib/language_server/protocol/interface/symbol_information.rb +29 -33
  291. data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +13 -12
  292. data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +47 -76
  293. data/lib/language_server/protocol/interface/text_document_content_change_event.rb +8 -6
  294. data/lib/language_server/protocol/interface/text_document_edit.rb +1 -10
  295. data/lib/language_server/protocol/interface/text_document_identifier.rb +2 -5
  296. data/lib/language_server/protocol/interface/text_document_item.rb +3 -7
  297. data/lib/language_server/protocol/interface/text_document_position_params.rb +0 -4
  298. data/lib/language_server/protocol/interface/text_document_registration_options.rb +3 -3
  299. data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +4 -7
  300. data/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb +4 -4
  301. data/lib/language_server/protocol/interface/text_document_sync_options.rb +19 -15
  302. data/lib/language_server/protocol/interface/text_edit.rb +0 -3
  303. data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +5 -10
  304. data/lib/language_server/protocol/interface/type_definition_options.rb +1 -1
  305. data/lib/language_server/protocol/interface/type_definition_params.rb +4 -4
  306. data/lib/language_server/protocol/interface/type_definition_registration_options.rb +5 -5
  307. data/lib/language_server/protocol/interface/type_hierarchy_item.rb +4 -7
  308. data/lib/language_server/protocol/interface/type_hierarchy_options.rb +1 -6
  309. data/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb +1 -6
  310. data/lib/language_server/protocol/interface/type_hierarchy_registration_options.rb +5 -10
  311. data/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb +11 -16
  312. data/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb +11 -16
  313. data/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb +1 -3
  314. data/lib/language_server/protocol/interface/unregistration.rb +2 -2
  315. data/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb +3 -5
  316. data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +13 -13
  317. data/lib/language_server/protocol/interface/will_save_text_document_params.rb +1 -1
  318. data/lib/language_server/protocol/interface/work_done_progress_begin.rb +6 -6
  319. data/lib/language_server/protocol/interface/work_done_progress_end.rb +1 -1
  320. data/lib/language_server/protocol/interface/work_done_progress_options.rb +1 -1
  321. data/lib/language_server/protocol/interface/work_done_progress_params.rb +1 -1
  322. data/lib/language_server/protocol/interface/work_done_progress_report.rb +7 -6
  323. data/lib/language_server/protocol/interface/workspace_diagnostic_params.rb +21 -23
  324. data/lib/language_server/protocol/interface/workspace_diagnostic_report.rb +0 -2
  325. data/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb +0 -2
  326. data/lib/language_server/protocol/interface/workspace_edit.rb +17 -28
  327. data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +6 -15
  328. data/lib/language_server/protocol/interface/workspace_folder.rb +1 -4
  329. data/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb +3 -3
  330. data/lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb +22 -24
  331. data/lib/language_server/protocol/interface/workspace_symbol.rb +28 -34
  332. data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +7 -13
  333. data/lib/language_server/protocol/interface/workspace_symbol_options.rb +8 -13
  334. data/lib/language_server/protocol/interface/workspace_symbol_params.rb +16 -16
  335. data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +8 -13
  336. data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb +21 -23
  337. data/lib/language_server/protocol/interface.rb +16 -38
  338. data/lib/language_server/protocol/version.rb +1 -1
  339. metadata +10 -23
  340. data/lib/language_server/protocol/constant/lsp_error_codes.rb +0 -55
  341. data/lib/language_server/protocol/constant/trace_values.rb +0 -20
  342. data/lib/language_server/protocol/interface/base_symbol_information.rb +0 -68
  343. data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb +0 -30
  344. data/lib/language_server/protocol/interface/document_diagnostic_report.rb +0 -77
  345. data/lib/language_server/protocol/interface/file_operation_client_capabilities.rb +0 -95
  346. data/lib/language_server/protocol/interface/file_operation_options.rb +0 -83
  347. data/lib/language_server/protocol/interface/general_client_capabilities.rb +0 -91
  348. data/lib/language_server/protocol/interface/glob_pattern.rb +0 -48
  349. data/lib/language_server/protocol/interface/inline_value.rb +0 -78
  350. data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +0 -59
  351. data/lib/language_server/protocol/interface/prepare_rename_result.rb +0 -60
  352. data/lib/language_server/protocol/interface/resource_operation.rb +0 -47
  353. data/lib/language_server/protocol/interface/text_document_filter.rb +0 -69
  354. data/lib/language_server/protocol/interface/type_hierarchy_client_capabilities.rb +0 -38
  355. data/lib/language_server/protocol/interface/window_client_capabilities.rb +0 -63
  356. data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +0 -176
  357. data/lib/language_server/protocol/interface/workspace_document_diagnostic_report.rb +0 -77
  358. data/lib/language_server/protocol/interface/workspace_folders_initialize_params.rb +0 -39
@@ -1,35 +1,30 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # Provider options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
6
- #
7
4
  class DocumentSymbolOptions
8
- def initialize(label: nil, work_done_progress: nil)
5
+ def initialize(work_done_progress: nil, label: nil)
9
6
  @attributes = {}
10
7
 
11
- @attributes[:label] = label if label
12
8
  @attributes[:workDoneProgress] = work_done_progress if work_done_progress
9
+ @attributes[:label] = label if label
13
10
 
14
11
  @attributes.freeze
15
12
  end
16
13
 
14
+ # @return [boolean]
15
+ def work_done_progress
16
+ attributes.fetch(:workDoneProgress)
17
+ end
18
+
17
19
  #
18
20
  # A human-readable string that is shown when multiple outlines trees
19
21
  # are shown for the same document.
20
22
  #
21
- # @since 3.16.0
22
- #
23
- # @return [string | nil]
23
+ # @return [string]
24
24
  def label
25
25
  attributes.fetch(:label)
26
26
  end
27
27
 
28
- # @return [boolean | nil]
29
- def work_done_progress
30
- attributes.fetch(:workDoneProgress)
31
- end
32
-
33
28
  attr_reader :attributes
34
29
 
35
30
  def to_hash
@@ -1,45 +1,42 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # Parameters for a [DocumentSymbolRequest](#DocumentSymbolRequest).
6
- #
7
4
  class DocumentSymbolParams
8
- def initialize(text_document:, work_done_token: nil, partial_result_token: nil)
5
+ def initialize(work_done_token: nil, partial_result_token: nil, text_document:)
9
6
  @attributes = {}
10
7
 
11
- @attributes[:textDocument] = text_document
12
8
  @attributes[:workDoneToken] = work_done_token if work_done_token
13
9
  @attributes[:partialResultToken] = partial_result_token if partial_result_token
10
+ @attributes[:textDocument] = text_document
14
11
 
15
12
  @attributes.freeze
16
13
  end
17
14
 
18
- #
19
- # The text document.
20
- #
21
- # @return [TextDocumentIdentifier]
22
- def text_document
23
- attributes.fetch(:textDocument)
24
- end
25
-
26
15
  #
27
16
  # An optional token that a server can use to report work done progress.
28
17
  #
29
- # @return [ProgressToken | nil]
18
+ # @return [ProgressToken]
30
19
  def work_done_token
31
20
  attributes.fetch(:workDoneToken)
32
21
  end
33
22
 
34
23
  #
35
- # An optional token that a server can use to report partial results (e.g. streaming) to
36
- # the client.
24
+ # An optional token that a server can use to report partial results (e.g.
25
+ # streaming) to the client.
37
26
  #
38
- # @return [ProgressToken | nil]
27
+ # @return [ProgressToken]
39
28
  def partial_result_token
40
29
  attributes.fetch(:partialResultToken)
41
30
  end
42
31
 
32
+ #
33
+ # The text document.
34
+ #
35
+ # @return [TextDocumentIdentifier]
36
+ def text_document
37
+ attributes.fetch(:textDocument)
38
+ end
39
+
43
40
  attr_reader :attributes
44
41
 
45
42
  def to_hash
@@ -1,45 +1,40 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # Registration options for a [DocumentSymbolRequest](#DocumentSymbolRequest).
6
- #
7
4
  class DocumentSymbolRegistrationOptions
8
- def initialize(document_selector:, label: nil, work_done_progress: nil)
5
+ def initialize(document_selector:, work_done_progress: nil, label: nil)
9
6
  @attributes = {}
10
7
 
11
8
  @attributes[:documentSelector] = document_selector
12
- @attributes[:label] = label if label
13
9
  @attributes[:workDoneProgress] = work_done_progress if work_done_progress
10
+ @attributes[:label] = label if label
14
11
 
15
12
  @attributes.freeze
16
13
  end
17
14
 
18
15
  #
19
- # A document selector to identify the scope of the registration. If set to null
20
- # the document selector provided on the client side will be used.
16
+ # A document selector to identify the scope of the registration. If set to
17
+ # null the document selector provided on the client side will be used.
21
18
  #
22
- # @return [DocumentSelector | null]
19
+ # @return [DocumentSelector]
23
20
  def document_selector
24
21
  attributes.fetch(:documentSelector)
25
22
  end
26
23
 
24
+ # @return [boolean]
25
+ def work_done_progress
26
+ attributes.fetch(:workDoneProgress)
27
+ end
28
+
27
29
  #
28
30
  # A human-readable string that is shown when multiple outlines trees
29
31
  # are shown for the same document.
30
32
  #
31
- # @since 3.16.0
32
- #
33
- # @return [string | nil]
33
+ # @return [string]
34
34
  def label
35
35
  attributes.fetch(:label)
36
36
  end
37
37
 
38
- # @return [boolean | nil]
39
- def work_done_progress
40
- attributes.fetch(:workDoneProgress)
41
- end
42
-
43
38
  attr_reader :attributes
44
39
 
45
40
  def to_hash
@@ -1,9 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # The client capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
6
- #
7
4
  class ExecuteCommandClientCapabilities
8
5
  def initialize(dynamic_registration: nil)
9
6
  @attributes = {}
@@ -16,7 +13,7 @@ module LanguageServer
16
13
  #
17
14
  # Execute command supports dynamic registration.
18
15
  #
19
- # @return [boolean | nil]
16
+ # @return [boolean]
20
17
  def dynamic_registration
21
18
  attributes.fetch(:dynamicRegistration)
22
19
  end
@@ -1,19 +1,21 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # The server capabilities of a [ExecuteCommandRequest](#ExecuteCommandRequest).
6
- #
7
4
  class ExecuteCommandOptions
8
- def initialize(commands:, work_done_progress: nil)
5
+ def initialize(work_done_progress: nil, commands:)
9
6
  @attributes = {}
10
7
 
11
- @attributes[:commands] = commands
12
8
  @attributes[:workDoneProgress] = work_done_progress if work_done_progress
9
+ @attributes[:commands] = commands
13
10
 
14
11
  @attributes.freeze
15
12
  end
16
13
 
14
+ # @return [boolean]
15
+ def work_done_progress
16
+ attributes.fetch(:workDoneProgress)
17
+ end
18
+
17
19
  #
18
20
  # The commands to be executed on the server
19
21
  #
@@ -22,11 +24,6 @@ module LanguageServer
22
24
  attributes.fetch(:commands)
23
25
  end
24
26
 
25
- # @return [boolean | nil]
26
- def work_done_progress
27
- attributes.fetch(:workDoneProgress)
28
- end
29
-
30
27
  attr_reader :attributes
31
28
 
32
29
  def to_hash
@@ -1,20 +1,25 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # The parameters of a [ExecuteCommandRequest](#ExecuteCommandRequest).
6
- #
7
4
  class ExecuteCommandParams
8
- def initialize(command:, arguments: nil, work_done_token: nil)
5
+ def initialize(work_done_token: nil, command:, arguments: nil)
9
6
  @attributes = {}
10
7
 
8
+ @attributes[:workDoneToken] = work_done_token if work_done_token
11
9
  @attributes[:command] = command
12
10
  @attributes[:arguments] = arguments if arguments
13
- @attributes[:workDoneToken] = work_done_token if work_done_token
14
11
 
15
12
  @attributes.freeze
16
13
  end
17
14
 
15
+ #
16
+ # An optional token that a server can use to report work done progress.
17
+ #
18
+ # @return [ProgressToken]
19
+ def work_done_token
20
+ attributes.fetch(:workDoneToken)
21
+ end
22
+
18
23
  #
19
24
  # The identifier of the actual command handler.
20
25
  #
@@ -26,19 +31,11 @@ module LanguageServer
26
31
  #
27
32
  # Arguments that the command should be invoked with.
28
33
  #
29
- # @return [LSPAny[] | nil]
34
+ # @return [LSPAny[]]
30
35
  def arguments
31
36
  attributes.fetch(:arguments)
32
37
  end
33
38
 
34
- #
35
- # An optional token that a server can use to report work done progress.
36
- #
37
- # @return [ProgressToken | nil]
38
- def work_done_token
39
- attributes.fetch(:workDoneToken)
40
- end
41
-
42
39
  attr_reader :attributes
43
40
 
44
41
  def to_hash
@@ -2,18 +2,23 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
4
  #
5
- # Registration options for a [ExecuteCommandRequest](#ExecuteCommandRequest).
5
+ # Execute command registration options.
6
6
  #
7
7
  class ExecuteCommandRegistrationOptions
8
- def initialize(commands:, work_done_progress: nil)
8
+ def initialize(work_done_progress: nil, commands:)
9
9
  @attributes = {}
10
10
 
11
- @attributes[:commands] = commands
12
11
  @attributes[:workDoneProgress] = work_done_progress if work_done_progress
12
+ @attributes[:commands] = commands
13
13
 
14
14
  @attributes.freeze
15
15
  end
16
16
 
17
+ # @return [boolean]
18
+ def work_done_progress
19
+ attributes.fetch(:workDoneProgress)
20
+ end
21
+
17
22
  #
18
23
  # The commands to be executed on the server
19
24
  #
@@ -22,11 +27,6 @@ module LanguageServer
22
27
  attributes.fetch(:commands)
23
28
  end
24
29
 
25
- # @return [boolean | nil]
26
- def work_done_progress
27
- attributes.fetch(:workDoneProgress)
28
- end
29
-
30
30
  attr_reader :attributes
31
31
 
32
32
  def to_hash
@@ -16,7 +16,7 @@ module LanguageServer
16
16
  # indicating the execution order of a cell
17
17
  # inside a notebook.
18
18
  #
19
- # @return [uinteger]
19
+ # @return [number]
20
20
  def execution_order
21
21
  attributes.fetch(:executionOrder)
22
22
  end
@@ -25,7 +25,7 @@ module LanguageServer
25
25
  # Whether the execution was successful or
26
26
  # not if known by the client.
27
27
  #
28
- # @return [boolean | nil]
28
+ # @return [boolean]
29
29
  def success
30
30
  attributes.fetch(:success)
31
31
  end
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # Represents information on a file/folder create.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class FileCreate
10
8
  def initialize(uri:)
11
9
  @attributes = {}
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # Represents information on a file/folder delete.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class FileDelete
10
8
  def initialize(uri:)
11
9
  @attributes = {}
@@ -15,9 +15,9 @@ module LanguageServer
15
15
  end
16
16
 
17
17
  #
18
- # The file's uri.
18
+ # The file's URI.
19
19
  #
20
- # @return [DocumentUri]
20
+ # @return [string]
21
21
  def uri
22
22
  attributes.fetch(:uri)
23
23
  end
@@ -25,7 +25,7 @@ module LanguageServer
25
25
  #
26
26
  # The change type.
27
27
  #
28
- # @return [FileChangeType]
28
+ # @return [number]
29
29
  def type
30
30
  attributes.fetch(:type)
31
31
  end
@@ -3,9 +3,7 @@ module LanguageServer
3
3
  module Interface
4
4
  #
5
5
  # A filter to describe in which file operation requests or notifications
6
- # the server is interested in receiving.
7
- #
8
- # @since 3.16.0
6
+ # the server is interested in.
9
7
  #
10
8
  class FileOperationFilter
11
9
  def initialize(scheme: nil, pattern:)
@@ -18,9 +16,9 @@ module LanguageServer
18
16
  end
19
17
 
20
18
  #
21
- # A Uri scheme like `file` or `untitled`.
19
+ # A Uri like `file` or `untitled`.
22
20
  #
23
- # @return [string | nil]
21
+ # @return [string]
24
22
  def scheme
25
23
  attributes.fetch(:scheme)
26
24
  end
@@ -3,9 +3,7 @@ module LanguageServer
3
3
  module Interface
4
4
  #
5
5
  # A pattern to describe in which file operation requests or notifications
6
- # the server is interested in receiving.
7
- #
8
- # @since 3.16.0
6
+ # the server is interested in.
9
7
  #
10
8
  class FileOperationPattern
11
9
  def initialize(glob:, matches: nil, options: nil)
@@ -23,9 +21,13 @@ module LanguageServer
23
21
  # - `*` to match one or more characters in a path segment
24
22
  # - `?` to match on one character in a path segment
25
23
  # - `**` to match any number of path segments, including none
26
- # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` matches all TypeScript and JavaScript files)
27
- # - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
28
- # - `[!...]` to negate a range of characters to match in a path segment (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but not `example.0`)
24
+ # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}`
25
+ # matches all TypeScript and JavaScript files)
26
+ # - `[]` to declare a range of characters to match in a path segment
27
+ # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
28
+ # - `[!...]` to negate a range of characters to match in a path segment
29
+ # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but
30
+ # not `example.0`)
29
31
  #
30
32
  # @return [string]
31
33
  def glob
@@ -37,7 +39,7 @@ module LanguageServer
37
39
  #
38
40
  # Matches both if undefined.
39
41
  #
40
- # @return [FileOperationPatternKind | nil]
42
+ # @return [FileOperationPatternKind]
41
43
  def matches
42
44
  attributes.fetch(:matches)
43
45
  end
@@ -45,7 +47,7 @@ module LanguageServer
45
47
  #
46
48
  # Additional options used during matching.
47
49
  #
48
- # @return [FileOperationPatternOptions | nil]
50
+ # @return [FileOperationPatternOptions]
49
51
  def options
50
52
  attributes.fetch(:options)
51
53
  end
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # Matching options for the file operation pattern.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class FileOperationPatternOptions
10
8
  def initialize(ignore_case: nil)
11
9
  @attributes = {}
@@ -18,7 +16,7 @@ module LanguageServer
18
16
  #
19
17
  # The pattern should be matched ignoring casing.
20
18
  #
21
- # @return [boolean | nil]
19
+ # @return [boolean]
22
20
  def ignore_case
23
21
  attributes.fetch(:ignoreCase)
24
22
  end
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # The options to register for file operations.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class FileOperationRegistrationOptions
10
8
  def initialize(filters:)
11
9
  @attributes = {}
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # Represents information on a file/folder rename.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class FileRename
10
8
  def initialize(old_uri:, new_uri:)
11
9
  @attributes = {}
@@ -12,9 +12,8 @@ module LanguageServer
12
12
  end
13
13
 
14
14
  #
15
- # The glob pattern to watch. See {@link GlobPattern glob pattern} for more detail.
16
- #
17
- # @since 3.17.0 support for relative patterns.
15
+ # The glob pattern to watch. See {@link GlobPattern glob pattern}
16
+ # for more detail.
18
17
  #
19
18
  # @return [GlobPattern]
20
19
  def glob_pattern
@@ -26,7 +25,7 @@ module LanguageServer
26
25
  # to WatchKind.Create | WatchKind.Change | WatchKind.Delete
27
26
  # which is 7.
28
27
  #
29
- # @return [WatchKind | nil]
28
+ # @return [number]
30
29
  def kind
31
30
  attributes.fetch(:kind)
32
31
  end
@@ -2,8 +2,9 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
4
  #
5
- # Represents a folding range. To be valid, start and end line must be bigger than zero and smaller
6
- # than the number of lines in the document. Clients are free to ignore invalid ranges.
5
+ # Represents a folding range. To be valid, start and end line must be bigger
6
+ # than zero and smaller than the number of lines in the document. Clients
7
+ # are free to ignore invalid ranges.
7
8
  #
8
9
  class FoldingRange
9
10
  def initialize(start_line:, start_character: nil, end_line:, end_character: nil, kind: nil, collapsed_text: nil)
@@ -20,45 +21,50 @@ module LanguageServer
20
21
  end
21
22
 
22
23
  #
23
- # The zero-based start line of the range to fold. The folded area starts after the line's last character.
24
- # To be valid, the end must be zero or larger and smaller than the number of lines in the document.
24
+ # The zero-based start line of the range to fold. The folded area starts
25
+ # after the line's last character. To be valid, the end must be zero or
26
+ # larger and smaller than the number of lines in the document.
25
27
  #
26
- # @return [uinteger]
28
+ # @return [number]
27
29
  def start_line
28
30
  attributes.fetch(:startLine)
29
31
  end
30
32
 
31
33
  #
32
- # The zero-based character offset from where the folded range starts. If not defined, defaults to the length of the start line.
34
+ # The zero-based character offset from where the folded range starts. If
35
+ # not defined, defaults to the length of the start line.
33
36
  #
34
- # @return [uinteger | nil]
37
+ # @return [number]
35
38
  def start_character
36
39
  attributes.fetch(:startCharacter)
37
40
  end
38
41
 
39
42
  #
40
- # The zero-based end line of the range to fold. The folded area ends with the line's last character.
41
- # To be valid, the end must be zero or larger and smaller than the number of lines in the document.
43
+ # The zero-based end line of the range to fold. The folded area ends with
44
+ # the line's last character. To be valid, the end must be zero or larger
45
+ # and smaller than the number of lines in the document.
42
46
  #
43
- # @return [uinteger]
47
+ # @return [number]
44
48
  def end_line
45
49
  attributes.fetch(:endLine)
46
50
  end
47
51
 
48
52
  #
49
- # The zero-based character offset before the folded range ends. If not defined, defaults to the length of the end line.
53
+ # The zero-based character offset before the folded range ends. If not
54
+ # defined, defaults to the length of the end line.
50
55
  #
51
- # @return [uinteger | nil]
56
+ # @return [number]
52
57
  def end_character
53
58
  attributes.fetch(:endCharacter)
54
59
  end
55
60
 
56
61
  #
57
- # Describes the kind of the folding range such as `comment' or 'region'. The kind
58
- # is used to categorize folding ranges and used by commands like 'Fold all comments'.
59
- # See [FoldingRangeKind](#FoldingRangeKind) for an enumeration of standardized kinds.
62
+ # Describes the kind of the folding range such as `comment` or `region`.
63
+ # The kind is used to categorize folding ranges and used by commands like
64
+ # 'Fold all comments'. See [FoldingRangeKind](#FoldingRangeKind) for an
65
+ # enumeration of standardized kinds.
60
66
  #
61
- # @return [FoldingRangeKind | nil]
67
+ # @return [string]
62
68
  def kind
63
69
  attributes.fetch(:kind)
64
70
  end
@@ -68,9 +74,7 @@ module LanguageServer
68
74
  # collapsed. If not defined or not supported by the client, a default
69
75
  # will be chosen by the client.
70
76
  #
71
- # @since 3.17.0
72
- #
73
- # @return [string | nil]
77
+ # @return [string]
74
78
  def collapsed_text
75
79
  attributes.fetch(:collapsedText)
76
80
  end
@@ -20,7 +20,7 @@ module LanguageServer
20
20
  # `FoldingRangeRegistrationOptions` return value for the corresponding
21
21
  # server capability as well.
22
22
  #
23
- # @return [boolean | nil]
23
+ # @return [boolean]
24
24
  def dynamic_registration
25
25
  attributes.fetch(:dynamicRegistration)
26
26
  end
@@ -30,7 +30,7 @@ module LanguageServer
30
30
  # per document. The value serves as a hint, servers are free to follow the
31
31
  # limit.
32
32
  #
33
- # @return [uinteger | nil]
33
+ # @return [number]
34
34
  def range_limit
35
35
  attributes.fetch(:rangeLimit)
36
36
  end
@@ -40,7 +40,7 @@ module LanguageServer
40
40
  # If set, client will ignore specified `startCharacter` and `endCharacter`
41
41
  # properties in a FoldingRange.
42
42
  #
43
- # @return [boolean | nil]
43
+ # @return [boolean]
44
44
  def line_folding_only
45
45
  attributes.fetch(:lineFoldingOnly)
46
46
  end
@@ -48,9 +48,7 @@ module LanguageServer
48
48
  #
49
49
  # Specific options for the folding range kind.
50
50
  #
51
- # @since 3.17.0
52
- #
53
- # @return [{ valueSet:FoldingRangeKind[] } | nil]
51
+ # @return [{ valueSet?: string[]; }]
54
52
  def folding_range_kind
55
53
  attributes.fetch(:foldingRangeKind)
56
54
  end
@@ -58,9 +56,7 @@ module LanguageServer
58
56
  #
59
57
  # Specific options for the folding range.
60
58
  #
61
- # @since 3.17.0
62
- #
63
- # @return [{ collapsedText:boolean } | nil]
59
+ # @return [{ collapsedText?: boolean; }]
64
60
  def folding_range
65
61
  attributes.fetch(:foldingRange)
66
62
  end
@@ -10,7 +10,7 @@ module LanguageServer
10
10
  @attributes.freeze
11
11
  end
12
12
 
13
- # @return [boolean | nil]
13
+ # @return [boolean]
14
14
  def work_done_progress
15
15
  attributes.fetch(:workDoneProgress)
16
16
  end