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,9 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # @since 3.16.0
6
- #
7
4
  class SemanticTokensWorkspaceClientCapabilities
8
5
  def initialize(refresh_support: nil)
9
6
  @attributes = {}
@@ -19,10 +16,10 @@ module LanguageServer
19
16
  #
20
17
  # Note that this event is global and will force the client to refresh all
21
18
  # semantic tokens currently shown. It should be used with absolute care
22
- # and is useful for situation where a server for example detects a project
19
+ # and is useful for situation where a server for example detect a project
23
20
  # wide change that requires such a calculation.
24
21
  #
25
- # @return [boolean | nil]
22
+ # @return [boolean]
26
23
  def refresh_support
27
24
  attributes.fetch(:refreshSupport)
28
25
  end
@@ -1,12 +1,8 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # Defines the capabilities provided by a language
6
- # server.
7
- #
8
4
  class ServerCapabilities
9
- def initialize(position_encoding: nil, text_document_sync: nil, notebook_document_sync: nil, completion_provider: nil, hover_provider: nil, signature_help_provider: nil, declaration_provider: nil, definition_provider: nil, type_definition_provider: nil, implementation_provider: nil, references_provider: nil, document_highlight_provider: nil, document_symbol_provider: nil, code_action_provider: nil, code_lens_provider: nil, document_link_provider: nil, color_provider: nil, workspace_symbol_provider: nil, document_formatting_provider: nil, document_range_formatting_provider: nil, document_on_type_formatting_provider: nil, rename_provider: nil, folding_range_provider: nil, selection_range_provider: nil, execute_command_provider: nil, call_hierarchy_provider: nil, linked_editing_range_provider: nil, semantic_tokens_provider: nil, moniker_provider: nil, type_hierarchy_provider: nil, inline_value_provider: nil, inlay_hint_provider: nil, diagnostic_provider: nil, workspace: nil, experimental: nil)
5
+ def initialize(position_encoding: nil, text_document_sync: nil, notebook_document_sync: nil, completion_provider: nil, hover_provider: nil, signature_help_provider: nil, declaration_provider: nil, definition_provider: nil, type_definition_provider: nil, implementation_provider: nil, references_provider: nil, document_highlight_provider: nil, document_symbol_provider: nil, code_action_provider: nil, code_lens_provider: nil, document_link_provider: nil, color_provider: nil, document_formatting_provider: nil, document_range_formatting_provider: nil, document_on_type_formatting_provider: nil, rename_provider: nil, folding_range_provider: nil, execute_command_provider: nil, selection_range_provider: nil, linked_editing_range_provider: nil, call_hierarchy_provider: nil, semantic_tokens_provider: nil, moniker_provider: nil, type_hierarchy_provider: nil, inline_value_provider: nil, inlay_hint_provider: nil, diagnostic_provider: nil, workspace_symbol_provider: nil, workspace: nil, experimental: nil)
10
6
  @attributes = {}
11
7
 
12
8
  @attributes[:positionEncoding] = position_encoding if position_encoding
@@ -26,22 +22,22 @@ module LanguageServer
26
22
  @attributes[:codeLensProvider] = code_lens_provider if code_lens_provider
27
23
  @attributes[:documentLinkProvider] = document_link_provider if document_link_provider
28
24
  @attributes[:colorProvider] = color_provider if color_provider
29
- @attributes[:workspaceSymbolProvider] = workspace_symbol_provider if workspace_symbol_provider
30
25
  @attributes[:documentFormattingProvider] = document_formatting_provider if document_formatting_provider
31
26
  @attributes[:documentRangeFormattingProvider] = document_range_formatting_provider if document_range_formatting_provider
32
27
  @attributes[:documentOnTypeFormattingProvider] = document_on_type_formatting_provider if document_on_type_formatting_provider
33
28
  @attributes[:renameProvider] = rename_provider if rename_provider
34
29
  @attributes[:foldingRangeProvider] = folding_range_provider if folding_range_provider
35
- @attributes[:selectionRangeProvider] = selection_range_provider if selection_range_provider
36
30
  @attributes[:executeCommandProvider] = execute_command_provider if execute_command_provider
37
- @attributes[:callHierarchyProvider] = call_hierarchy_provider if call_hierarchy_provider
31
+ @attributes[:selectionRangeProvider] = selection_range_provider if selection_range_provider
38
32
  @attributes[:linkedEditingRangeProvider] = linked_editing_range_provider if linked_editing_range_provider
