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.
- 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 +26 -27
- data/lib/language_server/protocol/interface/completion_params.rb +16 -18
- data/lib/language_server/protocol/interface/completion_registration_options.rb +29 -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 +10 -23
- 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
@@ -1,44 +1,34 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
|
-
#
|
5
|
-
# A set of predefined token types. This set is not fixed
|
6
|
-
# an clients can specify additional token types via the
|
7
|
-
# corresponding client capabilities.
|
8
|
-
#
|
9
|
-
# @since 3.16.0
|
10
|
-
#
|
11
4
|
module SemanticTokenTypes
|
12
|
-
NAMESPACE =
|
5
|
+
NAMESPACE = 'namespace'
|
13
6
|
#
|
14
|
-
# Represents a generic type. Acts as a fallback for types which
|
15
|
-
# a specific type like class or enum.
|
7
|
+
# Represents a generic type. Acts as a fallback for types which
|
8
|
+
# can't be mapped to a specific type like class or enum.
|
16
9
|
#
|
17
|
-
TYPE =
|
18
|
-
CLASS =
|
19
|
-
ENUM =
|
20
|
-
INTERFACE =
|
21
|
-
STRUCT =
|
22
|
-
TYPE_PARAMETER =
|
23
|
-
PARAMETER =
|
24
|
-
VARIABLE =
|
25
|
-
PROPERTY =
|
26
|
-
ENUM_MEMBER =
|
27
|
-
EVENT =
|
28
|
-
FUNCTION =
|
29
|
-
METHOD =
|
30
|
-
MACRO =
|
31
|
-
KEYWORD =
|
32
|
-
MODIFIER =
|
33
|
-
COMMENT =
|
34
|
-
STRING =
|
35
|
-
NUMBER =
|
36
|
-
REGEXP =
|
37
|
-
OPERATOR =
|
38
|
-
|
39
|
-
# @since 3.17.0
|
40
|
-
#
|
41
|
-
DECORATOR = "decorator"
|
10
|
+
TYPE = 'type'
|
11
|
+
CLASS = 'class'
|
12
|
+
ENUM = 'enum'
|
13
|
+
INTERFACE = 'interface'
|
14
|
+
STRUCT = 'struct'
|
15
|
+
TYPE_PARAMETER = 'typeParameter'
|
16
|
+
PARAMETER = 'parameter'
|
17
|
+
VARIABLE = 'variable'
|
18
|
+
PROPERTY = 'property'
|
19
|
+
ENUM_MEMBER = 'enumMember'
|
20
|
+
EVENT = 'event'
|
21
|
+
FUNCTION = 'function'
|
22
|
+
METHOD = 'method'
|
23
|
+
MACRO = 'macro'
|
24
|
+
KEYWORD = 'keyword'
|
25
|
+
MODIFIER = 'modifier'
|
26
|
+
COMMENT = 'comment'
|
27
|
+
STRING = 'string'
|
28
|
+
NUMBER = 'number'
|
29
|
+
REGEXP = 'regexp'
|
30
|
+
OPERATOR = 'operator'
|
31
|
+
DECORATOR = 'decorator'
|
42
32
|
end
|
43
33
|
end
|
44
34
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# How a signature help was triggered.
|
6
6
|
#
|
7
|
-
# @since 3.15.0
|
8
|
-
#
|
9
7
|
module SignatureHelpTriggerKind
|
10
8
|
#
|
11
9
|
# Signature help was invoked manually by the user or by a command.
|
@@ -16,7 +14,8 @@ module LanguageServer
|
|
16
14
|
#
|
17
15
|
TRIGGER_CHARACTER = 2
|
18
16
|
#
|
19
|
-
# Signature help was triggered by the cursor moving or by the document
|
17
|
+
# Signature help was triggered by the cursor moving or by the document
|
18
|
+
# content changing.
|
20
19
|
#
|
21
20
|
CONTENT_CHANGE = 3
|
22
21
|
end
|
@@ -6,8 +6,8 @@ module LanguageServer
|
|
6
6
|
#
|
7
7
|
module TextDocumentSaveReason
|
8
8
|
#
|
9
|
-
# Manually triggered, e.g. by the user pressing save, by starting
|
10
|
-
# or by an API call.
|
9
|
+
# Manually triggered, e.g. by the user pressing save, by starting
|
10
|
+
# debugging, or by an API call.
|
11
11
|
#
|
12
12
|
MANUAL = 1
|
13
13
|
#
|
@@ -2,8 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
4
|
#
|
5
|
-
# Defines how the host (editor) should sync
|
6
|
-
#
|
5
|
+
# Defines how the host (editor) should sync document changes to the language
|
6
|
+
# server.
|
7
7
|
#
|
8
8
|
module TextDocumentSyncKind
|
9
9
|
#
|
@@ -18,7 +18,7 @@ module LanguageServer
|
|
18
18
|
#
|
19
19
|
# Documents are synced by sending the full content on open.
|
20
20
|
# After that only incremental updates to the document are
|
21
|
-
#
|
21
|
+
# send.
|
22
22
|
#
|
23
23
|
INCREMENTAL = 2
|
24
24
|
end
|
@@ -4,29 +4,27 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Moniker uniqueness level to define scope of the moniker.
|
6
6
|
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
7
|
module UniquenessLevel
|
10
8
|
#
|
11
9
|
# The moniker is only unique inside a document
|
12
10
|
#
|
13
|
-
DOCUMENT =
|
11
|
+
DOCUMENT = 'document'
|
14
12
|
#
|
15
13
|
# The moniker is unique inside a project for which a dump got created
|
16
14
|
#
|
17
|
-
PROJECT =
|
15
|
+
PROJECT = 'project'
|
18
16
|
#
|
19
17
|
# The moniker is unique inside the group to which a project belongs
|
20
18
|
#
|
21
|
-
GROUP =
|
19
|
+
GROUP = 'group'
|
22
20
|
#
|
23
21
|
# The moniker is unique inside the moniker scheme.
|
24
22
|
#
|
25
|
-
SCHEME =
|
23
|
+
SCHEME = 'scheme'
|
26
24
|
#
|
27
25
|
# The moniker is globally unique
|
28
26
|
#
|
29
|
-
GLOBAL =
|
27
|
+
GLOBAL = 'global'
|
30
28
|
end
|
31
29
|
end
|
32
30
|
end
|
@@ -8,16 +8,17 @@ module LanguageServer
|
|
8
8
|
autoload :CompletionTriggerKind, "language_server/protocol/constant/completion_trigger_kind"
|
9
9
|
autoload :DiagnosticSeverity, "language_server/protocol/constant/diagnostic_severity"
|
10
10
|
autoload :DiagnosticTag, "language_server/protocol/constant/diagnostic_tag"
|
11
|
+
autoload :DocumentDiagnosticReportKind, "language_server/protocol/constant/document_diagnostic_report_kind"
|
11
12
|
autoload :DocumentHighlightKind, "language_server/protocol/constant/document_highlight_kind"
|
12
13
|
autoload :ErrorCodes, "language_server/protocol/constant/error_codes"
|
13
14
|
autoload :FailureHandlingKind, "language_server/protocol/constant/failure_handling_kind"
|
14
15
|
autoload :FileChangeType, "language_server/protocol/constant/file_change_type"
|
15
16
|
autoload :FileOperationPatternKind, "language_server/protocol/constant/file_operation_pattern_kind"
|
16
17
|
autoload :FoldingRangeKind, "language_server/protocol/constant/folding_range_kind"
|
18
|
+
autoload :InitializeErrorCodes, "language_server/protocol/constant/initialize_error_codes"
|
17
19
|
autoload :InlayHintKind, "language_server/protocol/constant/inlay_hint_kind"
|
18
20
|
autoload :InsertTextFormat, "language_server/protocol/constant/insert_text_format"
|
19
21
|
autoload :InsertTextMode, "language_server/protocol/constant/insert_text_mode"
|
20
|
-
autoload :LSPErrorCodes, "language_server/protocol/constant/lsp_error_codes"
|
21
22
|
autoload :MarkupKind, "language_server/protocol/constant/markup_kind"
|
22
23
|
autoload :MessageType, "language_server/protocol/constant/message_type"
|
23
24
|
autoload :MonikerKind, "language_server/protocol/constant/moniker_kind"
|
@@ -32,8 +33,8 @@ module LanguageServer
|
|
32
33
|
autoload :SymbolTag, "language_server/protocol/constant/symbol_tag"
|
33
34
|
autoload :TextDocumentSaveReason, "language_server/protocol/constant/text_document_save_reason"
|
34
35
|
autoload :TextDocumentSyncKind, "language_server/protocol/constant/text_document_sync_kind"
|
36
|
+
autoload :TextDocumentSyncKind, "language_server/protocol/constant/text_document_sync_kind"
|
35
37
|
autoload :TokenFormat, "language_server/protocol/constant/token_format"
|
36
|
-
autoload :TraceValues, "language_server/protocol/constant/trace_values"
|
37
38
|
autoload :UniquenessLevel, "language_server/protocol/constant/uniqueness_level"
|
38
39
|
autoload :WatchKind, "language_server/protocol/constant/watch_kind"
|
39
40
|
|
@@ -44,16 +45,17 @@ module LanguageServer
|
|
44
45
|
require "language_server/protocol/constant/completion_trigger_kind"
|
45
46
|
require "language_server/protocol/constant/diagnostic_severity"
|
46
47
|
require "language_server/protocol/constant/diagnostic_tag"
|
48
|
+
require "language_server/protocol/constant/document_diagnostic_report_kind"
|
47
49
|
require "language_server/protocol/constant/document_highlight_kind"
|
48
50
|
require "language_server/protocol/constant/error_codes"
|
49
51
|
require "language_server/protocol/constant/failure_handling_kind"
|
50
52
|
require "language_server/protocol/constant/file_change_type"
|
51
53
|
require "language_server/protocol/constant/file_operation_pattern_kind"
|
52
54
|
require "language_server/protocol/constant/folding_range_kind"
|
55
|
+
require "language_server/protocol/constant/initialize_error_codes"
|
53
56
|
require "language_server/protocol/constant/inlay_hint_kind"
|
54
57
|
require "language_server/protocol/constant/insert_text_format"
|
55
58
|
require "language_server/protocol/constant/insert_text_mode"
|
56
|
-
require "language_server/protocol/constant/lsp_error_codes"
|
57
59
|
require "language_server/protocol/constant/markup_kind"
|
58
60
|
require "language_server/protocol/constant/message_type"
|
59
61
|
require "language_server/protocol/constant/moniker_kind"
|
@@ -68,8 +70,8 @@ module LanguageServer
|
|
68
70
|
require "language_server/protocol/constant/symbol_tag"
|
69
71
|
require "language_server/protocol/constant/text_document_save_reason"
|
70
72
|
require "language_server/protocol/constant/text_document_sync_kind"
|
73
|
+
require "language_server/protocol/constant/text_document_sync_kind"
|
71
74
|
require "language_server/protocol/constant/token_format"
|
72
|
-
require "language_server/protocol/constant/trace_values"
|
73
75
|
require "language_server/protocol/constant/uniqueness_level"
|
74
76
|
require "language_server/protocol/constant/watch_kind"
|
75
77
|
end
|
@@ -4,27 +4,17 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A special text edit with an additional change annotation.
|
6
6
|
#
|
7
|
-
# @since 3.16.0.
|
8
|
-
#
|
9
7
|
class AnnotatedTextEdit
|
10
|
-
def initialize(
|
8
|
+
def initialize(range:, new_text:, annotation_id:)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
|
-
@attributes[:annotationId] = annotation_id
|
14
11
|
@attributes[:range] = range
|
15
12
|
@attributes[:newText] = new_text
|
13
|
+
@attributes[:annotationId] = annotation_id
|
16
14
|
|
17
15
|
@attributes.freeze
|
18
16
|
end
|
19
17
|
|
20
|
-
#
|
21
|
-
# The actual identifier of the change annotation
|
22
|
-
#
|
23
|
-
# @return [ChangeAnnotationIdentifier]
|
24
|
-
def annotation_id
|
25
|
-
attributes.fetch(:annotationId)
|
26
|
-
end
|
27
|
-
|
28
18
|
#
|
29
19
|
# The range of the text document to be manipulated. To insert
|
30
20
|
# text into a document create a range where start === end.
|
@@ -43,6 +33,14 @@ module LanguageServer
|
|
43
33
|
attributes.fetch(:newText)
|
44
34
|
end
|
45
35
|
|
36
|
+
#
|
37
|
+
# The actual annotation identifier.
|
38
|
+
#
|
39
|
+
# @return [string]
|
40
|
+
def annotation_id
|
41
|
+
attributes.fetch(:annotationId)
|
42
|
+
end
|
43
|
+
|
46
44
|
attr_reader :attributes
|
47
45
|
|
48
46
|
def to_hash
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameters passed via a apply workspace edit request.
|
6
|
-
#
|
7
4
|
class ApplyWorkspaceEditParams
|
8
5
|
def initialize(label: nil, edit:)
|
9
6
|
@attributes = {}
|
@@ -19,7 +16,7 @@ module LanguageServer
|
|
19
16
|
# presented in the user interface for example on an undo
|
20
17
|
# stack to undo the workspace edit.
|
21
18
|
#
|
22
|
-
# @return [string
|
19
|
+
# @return [string]
|
23
20
|
def label
|
24
21
|
attributes.fetch(:label)
|
25
22
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The result returned from the apply workspace edit request.
|
6
|
-
#
|
7
|
-
# @since 3.17 renamed from ApplyWorkspaceEditResponse
|
8
|
-
#
|
9
4
|
class ApplyWorkspaceEditResult
|
10
5
|
def initialize(applied:, failure_reason: nil, failed_change: nil)
|
11
6
|
@attributes = {}
|
@@ -30,17 +25,18 @@ module LanguageServer
|
|
30
25
|
# This may be used by the server for diagnostic logging or to provide
|
31
26
|
# a suitable error for a request that triggered the edit.
|
32
27
|
#
|
33
|
-
# @return [string
|
28
|
+
# @return [string]
|
34
29
|
def failure_reason
|
35
30
|
attributes.fetch(:failureReason)
|
36
31
|
end
|
37
32
|
|
38
33
|
#
|
39
|
-
# Depending on the client's failure handling strategy `failedChange`
|
40
|
-
# contain the index of the change that failed. This property is
|
41
|
-
# if the client signals a `
|
34
|
+
# Depending on the client's failure handling strategy `failedChange`
|
35
|
+
# might contain the index of the change that failed. This property is
|
36
|
+
# only available if the client signals a `failureHandling` strategy
|
37
|
+
# in its client capabilities.
|
42
38
|
#
|
43
|
-
# @return [
|
39
|
+
# @return [number]
|
44
40
|
def failed_change
|
45
41
|
attributes.fetch(:failedChange)
|
46
42
|
end
|
@@ -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 CallHierarchyClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil)
|
9
6
|
@attributes = {}
|
@@ -14,11 +11,12 @@ module LanguageServer
|
|
14
11
|
end
|
15
12
|
|
16
13
|
#
|
17
|
-
# Whether implementation supports dynamic registration. If this is set to
|
18
|
-
# the client supports the new `(TextDocumentRegistrationOptions &
|
19
|
-
# return value for the corresponding server
|
14
|
+
# Whether implementation supports dynamic registration. If this is set to
|
15
|
+
# `true` the client supports the new `(TextDocumentRegistrationOptions &
|
16
|
+
# StaticRegistrationOptions)` return value for the corresponding server
|
17
|
+
# capability as well.
|
20
18
|
#
|
21
|
-
# @return [boolean
|
19
|
+
# @return [boolean]
|
22
20
|
def dynamic_registration
|
23
21
|
attributes.fetch(:dynamicRegistration)
|
24
22
|
end
|
@@ -1,44 +1,39 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameter of a `callHierarchy/incomingCalls` request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyIncomingCallsParams
|
10
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, item:)
|
11
6
|
@attributes = {}
|
12
7
|
|
13
|
-
@attributes[:item] = item
|
14
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
15
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:item] = item
|
16
11
|
|
17
12
|
@attributes.freeze
|
18
13
|
end
|
19
14
|
|
20
|
-
# @return [CallHierarchyItem]
|
21
|
-
def item
|
22
|
-
attributes.fetch(:item)
|
23
|
-
end
|
24
|
-
|
25
15
|
#
|
26
16
|
# An optional token that a server can use to report work done progress.
|
27
17
|
#
|
28
|
-
# @return [ProgressToken
|
18
|
+
# @return [ProgressToken]
|
29
19
|
def work_done_token
|
30
20
|
attributes.fetch(:workDoneToken)
|
31
21
|
end
|
32
22
|
|
33
23
|
#
|
34
|
-
# An optional token that a server can use to report partial results (e.g.
|
35
|
-
# the client.
|
24
|
+
# An optional token that a server can use to report partial results (e.g.
|
25
|
+
# streaming) to the client.
|
36
26
|
#
|
37
|
-
# @return [ProgressToken
|
27
|
+
# @return [ProgressToken]
|
38
28
|
def partial_result_token
|
39
29
|
attributes.fetch(:partialResultToken)
|
40
30
|
end
|
41
31
|
|
32
|
+
# @return [CallHierarchyItem]
|
33
|
+
def item
|
34
|
+
attributes.fetch(:item)
|
35
|
+
end
|
36
|
+
|
42
37
|
attr_reader :attributes
|
43
38
|
|
44
39
|
def to_hash
|
@@ -1,12 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Represents programming constructs like functions or constructors in the context
|
6
|
-
# of call hierarchy.
|
7
|
-
#
|
8
|
-
# @since 3.16.0
|
9
|
-
#
|
10
4
|
class CallHierarchyItem
|
11
5
|
def initialize(name:, kind:, tags: nil, detail: nil, uri:, range:, selection_range:, data: nil)
|
12
6
|
@attributes = {}
|
@@ -42,7 +36,7 @@ module LanguageServer
|
|
42
36
|
#
|
43
37
|
# Tags for this item.
|
44
38
|
#
|
45
|
-
# @return [
|
39
|
+
# @return [1[]]
|
46
40
|
def tags
|
47
41
|
attributes.fetch(:tags)
|
48
42
|
end
|
@@ -50,7 +44,7 @@ module LanguageServer
|
|
50
44
|
#
|
51
45
|
# More detail for this item, e.g. the signature of a function.
|
52
46
|
#
|
53
|
-
# @return [string
|
47
|
+
# @return [string]
|
54
48
|
def detail
|
55
49
|
attributes.fetch(:detail)
|
56
50
|
end
|
@@ -58,13 +52,14 @@ module LanguageServer
|
|
58
52
|
#
|
59
53
|
# The resource identifier of this item.
|
60
54
|
#
|
61
|
-
# @return [
|
55
|
+
# @return [string]
|
62
56
|
def uri
|
63
57
|
attributes.fetch(:uri)
|
64
58
|
end
|
65
59
|
|
66
60
|
#
|
67
|
-
# The range enclosing this symbol not including leading/trailing whitespace
|
61
|
+
# The range enclosing this symbol not including leading/trailing whitespace
|
62
|
+
# but everything else, e.g. comments and code.
|
68
63
|
#
|
69
64
|
# @return [Range]
|
70
65
|
def range
|
@@ -72,8 +67,9 @@ module LanguageServer
|
|
72
67
|
end
|
73
68
|
|
74
69
|
#
|
75
|
-
# The range that should be selected and revealed when this symbol is being
|
76
|
-
# Must be contained by the
|
70
|
+
# The range that should be selected and revealed when this symbol is being
|
71
|
+
# picked, e.g. the name of a function. Must be contained by the
|
72
|
+
# [`range`](#CallHierarchyItem.range).
|
77
73
|
#
|
78
74
|
# @return [Range]
|
79
75
|
def selection_range
|
@@ -84,7 +80,7 @@ module LanguageServer
|
|
84
80
|
# A data entry field that is preserved between a call hierarchy prepare and
|
85
81
|
# incoming calls or outgoing calls requests.
|
86
82
|
#
|
87
|
-
# @return [
|
83
|
+
# @return [unknown]
|
88
84
|
def data
|
89
85
|
attributes.fetch(:data)
|
90
86
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Call hierarchy options used during static registration.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyOptions
|
10
5
|
def initialize(work_done_progress: nil)
|
11
6
|
@attributes = {}
|
@@ -15,7 +10,7 @@ module LanguageServer
|
|
15
10
|
@attributes.freeze
|
16
11
|
end
|
17
12
|
|
18
|
-
# @return [boolean
|
13
|
+
# @return [boolean]
|
19
14
|
def work_done_progress
|
20
15
|
attributes.fetch(:workDoneProgress)
|
21
16
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Represents an outgoing call, e.g. calling a getter from a method or a method from a constructor etc.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyOutgoingCall
|
10
5
|
def initialize(to:, from_ranges:)
|
11
6
|
@attributes = {}
|
@@ -25,9 +20,8 @@ module LanguageServer
|
|
25
20
|
end
|
26
21
|
|
27
22
|
#
|
28
|
-
# The range at which this item is called. This is the range relative to
|
29
|
-
# passed to
|
30
|
-
# and not [`this.to`](#CallHierarchyOutgoingCall.to).
|
23
|
+
# The range at which this item is called. This is the range relative to
|
24
|
+
# the caller, e.g the item passed to `callHierarchy/outgoingCalls` request.
|
31
25
|
#
|
32
26
|
# @return [Range[]]
|
33
27
|
def from_ranges
|
@@ -1,44 +1,39 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameter of a `callHierarchy/outgoingCalls` request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyOutgoingCallsParams
|
10
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, item:)
|
11
6
|
@attributes = {}
|
12
7
|
|
13
|
-
@attributes[:item] = item
|
14
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
15
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:item] = item
|
16
11
|
|
17
12
|
@attributes.freeze
|
18
13
|
end
|
19
14
|
|
20
|
-
# @return [CallHierarchyItem]
|
21
|
-
def item
|
22
|
-
attributes.fetch(:item)
|
23
|
-
end
|
24
|
-
|
25
15
|
#
|
26
16
|
# An optional token that a server can use to report work done progress.
|
27
17
|
#
|
28
|
-
# @return [ProgressToken
|
18
|
+
# @return [ProgressToken]
|
29
19
|
def work_done_token
|
30
20
|
attributes.fetch(:workDoneToken)
|
31
21
|
end
|
32
22
|
|
33
23
|
#
|
34
|
-
# An optional token that a server can use to report partial results (e.g.
|
35
|
-
# the client.
|
24
|
+
# An optional token that a server can use to report partial results (e.g.
|
25
|
+
# streaming) to the client.
|
36
26
|
#
|
37
|
-
# @return [ProgressToken
|
27
|
+
# @return [ProgressToken]
|
38
28
|
def partial_result_token
|
39
29
|
attributes.fetch(:partialResultToken)
|
40
30
|
end
|
41
31
|
|
32
|
+
# @return [CallHierarchyItem]
|
33
|
+
def item
|
34
|
+
attributes.fetch(:item)
|
35
|
+
end
|
36
|
+
|
42
37
|
attr_reader :attributes
|
43
38
|
|
44
39
|
def to_hash
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameter of a `textDocument/prepareCallHierarchy` request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyPrepareParams
|
10
5
|
def initialize(text_document:, position:, work_done_token: nil)
|
11
6
|
@attributes = {}
|
@@ -36,7 +31,7 @@ module LanguageServer
|
|
36
31
|
#
|
37
32
|
# An optional token that a server can use to report work done progress.
|
38
33
|
#
|
39
|
-
# @return [ProgressToken
|
34
|
+
# @return [ProgressToken]
|
40
35
|
def work_done_token
|
41
36
|
attributes.fetch(:workDoneToken)
|
42
37
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Call hierarchy options used during static or dynamic registration.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class CallHierarchyRegistrationOptions
|
10
5
|
def initialize(document_selector:, work_done_progress: nil, id: nil)
|
11
6
|
@attributes = {}
|
@@ -18,15 +13,15 @@ module LanguageServer
|
|
18
13
|
end
|
19
14
|
|
20
15
|
#
|
21
|
-
# A document selector to identify the scope of the registration. If set to
|
22
|
-
# the document selector provided on the client side will be used.
|
16
|
+
# A document selector to identify the scope of the registration. If set to
|
17
|
+
# null the document selector provided on the client side will be used.
|
23
18
|
#
|
24
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
25
20
|
def document_selector
|
26
21
|
attributes.fetch(:documentSelector)
|
27
22
|
end
|
28
23
|
|
29
|
-
# @return [boolean
|
24
|
+
# @return [boolean]
|
30
25
|
def work_done_progress
|
31
26
|
attributes.fetch(:workDoneProgress)
|
32
27
|
end
|
@@ -35,7 +30,7 @@ module LanguageServer
|
|
35
30
|
# The id used to register the request. The id can be used to deregister
|
36
31
|
# the request again. See also Registration#id.
|
37
32
|
#
|
38
|
-
# @return [string
|
33
|
+
# @return [string]
|
39
34
|
def id
|
40
35
|
attributes.fetch(:id)
|
41
36
|
end
|