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
@@ -5,8 +5,6 @@ module LanguageServer
|
|
5
5
|
# An inlay hint label part allows for interactive and composite labels
|
6
6
|
# of inlay hints.
|
7
7
|
#
|
8
|
-
# @since 3.17.0
|
9
|
-
#
|
10
8
|
class InlayHintLabelPart
|
11
9
|
def initialize(value:, tooltip: nil, location: nil, command: nil)
|
12
10
|
@attributes = {}
|
@@ -32,7 +30,7 @@ module LanguageServer
|
|
32
30
|
# the client capability `inlayHint.resolveSupport` clients might resolve
|
33
31
|
# this property late using the resolve request.
|
34
32
|
#
|
35
|
-
# @return [string | MarkupContent
|
33
|
+
# @return [string | MarkupContent]
|
36
34
|
def tooltip
|
37
35
|
attributes.fetch(:tooltip)
|
38
36
|
end
|
@@ -50,7 +48,7 @@ module LanguageServer
|
|
50
48
|
# Depending on the client capability `inlayHint.resolveSupport` clients
|
51
49
|
# might resolve this property late using the resolve request.
|
52
50
|
#
|
53
|
-
# @return [Location
|
51
|
+
# @return [Location]
|
54
52
|
def location
|
55
53
|
attributes.fetch(:location)
|
56
54
|
end
|
@@ -61,7 +59,7 @@ module LanguageServer
|
|
61
59
|
# Depending on the client capability `inlayHint.resolveSupport` clients
|
62
60
|
# might resolve this property late using the resolve request.
|
63
61
|
#
|
64
|
-
# @return [Command
|
62
|
+
# @return [Command]
|
65
63
|
def command
|
66
64
|
attributes.fetch(:command)
|
67
65
|
end
|
@@ -4,32 +4,30 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inlay hint options used during static registration.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHintOptions
|
10
|
-
def initialize(
|
8
|
+
def initialize(work_done_progress: nil, resolve_provider: nil)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
|
-
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
14
11
|
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
12
|
+
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
15
13
|
|
16
14
|
@attributes.freeze
|
17
15
|
end
|
18
16
|
|
17
|
+
# @return [boolean]
|
18
|
+
def work_done_progress
|
19
|
+
attributes.fetch(:workDoneProgress)
|
20
|
+
end
|
21
|
+
|
19
22
|
#
|
20
23
|
# The server provides support to resolve additional
|
21
24
|
# information for an inlay hint item.
|
22
25
|
#
|
23
|
-
# @return [boolean
|
26
|
+
# @return [boolean]
|
24
27
|
def resolve_provider
|
25
28
|
attributes.fetch(:resolveProvider)
|
26
29
|
end
|
27
30
|
|
28
|
-
# @return [boolean | nil]
|
29
|
-
def work_done_progress
|
30
|
-
attributes.fetch(:workDoneProgress)
|
31
|
-
end
|
32
|
-
|
33
31
|
attr_reader :attributes
|
34
32
|
|
35
33
|
def to_hash
|
@@ -4,19 +4,25 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A parameter literal used in inlay hint requests.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHintParams
|
10
|
-
def initialize(text_document:, range
|
8
|
+
def initialize(work_done_token: nil, text_document:, range:)
|
11
9
|
@attributes = {}
|
12
10
|
|
11
|
+
@attributes[:workDoneToken] = work_done_token if work_done_token
|
13
12
|
@attributes[:textDocument] = text_document
|
14
13
|
@attributes[:range] = range
|
15
|
-
@attributes[:workDoneToken] = work_done_token if work_done_token
|
16
14
|
|
17
15
|
@attributes.freeze
|
18
16
|
end
|
19
17
|
|
18
|
+
#
|
19
|
+
# An optional token that a server can use to report work done progress.
|
20
|
+
#
|
21
|
+
# @return [ProgressToken]
|
22
|
+
def work_done_token
|
23
|
+
attributes.fetch(:workDoneToken)
|
24
|
+
end
|
25
|
+
|
20
26
|
#
|
21
27
|
# The text document.
|
22
28
|
#
|
@@ -26,21 +32,13 @@ module LanguageServer
|
|
26
32
|
end
|
27
33
|
|
28
34
|
#
|
29
|
-
# The document range for which inlay hints should be computed.
|
35
|
+
# The visible document range for which inlay hints should be computed.
|
30
36
|
#
|
31
37
|
# @return [Range]
|
32
38
|
def range
|
33
39
|
attributes.fetch(:range)
|
34
40
|
end
|
35
41
|
|
36
|
-
#
|
37
|
-
# An optional token that a server can use to report work done progress.
|
38
|
-
#
|
39
|
-
# @return [ProgressToken | nil]
|
40
|
-
def work_done_token
|
41
|
-
attributes.fetch(:workDoneToken)
|
42
|
-
end
|
43
|
-
|
44
42
|
attr_reader :attributes
|
45
43
|
|
46
44
|
def to_hash
|
@@ -4,39 +4,37 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inlay hint options used during static or dynamic registration.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHintRegistrationOptions
|
10
|
-
def initialize(
|
8
|
+
def initialize(work_done_progress: nil, resolve_provider: nil, document_selector:, id: nil)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
|
-
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
14
11
|
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
12
|
+
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
15
13
|
@attributes[:documentSelector] = document_selector
|
16
14
|
@attributes[:id] = id if id
|
17
15
|
|
18
16
|
@attributes.freeze
|
19
17
|
end
|
20
18
|
|
19
|
+
# @return [boolean]
|
20
|
+
def work_done_progress
|
21
|
+
attributes.fetch(:workDoneProgress)
|
22
|
+
end
|
23
|
+
|
21
24
|
#
|
22
25
|
# The server provides support to resolve additional
|
23
26
|
# information for an inlay hint item.
|
24
27
|
#
|
25
|
-
# @return [boolean
|
28
|
+
# @return [boolean]
|
26
29
|
def resolve_provider
|
27
30
|
attributes.fetch(:resolveProvider)
|
28
31
|
end
|
29
32
|
|
30
|
-
# @return [boolean | nil]
|
31
|
-
def work_done_progress
|
32
|
-
attributes.fetch(:workDoneProgress)
|
33
|
-
end
|
34
|
-
|
35
33
|
#
|
36
|
-
# A document selector to identify the scope of the registration. If set to
|
37
|
-
# the document selector provided on the client side will be used.
|
34
|
+
# A document selector to identify the scope of the registration. If set to
|
35
|
+
# null the document selector provided on the client side will be used.
|
38
36
|
#
|
39
|
-
# @return [DocumentSelector
|
37
|
+
# @return [DocumentSelector]
|
40
38
|
def document_selector
|
41
39
|
attributes.fetch(:documentSelector)
|
42
40
|
end
|
@@ -45,7 +43,7 @@ module LanguageServer
|
|
45
43
|
# The id used to register the request. The id can be used to deregister
|
46
44
|
# the request again. See also Registration#id.
|
47
45
|
#
|
48
|
-
# @return [string
|
46
|
+
# @return [string]
|
49
47
|
def id
|
50
48
|
attributes.fetch(:id)
|
51
49
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Client workspace capabilities specific to inlay hints.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHintWorkspaceClientCapabilities
|
10
8
|
def initialize(refresh_support: nil)
|
11
9
|
@attributes = {}
|
@@ -24,7 +22,7 @@ module LanguageServer
|
|
24
22
|
# is useful for situation where a server for example detects a project wide
|
25
23
|
# change that requires such a calculation.
|
26
24
|
#
|
27
|
-
# @return [boolean
|
25
|
+
# @return [boolean]
|
28
26
|
def refresh_support
|
29
27
|
attributes.fetch(:refreshSupport)
|
30
28
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Client capabilities specific to inline values.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlineValueClientCapabilities
|
10
8
|
def initialize(dynamic_registration: nil)
|
11
9
|
@attributes = {}
|
@@ -16,9 +14,10 @@ module LanguageServer
|
|
16
14
|
end
|
17
15
|
|
18
16
|
#
|
19
|
-
# Whether implementation supports dynamic registration for inline
|
17
|
+
# Whether implementation supports dynamic registration for inline
|
18
|
+
# value providers.
|
20
19
|
#
|
21
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
22
21
|
def dynamic_registration
|
23
22
|
attributes.fetch(:dynamicRegistration)
|
24
23
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.17.0
|
6
|
-
#
|
7
4
|
class InlineValueContext
|
8
5
|
def initialize(frame_id:, stopped_location:)
|
9
6
|
@attributes = {}
|
@@ -17,14 +14,15 @@ module LanguageServer
|
|
17
14
|
#
|
18
15
|
# The stack frame (as a DAP Id) where the execution has stopped.
|
19
16
|
#
|
20
|
-
# @return [
|
17
|
+
# @return [number]
|
21
18
|
def frame_id
|
22
19
|
attributes.fetch(:frameId)
|
23
20
|
end
|
24
21
|
|
25
22
|
#
|
26
23
|
# The document range where execution has stopped.
|
27
|
-
# Typically the end position of the range denotes the line where the
|
24
|
+
# Typically the end position of the range denotes the line where the
|
25
|
+
# inline values are shown.
|
28
26
|
#
|
29
27
|
# @return [Range]
|
30
28
|
def stopped_location
|
@@ -3,10 +3,11 @@ module LanguageServer
|
|
3
3
|
module Interface
|
4
4
|
#
|
5
5
|
# Provide an inline value through an expression evaluation.
|
6
|
-
# If only a range is specified, the expression will be extracted from the underlying document.
|
7
|
-
# An optional expression can be used to override the extracted expression.
|
8
6
|
#
|
9
|
-
#
|
7
|
+
# If only a range is specified, the expression will be extracted from the
|
8
|
+
# underlying document.
|
9
|
+
#
|
10
|
+
# An optional expression can be used to override the extracted expression.
|
10
11
|
#
|
11
12
|
class InlineValueEvaluatableExpression
|
12
13
|
def initialize(range:, expression: nil)
|
@@ -20,7 +21,8 @@ module LanguageServer
|
|
20
21
|
|
21
22
|
#
|
22
23
|
# The document range for which the inline value applies.
|
23
|
-
# The range is used to extract the evaluatable expression from the
|
24
|
+
# The range is used to extract the evaluatable expression from the
|
25
|
+
# underlying document.
|
24
26
|
#
|
25
27
|
# @return [Range]
|
26
28
|
def range
|
@@ -30,7 +32,7 @@ module LanguageServer
|
|
30
32
|
#
|
31
33
|
# If specified the expression overrides the extracted expression.
|
32
34
|
#
|
33
|
-
# @return [string
|
35
|
+
# @return [string]
|
34
36
|
def expression
|
35
37
|
attributes.fetch(:expression)
|
36
38
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inline value options used during static registration.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlineValueOptions
|
10
8
|
def initialize(work_done_progress: nil)
|
11
9
|
@attributes = {}
|
@@ -15,7 +13,7 @@ module LanguageServer
|
|
15
13
|
@attributes.freeze
|
16
14
|
end
|
17
15
|
|
18
|
-
# @return [boolean
|
16
|
+
# @return [boolean]
|
19
17
|
def work_done_progress
|
20
18
|
attributes.fetch(:workDoneProgress)
|
21
19
|
end
|
@@ -4,20 +4,26 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A parameter literal used in inline value requests.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlineValueParams
|
10
|
-
def initialize(text_document:, range:, context
|
8
|
+
def initialize(work_done_token: nil, text_document:, range:, context:)
|
11
9
|
@attributes = {}
|
12
10
|
|
11
|
+
@attributes[:workDoneToken] = work_done_token if work_done_token
|
13
12
|
@attributes[:textDocument] = text_document
|
14
13
|
@attributes[:range] = range
|
15
14
|
@attributes[:context] = context
|
16
|
-
@attributes[:workDoneToken] = work_done_token if work_done_token
|
17
15
|
|
18
16
|
@attributes.freeze
|
19
17
|
end
|
20
18
|
|
19
|
+
#
|
20
|
+
# An optional token that a server can use to report work done progress.
|
21
|
+
#
|
22
|
+
# @return [ProgressToken]
|
23
|
+
def work_done_token
|
24
|
+
attributes.fetch(:workDoneToken)
|
25
|
+
end
|
26
|
+
|
21
27
|
#
|
22
28
|
# The text document.
|
23
29
|
#
|
@@ -43,14 +49,6 @@ module LanguageServer
|
|
43
49
|
attributes.fetch(:context)
|
44
50
|
end
|
45
51
|
|
46
|
-
#
|
47
|
-
# An optional token that a server can use to report work done progress.
|
48
|
-
#
|
49
|
-
# @return [ProgressToken | nil]
|
50
|
-
def work_done_token
|
51
|
-
attributes.fetch(:workDoneToken)
|
52
|
-
end
|
53
|
-
|
54
52
|
attr_reader :attributes
|
55
53
|
|
56
54
|
def to_hash
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inline value options used during static or dynamic registration.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlineValueRegistrationOptions
|
10
8
|
def initialize(work_done_progress: nil, document_selector:, id: nil)
|
11
9
|
@attributes = {}
|
@@ -17,16 +15,16 @@ module LanguageServer
|
|
17
15
|
@attributes.freeze
|
18
16
|
end
|
19
17
|
|
20
|
-
# @return [boolean
|
18
|
+
# @return [boolean]
|
21
19
|
def work_done_progress
|
22
20
|
attributes.fetch(:workDoneProgress)
|
23
21
|
end
|
24
22
|
|
25
23
|
#
|
26
|
-
# A document selector to identify the scope of the registration. If set to
|
27
|
-
# the document selector provided on the client side will be used.
|
24
|
+
# A document selector to identify the scope of the registration. If set to
|
25
|
+
# null the document selector provided on the client side will be used.
|
28
26
|
#
|
29
|
-
# @return [DocumentSelector
|
27
|
+
# @return [DocumentSelector]
|
30
28
|
def document_selector
|
31
29
|
attributes.fetch(:documentSelector)
|
32
30
|
end
|
@@ -35,7 +33,7 @@ module LanguageServer
|
|
35
33
|
# The id used to register the request. The id can be used to deregister
|
36
34
|
# the request again. See also Registration#id.
|
37
35
|
#
|
38
|
-
# @return [string
|
36
|
+
# @return [string]
|
39
37
|
def id
|
40
38
|
attributes.fetch(:id)
|
41
39
|
end
|
@@ -3,10 +3,11 @@ module LanguageServer
|
|
3
3
|
module Interface
|
4
4
|
#
|
5
5
|
# Provide inline value through a variable lookup.
|
6
|
-
# If only a range is specified, the variable name will be extracted from the underlying document.
|
7
|
-
# An optional variable name can be used to override the extracted name.
|
8
6
|
#
|
9
|
-
#
|
7
|
+
# If only a range is specified, the variable name will be extracted from
|
8
|
+
# the underlying document.
|
9
|
+
#
|
10
|
+
# An optional variable name can be used to override the extracted name.
|
10
11
|
#
|
11
12
|
class InlineValueVariableLookup
|
12
13
|
def initialize(range:, variable_name: nil, case_sensitive_lookup:)
|
@@ -21,7 +22,8 @@ module LanguageServer
|
|
21
22
|
|
22
23
|
#
|
23
24
|
# The document range for which the inline value applies.
|
24
|
-
# The range is used to extract the variable name from the underlying
|
25
|
+
# The range is used to extract the variable name from the underlying
|
26
|
+
# document.
|
25
27
|
#
|
26
28
|
# @return [Range]
|
27
29
|
def range
|
@@ -31,7 +33,7 @@ module LanguageServer
|
|
31
33
|
#
|
32
34
|
# If specified the name of the variable to look up.
|
33
35
|
#
|
34
|
-
# @return [string
|
36
|
+
# @return [string]
|
35
37
|
def variable_name
|
36
38
|
attributes.fetch(:variableName)
|
37
39
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Client workspace capabilities specific to inline values.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlineValueWorkspaceClientCapabilities
|
10
8
|
def initialize(refresh_support: nil)
|
11
9
|
@attributes = {}
|
@@ -16,15 +14,15 @@ module LanguageServer
|
|
16
14
|
end
|
17
15
|
|
18
16
|
#
|
19
|
-
# Whether the client implementation supports a refresh request sent from
|
20
|
-
# server to the client.
|
17
|
+
# Whether the client implementation supports a refresh request sent from
|
18
|
+
# the server to the client.
|
21
19
|
#
|
22
20
|
# Note that this event is global and will force the client to refresh all
|
23
|
-
# inline values currently shown. It should be used with absolute care and
|
24
|
-
# useful for situation where a server for example
|
21
|
+
# inline values currently shown. It should be used with absolute care and
|
22
|
+
# is useful for situation where a server for example detect a project wide
|
25
23
|
# change that requires such a calculation.
|
26
24
|
#
|
27
|
-
# @return [boolean
|
25
|
+
# @return [boolean]
|
28
26
|
def refresh_support
|
29
27
|
attributes.fetch(:refreshSupport)
|
30
28
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities for the linked editing range request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class LinkedEditingRangeClientCapabilities
|
10
5
|
def initialize(dynamic_registration: nil)
|
11
6
|
@attributes = {}
|
@@ -16,11 +11,12 @@ module LanguageServer
|
|
16
11
|
end
|
17
12
|
|
18
13
|
#
|
19
|
-
# Whether implementation supports dynamic registration.
|
20
|
-
# the client supports the new
|
14
|
+
# Whether implementation supports dynamic registration.
|
15
|
+
# If this is set to `true` the client supports the new
|
16
|
+
# `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
21
17
|
# return value for the corresponding server capability as well.
|
22
18
|
#
|
23
|
-
# @return [boolean
|
19
|
+
# @return [boolean]
|
24
20
|
def dynamic_registration
|
25
21
|
attributes.fetch(:dynamicRegistration)
|
26
22
|
end
|
@@ -13,15 +13,15 @@ module LanguageServer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
#
|
16
|
-
# A document selector to identify the scope of the registration. If set to
|
17
|
-
# 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.
|
18
18
|
#
|
19
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
20
20
|
def document_selector
|
21
21
|
attributes.fetch(:documentSelector)
|
22
22
|
end
|
23
23
|
|
24
|
-
# @return [boolean
|
24
|
+
# @return [boolean]
|
25
25
|
def work_done_progress
|
26
26
|
attributes.fetch(:workDoneProgress)
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module LanguageServer
|
|
30
30
|
# The id used to register the request. The id can be used to deregister
|
31
31
|
# the request again. See also Registration#id.
|
32
32
|
#
|
33
|
-
# @return [string
|
33
|
+
# @return [string]
|
34
34
|
def id
|
35
35
|
attributes.fetch(:id)
|
36
36
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The result of a linked editing range request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class LinkedEditingRanges
|
10
5
|
def initialize(ranges:, word_pattern: nil)
|
11
6
|
@attributes = {}
|
@@ -17,8 +12,9 @@ module LanguageServer
|
|
17
12
|
end
|
18
13
|
|
19
14
|
#
|
20
|
-
# A list of ranges that can be
|
21
|
-
# identical length and contain identical text content. The ranges cannot
|
15
|
+
# A list of ranges that can be renamed together. The ranges must have
|
16
|
+
# identical length and contain identical text content. The ranges cannot
|
17
|
+
# overlap.
|
22
18
|
#
|
23
19
|
# @return [Range[]]
|
24
20
|
def ranges
|
@@ -26,11 +22,11 @@ module LanguageServer
|
|
26
22
|
end
|
27
23
|
|
28
24
|
#
|
29
|
-
# An optional word pattern (regular expression) that describes valid
|
30
|
-
# the given ranges. If no pattern is provided, the client
|
31
|
-
# pattern will be used.
|
25
|
+
# An optional word pattern (regular expression) that describes valid
|
26
|
+
# contents for the given ranges. If no pattern is provided, the client
|
27
|
+
# configuration's word pattern will be used.
|
32
28
|
#
|
33
|
-
# @return [string
|
29
|
+
# @return [string]
|
34
30
|
def word_pattern
|
35
31
|
attributes.fetch(:wordPattern)
|
36
32
|
end
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Represents a location inside a resource, such as a line
|
6
|
-
# inside a text file.
|
7
|
-
#
|
8
4
|
class Location
|
9
5
|
def initialize(uri:, range:)
|
10
6
|
@attributes = {}
|
@@ -15,7 +11,7 @@ module LanguageServer
|
|
15
11
|
@attributes.freeze
|
16
12
|
end
|
17
13
|
|
18
|
-
# @return [
|
14
|
+
# @return [string]
|
19
15
|
def uri
|
20
16
|
attributes.fetch(:uri)
|
21
17
|
end
|