33
+ @attributes[:callHierarchyProvider] = call_hierarchy_provider if call_hierarchy_provider
39
34
  @attributes[:semanticTokensProvider] = semantic_tokens_provider if semantic_tokens_provider
40
35
  @attributes[:monikerProvider] = moniker_provider if moniker_provider
41
36
  @attributes[:typeHierarchyProvider] = type_hierarchy_provider if type_hierarchy_provider
42
37
  @attributes[:inlineValueProvider] = inline_value_provider if inline_value_provider
43
38
  @attributes[:inlayHintProvider] = inlay_hint_provider if inlay_hint_provider
44
39
  @attributes[:diagnosticProvider] = diagnostic_provider if diagnostic_provider
40
+ @attributes[:workspaceSymbolProvider] = workspace_symbol_provider if workspace_symbol_provider
45
41
  @attributes[:workspace] = workspace if workspace
46
42
  @attributes[:experimental] = experimental if experimental
47
43
 
@@ -57,9 +53,7 @@ module LanguageServer
57
53
  #
58
54
  # If omitted it defaults to 'utf-16'.
59
55
  #
60
- # @since 3.17.0
61
- #
62
- # @return [PositionEncodingKind | nil]
56
+ # @return [string]
63
57
  def position_encoding
64
58
  attributes.fetch(:positionEncoding)
65
59
  end
@@ -67,9 +61,10 @@ module LanguageServer
67
61
  #
68
62
  # Defines how text documents are synced. Is either a detailed structure
69
63
  # defining each notification or for backwards compatibility the
70
- # TextDocumentSyncKind number.
64
+ # TextDocumentSyncKind number. If omitted it defaults to
65
+ # `TextDocumentSyncKind.None`.
71
66
  #
72
- # @return [TextDocumentSyncOptions | TextDocumentSyncKind | nil]
67
+ # @return [TextDocumentSyncOptions | TextDocumentSyncKind]
73
68
  def text_document_sync
74
69
  attributes.fetch(:textDocumentSync)
75
70
  end
@@ -77,9 +72,7 @@ module LanguageServer
77
72
  #
78
73
  # Defines how notebook documents are synced.
79
74
  #
80
- # @since 3.17.0
81
- #
82
- # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions | nil]
75
+ # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions]
83
76
  def notebook_document_sync
84
77
  attributes.fetch(:notebookDocumentSync)
85
78
  end
@@ -87,7 +80,7 @@ module LanguageServer
87
80
  #
88
81
  # The server provides completion support.
89
82
  #
90
- # @return [CompletionOptions | nil]
83
+ # @return [CompletionOptions]
91
84
  def completion_provider
92
85
  attributes.fetch(:completionProvider)
93
86
  end
@@ -95,7 +88,7 @@ module LanguageServer
95
88
  #
96
89
  # The server provides hover support.
97
90
  #
98
- # @return [boolean | HoverOptions | nil]
91
+ # @return [boolean | HoverOptions]
99
92
  def hover_provider
100
93
  attributes.fetch(:hoverProvider)
101
94
  end
@@ -103,15 +96,15 @@ module LanguageServer
103
96
  #
104
97
  # The server provides signature help support.
105
98
  #
106
- # @return [SignatureHelpOptions | nil]
99
+ # @return [SignatureHelpOptions]
107
100
  def signature_help_provider
108
101
  attributes.fetch(:signatureHelpProvider)
109
102
  end
110
103
 
111
104
  #
112
- # The server provides Goto Declaration support.
105
+ # The server provides go to declaration support.
113
106
  #
114
- # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions | nil]
107
+ # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions]
115
108
  def declaration_provider
116
109
  attributes.fetch(:declarationProvider)
117
110
  end
@@ -119,23 +112,23 @@ module LanguageServer
119
112
  #
120
113
  # The server provides goto definition support.
121
114
  #
122
- # @return [boolean | DefinitionOptions | nil]
115
+ # @return [boolean | DefinitionOptions]
123
116
  def definition_provider
124
117
  attributes.fetch(:definitionProvider)
125
118
  end
126
119
 
127
120
  #
128
- # The server provides Goto Type Definition support.
121
+ # The server provides goto type definition support.
129
122
  #
130
- # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions | nil]
123
+ # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions]
131
124
  def type_definition_provider
132
125
  attributes.fetch(:typeDefinitionProvider)
