language_server-protocol 3.17.0.0 → 3.17.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/language_server/protocol/constant/code_action_kind.rb +29 -22
- data/lib/language_server/protocol/constant/code_action_trigger_kind.rb +0 -2
- data/lib/language_server/protocol/constant/completion_item_tag.rb +2 -4
- data/lib/language_server/protocol/constant/completion_trigger_kind.rb +3 -2
- data/lib/language_server/protocol/constant/diagnostic_severity.rb +0 -3
- data/lib/language_server/protocol/constant/diagnostic_tag.rb +2 -4
- data/lib/language_server/protocol/constant/document_diagnostic_report_kind.rb +21 -0
- data/lib/language_server/protocol/constant/error_codes.rb +42 -16
- data/lib/language_server/protocol/constant/failure_handling_kind.rb +10 -9
- data/lib/language_server/protocol/constant/file_change_type.rb +1 -1
- data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +2 -4
- data/lib/language_server/protocol/constant/folding_range_kind.rb +5 -4
- data/lib/language_server/protocol/constant/initialize_error_codes.rb +16 -0
- data/lib/language_server/protocol/constant/inlay_hint_kind.rb +0 -2
- data/lib/language_server/protocol/constant/insert_text_format.rb +0 -2
- data/lib/language_server/protocol/constant/insert_text_mode.rb +0 -2
- data/lib/language_server/protocol/constant/markup_kind.rb +2 -2
- data/lib/language_server/protocol/constant/message_type.rb +0 -3
- data/lib/language_server/protocol/constant/moniker_kind.rb +3 -5
- data/lib/language_server/protocol/constant/notebook_cell_kind.rb +0 -2
- data/lib/language_server/protocol/constant/position_encoding_kind.rb +5 -5
- data/lib/language_server/protocol/constant/prepare_support_default_behavior.rb +1 -1
- data/lib/language_server/protocol/constant/resource_operation_kind.rb +6 -3
- data/lib/language_server/protocol/constant/semantic_token_modifiers.rb +10 -17
- data/lib/language_server/protocol/constant/semantic_token_types.rb +25 -35
- data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +2 -3
- data/lib/language_server/protocol/constant/symbol_tag.rb +0 -2
- data/lib/language_server/protocol/constant/text_document_save_reason.rb +2 -2
- data/lib/language_server/protocol/constant/text_document_sync_kind.rb +3 -3
- data/lib/language_server/protocol/constant/token_format.rb +1 -1
- data/lib/language_server/protocol/constant/uniqueness_level.rb +5 -7
- data/lib/language_server/protocol/constant.rb +6 -4
- data/lib/language_server/protocol/interface/annotated_text_edit.rb +10 -12
- data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +1 -4
- data/lib/language_server/protocol/interface/apply_workspace_edit_result.rb +6 -10
- data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +5 -7
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +0 -5
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +11 -16
- data/lib/language_server/protocol/interface/call_hierarchy_item.rb +9 -13
- data/lib/language_server/protocol/interface/call_hierarchy_options.rb +1 -6
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +2 -8
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +11 -16
- data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +1 -6
- data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +5 -10
- data/lib/language_server/protocol/interface/cancel_params.rb +1 -1
- data/lib/language_server/protocol/interface/change_annotation.rb +2 -4
- data/lib/language_server/protocol/interface/client_capabilities.rb +6 -13
- data/lib/language_server/protocol/interface/code_action.rb +26 -28
- data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +9 -25
- data/lib/language_server/protocol/interface/code_action_context.rb +10 -11
- data/lib/language_server/protocol/interface/code_action_options.rb +11 -16
- data/lib/language_server/protocol/interface/code_action_params.rb +21 -21
- data/lib/language_server/protocol/interface/code_action_registration_options.rb +14 -19
- data/lib/language_server/protocol/interface/code_description.rb +1 -3
- data/lib/language_server/protocol/interface/code_lens.rb +9 -8
- data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/code_lens_options.rb +8 -11
- data/lib/language_server/protocol/interface/code_lens_params.rb +14 -17
- data/lib/language_server/protocol/interface/code_lens_registration_options.rb +11 -14
- data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/color.rb +4 -4
- data/lib/language_server/protocol/interface/color_information.rb +0 -3
- data/lib/language_server/protocol/interface/color_presentation.rb +9 -8
- data/lib/language_server/protocol/interface/color_presentation_params.rb +21 -24
- data/lib/language_server/protocol/interface/command.rb +1 -7
- data/lib/language_server/protocol/interface/completion_client_capabilities.rb +16 -24
- data/lib/language_server/protocol/interface/completion_context.rb +6 -4
- data/lib/language_server/protocol/interface/completion_item.rb +50 -61
- data/lib/language_server/protocol/interface/completion_item_label_details.rb +8 -8
- data/lib/language_server/protocol/interface/completion_list.rb +5 -6
- data/lib/language_server/protocol/interface/completion_options.rb +27 -27
- data/lib/language_server/protocol/interface/completion_params.rb +16 -18
- data/lib/language_server/protocol/interface/completion_registration_options.rb +30 -33
- data/lib/language_server/protocol/interface/configuration_item.rb +2 -2
- data/lib/language_server/protocol/interface/configuration_params.rb +0 -3
- data/lib/language_server/protocol/interface/create_file.rb +4 -6
- data/lib/language_server/protocol/interface/create_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/create_files_params.rb +2 -4
- data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +5 -8
- data/lib/language_server/protocol/interface/declaration_options.rb +1 -1
- data/lib/language_server/protocol/interface/declaration_params.rb +4 -4
- data/lib/language_server/protocol/interface/declaration_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/definition_client_capabilities.rb +2 -7
- data/lib/language_server/protocol/interface/definition_options.rb +1 -4
- data/lib/language_server/protocol/interface/definition_params.rb +4 -7
- data/lib/language_server/protocol/interface/definition_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/delete_file.rb +3 -5
- data/lib/language_server/protocol/interface/delete_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/delete_files_params.rb +2 -4
- data/lib/language_server/protocol/interface/diagnostic.rb +14 -25
- data/lib/language_server/protocol/interface/diagnostic_client_capabilities.rb +7 -7
- data/lib/language_server/protocol/interface/diagnostic_options.rb +8 -10
- data/lib/language_server/protocol/interface/diagnostic_registration_options.rb +12 -14
- data/lib/language_server/protocol/interface/diagnostic_related_information.rb +3 -3
- data/lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb +0 -2
- data/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb +4 -6
- data/lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb +1 -1
- data/lib/language_server/protocol/interface/did_change_configuration_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_change_notebook_document_params.rb +8 -14
- data/lib/language_server/protocol/interface/did_change_text_document_params.rb +11 -12
- data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +6 -8
- data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb +1 -1
- data/lib/language_server/protocol/interface/did_change_workspace_folders_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_close_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_close_text_document_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_open_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_open_text_document_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_save_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_save_text_document_params.rb +1 -4
- data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/document_color_options.rb +1 -1
- data/lib/language_server/protocol/interface/document_color_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_color_registration_options.rb +11 -11
- data/lib/language_server/protocol/interface/document_diagnostic_params.rb +22 -24
- data/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb +1 -3
- data/lib/language_server/protocol/interface/document_filter.rb +19 -25
- data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_formatting_params.rb +10 -13
- data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_highlight.rb +2 -2
- data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_highlight_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_highlight_params.rb +4 -7
- data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_link.rb +9 -10
- data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +2 -7
- data/lib/language_server/protocol/interface/document_link_options.rb +8 -11
- data/lib/language_server/protocol/interface/document_link_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_link_registration_options.rb +11 -14
- data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +0 -3
- data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +2 -5
- data/lib/language_server/protocol/interface/document_range_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_range_formatting_params.rb +10 -13
- data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_symbol.rb +15 -17
- data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +5 -12
- data/lib/language_server/protocol/interface/document_symbol_options.rb +8 -13
- data/lib/language_server/protocol/interface/document_symbol_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +11 -16
- data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/execute_command_options.rb +7 -10
- data/lib/language_server/protocol/interface/execute_command_params.rb +11 -14
- data/lib/language_server/protocol/interface/execute_command_registration_options.rb +8 -8
- data/lib/language_server/protocol/interface/execution_summary.rb +2 -2
- data/lib/language_server/protocol/interface/file_create.rb +0 -2
- data/lib/language_server/protocol/interface/file_delete.rb +0 -2
- data/lib/language_server/protocol/interface/file_event.rb +3 -3
- data/lib/language_server/protocol/interface/file_operation_filter.rb +3 -5
- data/lib/language_server/protocol/interface/file_operation_pattern.rb +10 -8
- data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +1 -3
- data/lib/language_server/protocol/interface/file_operation_registration_options.rb +0 -2
- data/lib/language_server/protocol/interface/file_rename.rb +0 -2
- data/lib/language_server/protocol/interface/file_system_watcher.rb +3 -4
- data/lib/language_server/protocol/interface/folding_range.rb +23 -19
- data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +5 -9
- data/lib/language_server/protocol/interface/folding_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/folding_range_params.rb +14 -17
- data/lib/language_server/protocol/interface/folding_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/formatting_options.rb +4 -10
- data/lib/language_server/protocol/interface/full_document_diagnostic_report.rb +2 -4
- data/lib/language_server/protocol/interface/hover.rb +3 -3
- data/lib/language_server/protocol/interface/hover_client_capabilities.rb +5 -4
- data/lib/language_server/protocol/interface/hover_options.rb +1 -4
- data/lib/language_server/protocol/interface/hover_params.rb +1 -4
- data/lib/language_server/protocol/interface/hover_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/{t.rb → hover_result.rb} +8 -2
- data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +5 -10
- data/lib/language_server/protocol/interface/implementation_options.rb +1 -1
- data/lib/language_server/protocol/interface/implementation_params.rb +4 -4
- data/lib/language_server/protocol/interface/implementation_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/initialize_error.rb +0 -4
- data/lib/language_server/protocol/interface/initialize_params.rb +29 -41
- data/lib/language_server/protocol/interface/initialize_result.rb +1 -6
- data/lib/language_server/protocol/interface/inlay_hint.rb +13 -9
- data/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb +3 -5
- data/lib/language_server/protocol/interface/inlay_hint_label_part.rb +3 -5
- data/lib/language_server/protocol/interface/inlay_hint_options.rb +8 -10
- data/lib/language_server/protocol/interface/inlay_hint_params.rb +11 -13
- data/lib/language_server/protocol/interface/inlay_hint_registration_options.rb +12 -14
- data/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb +1 -3
- data/lib/language_server/protocol/interface/inline_value_client_capabilities.rb +3 -4
- data/lib/language_server/protocol/interface/inline_value_context.rb +3 -5
- data/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb +7 -5
- data/lib/language_server/protocol/interface/inline_value_options.rb +1 -3
- data/lib/language_server/protocol/interface/inline_value_params.rb +10 -12
- data/lib/language_server/protocol/interface/inline_value_registration_options.rb +5 -7
- data/lib/language_server/protocol/interface/inline_value_text.rb +0 -2
- data/lib/language_server/protocol/interface/inline_value_variable_lookup.rb +7 -5
- data/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb +5 -7
- data/lib/language_server/protocol/interface/insert_replace_edit.rb +0 -2
- data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +4 -8
- data/lib/language_server/protocol/interface/linked_editing_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/linked_editing_range_params.rb +1 -1
- data/lib/language_server/protocol/interface/linked_editing_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/linked_editing_ranges.rb +7 -11
- data/lib/language_server/protocol/interface/location.rb +1 -5
- data/lib/language_server/protocol/interface/location_link.rb +11 -13
- data/lib/language_server/protocol/interface/log_message_params.rb +1 -4
- data/lib/language_server/protocol/interface/log_trace_params.rb +8 -1
- data/lib/language_server/protocol/interface/markup_content.rb +18 -16
- data/lib/language_server/protocol/interface/{lsp_object.rb → message.rb} +8 -6
- data/lib/language_server/protocol/interface/moniker.rb +1 -3
- data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +5 -9
- data/lib/language_server/protocol/interface/moniker_options.rb +1 -1
- data/lib/language_server/protocol/interface/moniker_params.rb +4 -4
- data/lib/language_server/protocol/interface/moniker_registration_options.rb +4 -4
- data/lib/language_server/protocol/interface/notebook_cell.rb +4 -8
- data/lib/language_server/protocol/interface/notebook_cell_array_change.rb +4 -6
- data/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb +1 -3
- data/lib/language_server/protocol/interface/notebook_document.rb +4 -8
- data/lib/language_server/protocol/interface/notebook_document_change_event.rb +2 -6
- data/lib/language_server/protocol/interface/notebook_document_client_capabilities.rb +0 -4
- data/lib/language_server/protocol/interface/notebook_document_filter.rb +32 -11
- data/lib/language_server/protocol/interface/notebook_document_identifier.rb +2 -4
- data/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/notebook_document_sync_options.rb +3 -5
- data/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb +3 -5
- data/lib/language_server/protocol/interface/notification_message.rb +48 -0
- data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +18 -17
- data/lib/language_server/protocol/interface/parameter_information.rb +9 -7
- data/lib/language_server/protocol/interface/partial_result_params.rb +3 -3
- data/lib/language_server/protocol/interface/position.rb +6 -40
- data/lib/language_server/protocol/interface/prepare_rename_params.rb +1 -1
- data/lib/language_server/protocol/interface/previous_result_id.rb +1 -3
- data/lib/language_server/protocol/interface/progress_params.rb +1 -1
- data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +5 -16
- data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +4 -8
- data/lib/language_server/protocol/interface/range.rb +0 -13
- data/lib/language_server/protocol/interface/reference_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/reference_context.rb +0 -4
- data/lib/language_server/protocol/interface/reference_options.rb +1 -4
- data/lib/language_server/protocol/interface/reference_params.rb +11 -14
- data/lib/language_server/protocol/interface/reference_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/registration.rb +2 -2
- data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +1 -3
- data/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb +16 -20
- data/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb +15 -19
- data/lib/language_server/protocol/interface/relative_pattern.rb +2 -4
- data/lib/language_server/protocol/interface/rename_client_capabilities.rb +7 -12
- data/lib/language_server/protocol/interface/rename_file.rb +4 -6
- data/lib/language_server/protocol/interface/rename_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/rename_files_params.rb +4 -6
- data/lib/language_server/protocol/interface/rename_options.rb +8 -13
- data/lib/language_server/protocol/interface/rename_params.rb +12 -15
- data/lib/language_server/protocol/interface/rename_registration_options.rb +11 -16
- data/lib/language_server/protocol/interface/request_message.rb +57 -0
- data/lib/language_server/protocol/interface/response_error.rb +52 -0
- data/lib/language_server/protocol/interface/response_message.rb +58 -0
- data/lib/language_server/protocol/interface/save_options.rb +1 -4
- data/lib/language_server/protocol/interface/selection_range.rb +3 -6
- data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +5 -4
- data/lib/language_server/protocol/interface/selection_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/selection_range_params.rb +20 -23
- data/lib/language_server/protocol/interface/selection_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/semantic_tokens.rb +2 -5
- data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +13 -19
- data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +3 -5
- data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +21 -24
- data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +0 -3
- data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +3 -6
- data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +0 -3
- data/lib/language_server/protocol/interface/semantic_tokens_options.rb +9 -12
- data/lib/language_server/protocol/interface/semantic_tokens_params.rb +14 -17
- data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +1 -4
- data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +20 -23
- data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +13 -16
- data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +2 -5
- data/lib/language_server/protocol/interface/server_capabilities.rb +66 -89
- data/lib/language_server/protocol/interface/set_trace_params.rb +4 -1
- data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/show_document_params.rb +4 -6
- data/lib/language_server/protocol/interface/show_document_result.rb +1 -3
- data/lib/language_server/protocol/interface/show_message_params.rb +1 -4
- data/lib/language_server/protocol/interface/show_message_request_client_capabilities.rb +1 -1
- data/lib/language_server/protocol/interface/show_message_request_params.rb +2 -2
- data/lib/language_server/protocol/interface/signature_help.rb +6 -5
- data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +3 -8
- data/lib/language_server/protocol/interface/signature_help_context.rb +11 -10
- data/lib/language_server/protocol/interface/signature_help_options.rb +14 -17
- data/lib/language_server/protocol/interface/signature_help_params.rb +13 -17
- data/lib/language_server/protocol/interface/signature_help_registration_options.rb +17 -20
- data/lib/language_server/protocol/interface/signature_information.rb +3 -5
- data/lib/language_server/protocol/interface/static_registration_options.rb +2 -3
- data/lib/language_server/protocol/interface/symbol_information.rb +29 -33
- data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +13 -12
- data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +47 -76
- data/lib/language_server/protocol/interface/text_document_content_change_event.rb +8 -6
- data/lib/language_server/protocol/interface/text_document_edit.rb +1 -10
- data/lib/language_server/protocol/interface/text_document_identifier.rb +2 -5
- data/lib/language_server/protocol/interface/text_document_item.rb +3 -7
- data/lib/language_server/protocol/interface/text_document_position_params.rb +0 -4
- data/lib/language_server/protocol/interface/text_document_registration_options.rb +3 -3
- data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb +4 -4
- data/lib/language_server/protocol/interface/text_document_sync_options.rb +19 -15
- data/lib/language_server/protocol/interface/text_edit.rb +0 -3
- data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +5 -10
- data/lib/language_server/protocol/interface/type_definition_options.rb +1 -1
- data/lib/language_server/protocol/interface/type_definition_params.rb +4 -4
- data/lib/language_server/protocol/interface/type_definition_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/type_hierarchy_item.rb +4 -7
- data/lib/language_server/protocol/interface/type_hierarchy_options.rb +1 -6
- data/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb +1 -6
- data/lib/language_server/protocol/interface/type_hierarchy_registration_options.rb +5 -10
- data/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb +11 -16
- data/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb +11 -16
- data/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb +1 -3
- data/lib/language_server/protocol/interface/unregistration.rb +2 -2
- data/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb +3 -5
- data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +13 -13
- data/lib/language_server/protocol/interface/will_save_text_document_params.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_begin.rb +6 -6
- data/lib/language_server/protocol/interface/work_done_progress_end.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_options.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_params.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_report.rb +7 -6
- data/lib/language_server/protocol/interface/workspace_diagnostic_params.rb +21 -23
- data/lib/language_server/protocol/interface/workspace_diagnostic_report.rb +0 -2
- data/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb +0 -2
- data/lib/language_server/protocol/interface/workspace_edit.rb +17 -28
- data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +6 -15
- data/lib/language_server/protocol/interface/workspace_folder.rb +1 -4
- data/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb +3 -3
- data/lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb +22 -24
- data/lib/language_server/protocol/interface/workspace_symbol.rb +28 -34
- data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +7 -13
- data/lib/language_server/protocol/interface/workspace_symbol_options.rb +8 -13
- data/lib/language_server/protocol/interface/workspace_symbol_params.rb +16 -16
- data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +8 -13
- data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb +21 -23
- data/lib/language_server/protocol/interface.rb +16 -38
- data/lib/language_server/protocol/version.rb +1 -1
- metadata +11 -24
- data/lib/language_server/protocol/constant/lsp_error_codes.rb +0 -55
- data/lib/language_server/protocol/constant/trace_values.rb +0 -20
- data/lib/language_server/protocol/interface/base_symbol_information.rb +0 -68
- data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb +0 -30
- data/lib/language_server/protocol/interface/document_diagnostic_report.rb +0 -77
- data/lib/language_server/protocol/interface/file_operation_client_capabilities.rb +0 -95
- data/lib/language_server/protocol/interface/file_operation_options.rb +0 -83
- data/lib/language_server/protocol/interface/general_client_capabilities.rb +0 -91
- data/lib/language_server/protocol/interface/glob_pattern.rb +0 -48
- data/lib/language_server/protocol/interface/inline_value.rb +0 -78
- data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +0 -59
- data/lib/language_server/protocol/interface/prepare_rename_result.rb +0 -60
- data/lib/language_server/protocol/interface/resource_operation.rb +0 -47
- data/lib/language_server/protocol/interface/text_document_filter.rb +0 -69
- data/lib/language_server/protocol/interface/type_hierarchy_client_capabilities.rb +0 -38
- data/lib/language_server/protocol/interface/window_client_capabilities.rb +0 -63
- data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +0 -176
- data/lib/language_server/protocol/interface/workspace_document_diagnostic_report.rb +0 -77
- data/lib/language_server/protocol/interface/workspace_folders_initialize_params.rb +0 -39
@@ -2,9 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# Additional information about the context in which a signature help request
|
6
|
-
#
|
7
|
-
# @since 3.15.0
|
5
|
+
# Additional information about the context in which a signature help request
|
6
|
+
# was triggered.
|
8
7
|
#
|
9
8
|
class SignatureHelpContext
|
10
9
|
def initialize(trigger_kind:, trigger_character: nil, is_retrigger:, active_signature_help: nil)
|
@@ -29,9 +28,10 @@ module LanguageServer
|
|
29
28
|
#
|
30
29
|
# Character that caused signature help to be triggered.
|
31
30
|
#
|
32
|
-
# This is undefined when
|
31
|
+
# This is undefined when triggerKind !==
|
32
|
+
# SignatureHelpTriggerKind.TriggerCharacter
|
33
33
|
#
|
34
|
-
# @return [string
|
34
|
+
# @return [string]
|
35
35
|
def trigger_character
|
36
36
|
attributes.fetch(:triggerCharacter)
|
37
37
|
end
|
@@ -39,8 +39,9 @@ module LanguageServer
|
|
39
39
|
#
|
40
40
|
# `true` if signature help was already showing when it was triggered.
|
41
41
|
#
|
42
|
-
# Retriggers
|
43
|
-
# typing a trigger character, a cursor move, or
|
42
|
+
# Retriggers occur when the signature help is already active and can be
|
43
|
+
# caused by actions such as typing a trigger character, a cursor move, or
|
44
|
+
# document content changes.
|
44
45
|
#
|
45
46
|
# @return [boolean]
|
46
47
|
def is_retrigger
|
@@ -50,10 +51,10 @@ module LanguageServer
|
|
50
51
|
#
|
51
52
|
# The currently active `SignatureHelp`.
|
52
53
|
#
|
53
|
-
# The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field
|
54
|
-
# the user navigating through available signatures.
|
54
|
+
# The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field
|
55
|
+
# updated based on the user navigating through available signatures.
|
55
56
|
#
|
56
|
-
# @return [SignatureHelp
|
57
|
+
# @return [SignatureHelp]
|
57
58
|
def active_signature_help
|
58
59
|
attributes.fetch(:activeSignatureHelp)
|
59
60
|
end
|
@@ -1,24 +1,27 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Server Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
|
6
|
-
#
|
7
4
|
class SignatureHelpOptions
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
8
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
11
9
|
@attributes[:triggerCharacters] = trigger_characters if trigger_characters
|
12
10
|
@attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters
|
13
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
14
11
|
|
15
12
|
@attributes.freeze
|
16
13
|
end
|
17
14
|
|
15
|
+
# @return [boolean]
|
16
|
+
def work_done_progress
|
17
|
+
attributes.fetch(:workDoneProgress)
|
18
|
+
end
|
19
|
+
|
18
20
|
#
|
19
|
-
#
|
21
|
+
# The characters that trigger signature help
|
22
|
+
# automatically.
|
20
23
|
#
|
21
|
-
# @return [string[]
|
24
|
+
# @return [string[]]
|
22
25
|
def trigger_characters
|
23
26
|
attributes.fetch(:triggerCharacters)
|
24
27
|
end
|
@@ -26,21 +29,15 @@ module LanguageServer
|
|
26
29
|
#
|
27
30
|
# List of characters that re-trigger signature help.
|
28
31
|
#
|
29
|
-
# These trigger characters are only active when signature help is already
|
30
|
-
# are also counted as re-trigger
|
32
|
+
# These trigger characters are only active when signature help is already
|
33
|
+
# showing. All trigger characters are also counted as re-trigger
|
34
|
+
# characters.
|
31
35
|
#
|
32
|
-
# @
|
33
|
-
#
|
34
|
-
# @return [string[] | nil]
|
36
|
+
# @return [string[]]
|
35
37
|
def retrigger_characters
|
36
38
|
attributes.fetch(:retriggerCharacters)
|
37
39
|
end
|
38
40
|
|
39
|
-
# @return [boolean | nil]
|
40
|
-
def work_done_progress
|
41
|
-
attributes.fetch(:workDoneProgress)
|
42
|
-
end
|
43
|
-
|
44
41
|
attr_reader :attributes
|
45
42
|
|
46
43
|
def to_hash
|
@@ -1,32 +1,18 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Parameters for a [SignatureHelpRequest](#SignatureHelpRequest).
|
6
|
-
#
|
7
4
|
class SignatureHelpParams
|
8
|
-
def initialize(
|
5
|
+
def initialize(text_document:, position:, work_done_token: nil, context: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:context] = context if context
|
12
8
|
@attributes[:textDocument] = text_document
|
13
9
|
@attributes[:position] = position
|
14
10
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
11
|
+
@attributes[:context] = context if context
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
19
|
-
#
|
20
|
-
# The signature help context. This is only available if the client specifies
|
21
|
-
# to send this using the client capability `textDocument.signatureHelp.contextSupport === true`
|
22
|
-
#
|
23
|
-
# @since 3.15.0
|
24
|
-
#
|
25
|
-
# @return [SignatureHelpContext | nil]
|
26
|
-
def context
|
27
|
-
attributes.fetch(:context)
|
28
|
-
end
|
29
|
-
|
30
16
|
#
|
31
17
|
# The text document.
|
32
18
|
#
|
@@ -46,11 +32,21 @@ module LanguageServer
|
|
46
32
|
#
|
47
33
|
# An optional token that a server can use to report work done progress.
|
48
34
|
#
|
49
|
-
# @return [ProgressToken
|
35
|
+
# @return [ProgressToken]
|
50
36
|
def work_done_token
|
51
37
|
attributes.fetch(:workDoneToken)
|
52
38
|
end
|
53
39
|
|
40
|
+
#
|
41
|
+
# The signature help context. This is only available if the client
|
42
|
+
# specifies to send this using the client capability
|
43
|
+
# `textDocument.signatureHelp.contextSupport === true`
|
44
|
+
#
|
45
|
+
# @return [SignatureHelpContext]
|
46
|
+
def context
|
47
|
+
attributes.fetch(:context)
|
48
|
+
end
|
49
|
+
|
54
50
|
attr_reader :attributes
|
55
51
|
|
56
52
|
def to_hash
|
@@ -1,34 +1,37 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [SignatureHelpRequest](#SignatureHelpRequest).
|
6
|
-
#
|
7
4
|
class SignatureHelpRegistrationOptions
|
8
|
-
def initialize(document_selector:,
|
5
|
+
def initialize(document_selector:, work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
8
|
@attributes[:documentSelector] = document_selector
|
9
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
12
10
|
@attributes[:triggerCharacters] = trigger_characters if trigger_characters
|
13
11
|
@attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters
|
14
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
19
16
|
#
|
20
|
-
# A document selector to identify the scope of the registration. If set to
|
21
|
-
# the document selector provided on the client side will be used.
|
17
|
+
# A document selector to identify the scope of the registration. If set to
|
18
|
+
# null the document selector provided on the client side will be used.
|
22
19
|
#
|
23
|
-
# @return [DocumentSelector
|
20
|
+
# @return [DocumentSelector]
|
24
21
|
def document_selector
|
25
22
|
attributes.fetch(:documentSelector)
|
26
23
|
end
|
27
24
|
|
25
|
+
# @return [boolean]
|
26
|
+
def work_done_progress
|
27
|
+
attributes.fetch(:workDoneProgress)
|
28
|
+
end
|
29
|
+
|
28
30
|
#
|
29
|
-
#
|
31
|
+
# The characters that trigger signature help
|
32
|
+
# automatically.
|
30
33
|
#
|
31
|
-
# @return [string[]
|
34
|
+
# @return [string[]]
|
32
35
|
def trigger_characters
|
33
36
|
attributes.fetch(:triggerCharacters)
|
34
37
|
end
|
@@ -36,21 +39,15 @@ module LanguageServer
|
|
36
39
|
#
|
37
40
|
# List of characters that re-trigger signature help.
|
38
41
|
#
|
39
|
-
# These trigger characters are only active when signature help is already
|
40
|
-
# are also counted as re-trigger
|
42
|
+
# These trigger characters are only active when signature help is already
|
43
|
+
# showing. All trigger characters are also counted as re-trigger
|
44
|
+
# characters.
|
41
45
|
#
|
42
|
-
# @
|
43
|
-
#
|
44
|
-
# @return [string[] | nil]
|
46
|
+
# @return [string[]]
|
45
47
|
def retrigger_characters
|
46
48
|
attributes.fetch(:retriggerCharacters)
|
47
49
|
end
|
48
50
|
|
49
|
-
# @return [boolean | nil]
|
50
|
-
def work_done_progress
|
51
|
-
attributes.fetch(:workDoneProgress)
|
52
|
-
end
|
53
|
-
|
54
51
|
attr_reader :attributes
|
55
52
|
|
56
53
|
def to_hash
|
@@ -31,7 +31,7 @@ module LanguageServer
|
|
31
31
|
# The human-readable doc-comment of this signature. Will be shown
|
32
32
|
# in the UI but can be omitted.
|
33
33
|
#
|
34
|
-
# @return [string | MarkupContent
|
34
|
+
# @return [string | MarkupContent]
|
35
35
|
def documentation
|
36
36
|
attributes.fetch(:documentation)
|
37
37
|
end
|
@@ -39,7 +39,7 @@ module LanguageServer
|
|
39
39
|
#
|
40
40
|
# The parameters of this signature.
|
41
41
|
#
|
42
|
-
# @return [ParameterInformation[]
|
42
|
+
# @return [ParameterInformation[]]
|
43
43
|
def parameters
|
44
44
|
attributes.fetch(:parameters)
|
45
45
|
end
|
@@ -49,9 +49,7 @@ module LanguageServer
|
|
49
49
|
#
|
50
50
|
# If provided, this is used in place of `SignatureHelp.activeParameter`.
|
51
51
|
#
|
52
|
-
# @
|
53
|
-
#
|
54
|
-
# @return [uinteger | nil]
|
52
|
+
# @return [number]
|
55
53
|
def active_parameter
|
56
54
|
attributes.fetch(:activeParameter)
|
57
55
|
end
|
@@ -2,8 +2,7 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# Static registration options to be returned in the initialize
|
6
|
-
# request.
|
5
|
+
# Static registration options to be returned in the initialize request.
|
7
6
|
#
|
8
7
|
class StaticRegistrationOptions
|
9
8
|
def initialize(id: nil)
|
@@ -18,7 +17,7 @@ module LanguageServer
|
|
18
17
|
# The id used to register the request. The id can be used to deregister
|
19
18
|
# the request again. See also Registration#id.
|
20
19
|
#
|
21
|
-
# @return [string
|
20
|
+
# @return [string]
|
22
21
|
def id
|
23
22
|
attributes.fetch(:id)
|
24
23
|
end
|
@@ -6,45 +6,19 @@ module LanguageServer
|
|
6
6
|
# interfaces etc.
|
7
7
|
#
|
8
8
|
class SymbolInformation
|
9
|
-
def initialize(
|
9
|
+
def initialize(name:, kind:, tags: nil, deprecated: nil, location:, container_name: nil)
|
10
10
|
@attributes = {}
|
11
11
|
|
12
|
-
@attributes[:deprecated] = deprecated if deprecated
|
13
|
-
@attributes[:location] = location
|
14
12
|
@attributes[:name] = name
|
15
13
|
@attributes[:kind] = kind
|
16
14
|
@attributes[:tags] = tags if tags
|
15
|
+
@attributes[:deprecated] = deprecated if deprecated
|
16
|
+
@attributes[:location] = location
|
17
17
|
@attributes[:containerName] = container_name if container_name
|
18
18
|
|
19
19
|
@attributes.freeze
|
20
20
|
end
|
21
21
|
|
22
|
-
#
|
23
|
-
# Indicates if this symbol is deprecated.
|
24
|
-
#
|
25
|
-
# @deprecated Use tags instead
|
26
|
-
#
|
27
|
-
# @return [boolean | nil]
|
28
|
-
def deprecated
|
29
|
-
attributes.fetch(:deprecated)
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# The location of this symbol. The location's range is used by a tool
|
34
|
-
# to reveal the location in the editor. If the symbol is selected in the
|
35
|
-
# tool the range's start information is used to position the cursor. So
|
36
|
-
# the range usually spans more than the actual symbol's name and does
|
37
|
-
# normally include things like visibility modifiers.
|
38
|
-
#
|
39
|
-
# The range doesn't have to denote a node range in the sense of an abstract
|
40
|
-
# syntax tree. It can therefore not be used to re-construct a hierarchy of
|
41
|
-
# the symbols.
|
42
|
-
#
|
43
|
-
# @return [Location]
|
44
|
-
def location
|
45
|
-
attributes.fetch(:location)
|
46
|
-
end
|
47
|
-
|
48
22
|
#
|
49
23
|
# The name of this symbol.
|
50
24
|
#
|
@@ -64,20 +38,42 @@ module LanguageServer
|
|
64
38
|
#
|
65
39
|
# Tags for this symbol.
|
66
40
|
#
|
67
|
-
# @
|
68
|
-
#
|
69
|
-
# @return [SymbolTag[] | nil]
|
41
|
+
# @return [1[]]
|
70
42
|
def tags
|
71
43
|
attributes.fetch(:tags)
|
72
44
|
end
|
73
45
|
|
46
|
+
#
|
47
|
+
# Indicates if this symbol is deprecated.
|
48
|
+
#
|
49
|
+
# @return [boolean]
|
50
|
+
def deprecated
|
51
|
+
attributes.fetch(:deprecated)
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# The location of this symbol. The location's range is used by a tool
|
56
|
+
# to reveal the location in the editor. If the symbol is selected in the
|
57
|
+
# tool the range's start information is used to position the cursor. So
|
58
|
+
# the range usually spans more then the actual symbol's name and does
|
59
|
+
# normally include things like visibility modifiers.
|
60
|
+
#
|
61
|
+
# The range doesn't have to denote a node range in the sense of a abstract
|
62
|
+
# syntax tree. It can therefore not be used to re-construct a hierarchy of
|
63
|
+
# the symbols.
|
64
|
+
#
|
65
|
+
# @return [Location]
|
66
|
+
def location
|
67
|
+
attributes.fetch(:location)
|
68
|
+
end
|
69
|
+
|
74
70
|
#
|
75
71
|
# The name of the symbol containing this symbol. This information is for
|
76
72
|
# user interface purposes (e.g. to render a qualifier in the user interface
|
77
73
|
# if necessary). It can't be used to re-infer a hierarchy for the document
|
78
74
|
# symbols.
|
79
75
|
#
|
80
|
-
# @return [string
|
76
|
+
# @return [string]
|
81
77
|
def container_name
|
82
78
|
attributes.fetch(:containerName)
|
83
79
|
end
|
@@ -2,33 +2,34 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# Describe options to be used when
|
5
|
+
# Describe options to be used when registering for text document change events.
|
6
6
|
#
|
7
7
|
class TextDocumentChangeRegistrationOptions
|
8
|
-
def initialize(
|
8
|
+
def initialize(document_selector:, sync_kind:)
|
9
9
|
@attributes = {}
|
10
10
|
|
11
|
-
@attributes[:syncKind] = sync_kind
|
12
11
|
@attributes[:documentSelector] = document_selector
|
12
|
+
@attributes[:syncKind] = sync_kind
|
13
13
|
|
14
14
|
@attributes.freeze
|
15
15
|
end
|
16
16
|
|
17
17
|
#
|
18
|
-
#
|
18
|
+
# A document selector to identify the scope of the registration. If set to
|
19
|
+
# null the document selector provided on the client side will be used.
|
19
20
|
#
|
20
|
-
# @return [
|
21
|
-
def
|
22
|
-
attributes.fetch(:
|
21
|
+
# @return [DocumentSelector]
|
22
|
+
def document_selector
|
23
|
+
attributes.fetch(:documentSelector)
|
23
24
|
end
|
24
25
|
|
25
26
|
#
|
26
|
-
#
|
27
|
-
#
|
27
|
+
# How documents are synced to the server. See TextDocumentSyncKind.Full
|
28
|
+
# and TextDocumentSyncKind.Incremental.
|
28
29
|
#
|
29
|
-
# @return [
|
30
|
-
def
|
31
|
-
attributes.fetch(:
|
30
|
+
# @return [TextDocumentSyncKind]
|
31
|
+
def sync_kind
|
32
|
+
attributes.fetch(:syncKind)
|
32
33
|
end
|
33
34
|
|
34
35
|
attr_reader :attributes
|