133
126
  end
134
127
 
135
128
  #
136
- # The server provides Goto Implementation support.
129
+ # The server provides goto implementation support.
137
130
  #
138
- # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions | nil]
131
+ # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions]
139
132
  def implementation_provider
140
133
  attributes.fetch(:implementationProvider)
141
134
  end
@@ -143,7 +136,7 @@ module LanguageServer
143
136
  #
144
137
  # The server provides find references support.
145
138
  #
146
- # @return [boolean | ReferenceOptions | nil]
139
+ # @return [boolean | ReferenceOptions]
147
140
  def references_provider
148
141
  attributes.fetch(:referencesProvider)
149
142
  end
@@ -151,7 +144,7 @@ module LanguageServer
151
144
  #
152
145
  # The server provides document highlight support.
153
146
  #
154
- # @return [boolean | DocumentHighlightOptions | nil]
147
+ # @return [boolean | DocumentHighlightOptions]
155
148
  def document_highlight_provider
156
149
  attributes.fetch(:documentHighlightProvider)
157
150
  end
@@ -159,17 +152,17 @@ module LanguageServer
159
152
  #
160
153
  # The server provides document symbol support.
161
154
  #
162
- # @return [boolean | DocumentSymbolOptions | nil]
155
+ # @return [boolean | DocumentSymbolOptions]
163
156
  def document_symbol_provider
164
157
  attributes.fetch(:documentSymbolProvider)
165
158
  end
166
159
 
167
160
  #
168
- # The server provides code actions. CodeActionOptions may only be
169
- # specified if the client states that it supports
170
- # `codeActionLiteralSupport` in its initial `initialize` request.
161
+ # The server provides code actions. The `CodeActionOptions` return type is
162
+ # only valid if the client signals code action literal support via the
163
+ # property `textDocument.codeAction.codeActionLiteralSupport`.
171
164
  #
172
- # @return [boolean | CodeActionOptions | nil]
165
+ # @return [boolean | CodeActionOptions]
173
166
  def code_action_provider
174
167
  attributes.fetch(:codeActionProvider)
175
168
  end
@@ -177,7 +170,7 @@ module LanguageServer
177
170
  #
178
171
  # The server provides code lens.
179
172
  #
180
- # @return [CodeLensOptions | nil]
173
+ # @return [CodeLensOptions]
181
174
  def code_lens_provider
182
175
  attributes.fetch(:codeLensProvider)
183
176
  end
@@ -185,7 +178,7 @@ module LanguageServer
185
178
  #
186
179
  # The server provides document link support.
187
180
  #
188
- # @return [DocumentLinkOptions | nil]
181
+ # @return [DocumentLinkOptions]
189
182
  def document_link_provider
190
183
  attributes.fetch(:documentLinkProvider)
191
184
  end
@@ -193,23 +186,15 @@ module LanguageServer
193
186
  #
194
187
  # The server provides color provider support.
195
188
  #
196
- # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions | nil]
189
+ # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions]
197
190
  def color_provider
198
191
  attributes.fetch(:colorProvider)
199
192
  end
200
193
 
201
- #
202
- # The server provides workspace symbol support.
203
- #
204
- # @return [boolean | WorkspaceSymbolOptions | nil]
205
- def workspace_symbol_provider
206
- attributes.fetch(:workspaceSymbolProvider)
207
- end
208
-
209
194
  #
210
195
  # The server provides document formatting.
211
196
  #
212
- # @return [boolean | DocumentFormattingOptions | nil]
197
+ # @return [boolean | DocumentFormattingOptions]
213
198
  def document_formatting_provider
214
199
  attributes.fetch(:documentFormattingProvider)
215
200
  end
@@ -217,7 +202,7 @@ module LanguageServer
217
202
  #
218
203
  # The server provides document range formatting.
219
204
  #
220
- # @return [boolean | DocumentRangeFormattingOptions | nil]
205
+ # @return [boolean | DocumentRangeFormattingOptions]
221
206
  def document_range_formatting_provider
222
207
  attributes.fetch(:documentRangeFormattingProvider)
223
208
  end
@@ -225,7 +210,7 @@ module LanguageServer
225
210
  #
226
211
  # The server provides document formatting on typing.
227
212
  #
228
- # @return [DocumentOnTypeFormattingOptions | nil]
213
+ # @return [DocumentOnTypeFormattingOptions]
229
214
  def document_on_type_formatting_provider
230
215
  attributes.fetch(:documentOnTypeFormattingProvider)
231
216
  end
@@ -235,7 +220,7 @@ module LanguageServer
235
220
  # specified if the client states that it supports
236
221
  # `prepareSupport` in its initial `initialize` request.
237
222
  #
238
- # @return [boolean | RenameOptions | nil]
223
+ # @return [boolean | RenameOptions]
239
224
  def rename_provider
240
225
  attributes.fetch(:renameProvider)
241
226
  end
@@ -243,63 +228,55 @@ module LanguageServer
243
228
  #
244
229
  # The server provides folding provider support.
245
230
  #
246
- # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions | nil]
231
+ # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions]
247
232
  def folding_range_provider
248
233
  attributes.fetch(:foldingRangeProvider)
249
234
  end
250
235
 
251
- #
252
- # The server provides selection range support.
253
- #
254
- # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions | nil]
255
- def selection_range_provider
256
- attributes.fetch(:selectionRangeProvider)
257
- end
258
-
259
236
  #
260
237
  # The server provides execute command support.
261
238
  #
262
- # @return [ExecuteCommandOptions | nil]
239
+ # @return [ExecuteCommandOptions]
263
240
  def execute_command_provider
264
241
  attributes.fetch(:executeCommandProvider)
265
242
  end
266
243
 
267
244
  #
268
- # The server provides call hierarchy support.
269
- #
270
- # @since 3.16.0
245
+ # The server provides selection range support.
271
246
  #
272
- # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions | nil]
273
- def call_hierarchy_provider
274
- attributes.fetch(:callHierarchyProvider)
247
+ # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions]
248
+ def selection_range_provider
249
+ attributes.fetch(:selectionRangeProvider)
275
250
  end
276
251
 
277
252
  #
278
253
  # The server provides linked editing range support.
279
254
  #
280
- # @since 3.16.0
281
- #
282
- # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions | nil]
255
+ # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions]
283
256
  def linked_editing_range_provider
284
257
  attributes.fetch(:linkedEditingRangeProvider)
285
258
  end
286
259
 
287
260
  #
288
- # The server provides semantic tokens support.
261
+ # The server provides call hierarchy support.
289
262
  #
290
- # @since 3.16.0
263
+ # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions]
264
+ def call_hierarchy_provider
265
+ attributes.fetch(:callHierarchyProvider)
266
+ end
267
+
268
+ #
269
+ # The server provides semantic tokens support.
291
270
  #
292
- # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions | nil]
271
+ # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions]
293
272
  def semantic_tokens_provider
294
273
  attributes.fetch(:semanticTokensProvider)
295
274
  end
296
275
 
297
276
  #
298
- # The server provides moniker support.
277
+ # Whether server provides moniker support.
299
278
  #
300
- # @since 3.16.0
301
- #
302
- # @return [boolean | MonikerOptions | MonikerRegistrationOptions | nil]
279
+ # @return [boolean | MonikerOptions | MonikerRegistrationOptions]
303
280
  def moniker_provider
304
281
  attributes.fetch(:monikerProvider)
305
282
  end
@@ -307,9 +284,7 @@ module LanguageServer
307
284
  #
308
285
  # The server provides type hierarchy support.
309
286
  #
310
- # @since 3.17.0
311
- #
312
- # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions | nil]
287
+ # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions]
313
288
  def type_hierarchy_provider
314
289
  attributes.fetch(:typeHierarchyProvider)
315
290
  end
@@ -317,9 +292,7 @@ module LanguageServer
317
292
  #
318
293
  # The server provides inline values.
319
294
  #
320
- # @since 3.17.0
321
- #
322
- # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions | nil]
295
+ # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions]
323
296
  def inline_value_provider
324
297
  attributes.fetch(:inlineValueProvider)
325
298
  end
@@ -327,9 +300,7 @@ module LanguageServer
327
300
  #
328
301
  # The server provides inlay hints.
329
302
  #
330
- # @since 3.17.0
331
- #
332
- # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions | nil]
303
+ # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions]
333
304
  def inlay_hint_provider
334
305
  attributes.fetch(:inlayHintProvider)
335
306
  end
@@ -337,17 +308,23 @@ module LanguageServer
337
308
  #
338
309
  # The server has support for pull model diagnostics.
339
310
  #
340
- # @since 3.17.0
341
- #
342
- # @return [DiagnosticOptions | DiagnosticRegistrationOptions | nil]
311
+ # @return [DiagnosticOptions | DiagnosticRegistrationOptions]
343
312
  def diagnostic_provider
344
313
  attributes.fetch(:diagnosticProvider)
345
314
  end
346
315
 
347
316
  #
348
- # Workspace specific server capabilities.
317
+ # The server provides workspace symbol support.
318
+ #
319
+ # @return [boolean | WorkspaceSymbolOptions]
320
+ def workspace_symbol_provider
321
+ attributes.fetch(:workspaceSymbolProvider)
322
+ end
323
+
324
+ #
325
+ # Workspace specific server capabilities
349
326
  #
350
- # @return [{ workspaceFolders:WorkspaceFoldersServerCapabilities, fileOperations:FileOperationOptions } | nil]
327
+ # @return [{ workspaceFolders?: WorkspaceFoldersServerCapabilities; fileOperations?: { didCreate?: FileOperationRegistrationOptions; ... 4 more ...; willDelete?: FileOperationRegistrationOptions; }; }]
351
328
  def workspace
352
329
  attributes.fetch(:workspace)
353
330
  end
@@ -355,7 +332,7 @@ module LanguageServer
355
332
  #
356
333
  # Experimental server capabilities.
357
334
  #
358
- # @return [T | nil]
335
+ # @return [LSPAny]
359
336
  def experimental
360
337
  attributes.fetch(:experimental)
361
338
  end
@@ -10,7 +10,10 @@ module LanguageServer
10
10
  @attributes.freeze
11
11
  end
12
12
 
13
- # @return [TraceValues]
13
+ #
14
+ # The new value that should be assigned to the trace setting.
15
+ #
16
+ # @return [TraceValue]
14
17
  def value
15
18
  attributes.fetch(:value)
16
19
  end
@@ -2,9 +2,7 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
4
  #
5
- # Client capabilities for the showDocument request.
6
- #
7
- # @since 3.16.0
5
+ # Client capabilities for the show document request.
8
6
  #
9
7
  class ShowDocumentClientCapabilities
10
8
  def initialize(support:)
@@ -16,7 +14,7 @@ module LanguageServer
16
14
  end
17
15
 
18
16
  #
19
- # The client has support for the showDocument
17
+ # The client has support for the show document
20
18
  # request.
21
19
  #
22
20
  # @return [boolean]
@@ -4,8 +4,6 @@ module LanguageServer
4
4
  #
5
5
  # Params to show a document.
6
6
  #
7
- # @since 3.16.0
8
- #
9
7
  class ShowDocumentParams
10
8
  def initialize(uri:, external: nil, take_focus: nil, selection: nil)
11
9
  @attributes = {}
@@ -21,7 +19,7 @@ module LanguageServer
21
19
  #
22
20
  # The document uri to show.
23
21
  #
24
- # @return [URI]
22
+ # @return [string]
25
23
  def uri
26
24
  attributes.fetch(:uri)
27
25
  end
@@ -31,7 +29,7 @@ module LanguageServer
31
29
  # To show for example `https://code.visualstudio.com/`
32
30
  # in the default WEB browser set `external` to `true`.
33
31
  #
34
- # @return [boolean | nil]
32
+ # @return [boolean]
35
33
  def external
36
34
  attributes.fetch(:external)
37
35
  end
@@ -42,7 +40,7 @@ module LanguageServer
42
40
  # Clients might ignore this property if an external
43
41
  # program is started.
44
42
  #
45
- # @return [boolean | nil]
43
+ # @return [boolean]
46
44
  def take_focus
47
45
  attributes.fetch(:takeFocus)
48
46
  end
@@ -53,7 +51,7 @@ module LanguageServer
53
51
  # external program is started or the file is not a text
54
52
  # file.
55
53
  #
56
- # @return [Range | nil]
54
+ # @return [Range]
57
55
  def selection
58
56
  attributes.fetch(:selection)
59
57
  end
@@ -2,9 +2,7 @@ module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
4
  #
5
- # The result of a showDocument request.
6
- #
7
- # @since 3.16.0
5
+ # The result of an show document request.
8
6
  #
9
7
  class ShowDocumentResult
10
8
  def initialize(success:)
@@ -1,9 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # The parameters of a notification message.
6
- #
7
4
  class ShowMessageParams
8
5
  def initialize(type:, message:)
9
6
  @attributes = {}
@@ -15,7 +12,7 @@ module LanguageServer
15
12
  end
16
13
 
17
14
  #
18
- # The message type. See {@link MessageType}
15
+ # The message type. See {@link MessageType}.
19
16
  #
20
17
  # @return [MessageType]
21
18
  def type
@@ -16,7 +16,7 @@ module LanguageServer
16
16
  #
17
17
  # Capabilities specific to the `MessageActionItem` type.
18
18
  #
19
- # @return [{ additionalPropertiesSupport:boolean } | nil]
19
+ # @return [{ additionalPropertiesSupport?: boolean; }]
20
20
  def message_action_item
21
21
  attributes.fetch(:messageActionItem)
22
22
  end
@@ -21,7 +21,7 @@ module LanguageServer
21
21
  end
22
22
 
23
23
  #
24
- # The actual message.
24
+ # The actual message
25
25
  #
26
26
  # @return [string]
27
27
  def message
@@ -31,7 +31,7 @@ module LanguageServer
31
31
  #
32
32
  # The message action items to present.
33
33
  #
34
- # @return [MessageActionItem[] | nil]
34
+ # @return [MessageActionItem[]]
35
35
  def actions
36
36
  attributes.fetch(:actions)
37
37
  end
@@ -18,7 +18,8 @@ module LanguageServer
18
18
  end
19
19
 
20
20
  #
21
- # One or more signatures.
21
+ # One or more signatures. If no signatures are available the signature help
22
+ # request should return `null`.
22
23
  #
23
24
  # @return [SignatureInformation[]]
24
25
  def signatures
@@ -27,8 +28,8 @@ module LanguageServer
27
28
 
28
29
  #
29
30
  # The active signature. If omitted or the value lies outside the
30
- # range of `signatures` the value defaults to zero or is ignored if
31
- # the `SignatureHelp` has no signatures.
31
+ # range of `signatures` the value defaults to zero or is ignore if
32
+ # the `SignatureHelp` as no signatures.
32
33
  #
33
34
  # Whenever possible implementors should make an active decision about
34
35
  # the active signature and shouldn't rely on a default value.
@@ -36,7 +37,7 @@ module LanguageServer
36
37
  # In future version of the protocol this property might become
37
38
  # mandatory to better express this.
38
39
  #
39
- # @return [uinteger | nil]
40
+ # @return [number]
40
41
  def active_signature
41
42
  attributes.fetch(:activeSignature)
42
43
  end
@@ -50,7 +51,7 @@ module LanguageServer
50
51
  # mandatory to better express the active parameter if the
51
52
  # active signature does have any.
52
53
  #
53
- # @return [uinteger | nil]
54
+ # @return [number]
54
55
  def active_parameter
55
56
  attributes.fetch(:activeParameter)
56
57
  end
@@ -1,9 +1,6 @@
1
1
  module LanguageServer
2
2
  module Protocol
3
3
  module Interface
4
- #
5
- # Client Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
6
- #
7
4
  class SignatureHelpClientCapabilities
8
5
  def initialize(dynamic_registration: nil, signature_information: nil, context_support: nil)
9
6
  @attributes = {}
@@ -18,7 +15,7 @@ module LanguageServer
18
15
  #
19
16
  # Whether signature help supports dynamic registration.
20
17
  #
21
- # @return [boolean | nil]
18
+ # @return [boolean]
22
19
  def dynamic_registration
23
20
  attributes.fetch(:dynamicRegistration)
24
21
  end
@@ -27,7 +24,7 @@ module LanguageServer
27
24
  # The client supports the following `SignatureInformation`
28
25
  # specific properties.
29
26
  #
30
- # @return [{ documentationFormat:MarkupKind[], parameterInformation:{ labelOffsetSupport:boolean }, activeParameterSupport:boolean } | nil]
27
+ # @return [{ documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }]
31
28
  def signature_information
32
29
  attributes.fetch(:signatureInformation)
33
30
  end
@@ -38,9 +35,7 @@ module LanguageServer
38
35
  # contextSupport will also support the `retriggerCharacters` on
39
36
  # `SignatureHelpOptions`.
40
37
  #
41
- # @since 3.15.0
42
- #
43
- # @return [boolean | nil]
38
+ # @return [boolean]
44
39
  def context_support
45
40
  attributes.fetch(:contextSupport)
46
41
  end