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,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Parameters for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
6
|
-
#
|
7
4
|
class DocumentHighlightParams
|
8
5
|
def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil)
|
9
6
|
@attributes = {}
|
@@ -35,16 +32,16 @@ module LanguageServer
|
|
35
32
|
#
|
36
33
|
# An optional token that a server can use to report work done progress.
|
37
34
|
#
|
38
|
-
# @return [ProgressToken
|
35
|
+
# @return [ProgressToken]
|
39
36
|
def work_done_token
|
40
37
|
attributes.fetch(:workDoneToken)
|
41
38
|
end
|
42
39
|
|
43
40
|
#
|
44
|
-
# An optional token that a server can use to report partial results (e.g.
|
45
|
-
# the client.
|
41
|
+
# An optional token that a server can use to report partial results (e.g.
|
42
|
+
# streaming) to the client.
|
46
43
|
#
|
47
|
-
# @return [ProgressToken
|
44
|
+
# @return [ProgressToken]
|
48
45
|
def partial_result_token
|
49
46
|
attributes.fetch(:partialResultToken)
|
50
47
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [DocumentHighlightRequest](#DocumentHighlightRequest).
|
6
|
-
#
|
7
4
|
class DocumentHighlightRegistrationOptions
|
8
5
|
def initialize(document_selector:, work_done_progress: nil)
|
9
6
|
@attributes = {}
|
@@ -15,15 +12,15 @@ module LanguageServer
|
|
15
12
|
end
|
16
13
|
|
17
14
|
#
|
18
|
-
# A document selector to identify the scope of the registration. If set to
|
19
|
-
# the document selector provided on the client side will be used.
|
15
|
+
# A document selector to identify the scope of the registration. If set to
|
16
|
+
# null the document selector provided on the client side will be used.
|
20
17
|
#
|
21
|
-
# @return [DocumentSelector
|
18
|
+
# @return [DocumentSelector]
|
22
19
|
def document_selector
|
23
20
|
attributes.fetch(:documentSelector)
|
24
21
|
end
|
25
22
|
|
26
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
27
24
|
def work_done_progress
|
28
25
|
attributes.fetch(:workDoneProgress)
|
29
26
|
end
|
@@ -2,8 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# A document link is a range in a text document that links to an internal or
|
6
|
-
# text document or a web site.
|
5
|
+
# A document link is a range in a text document that links to an internal or
|
6
|
+
# external resource, like another text document or a web site.
|
7
7
|
#
|
8
8
|
class DocumentLink
|
9
9
|
def initialize(range:, target: nil, tooltip: nil, data: nil)
|
@@ -28,7 +28,7 @@ module LanguageServer
|
|
28
28
|
#
|
29
29
|
# The uri this link points to. If missing a resolve request is sent later.
|
30
30
|
#
|
31
|
-
# @return [string
|
31
|
+
# @return [string]
|
32
32
|
def target
|
33
33
|
attributes.fetch(:target)
|
34
34
|
end
|
@@ -36,13 +36,12 @@ module LanguageServer
|
|
36
36
|
#
|
37
37
|
# The tooltip text when you hover over this link.
|
38
38
|
#
|
39
|
-
# If a tooltip is provided, is will be displayed in a string that includes
|
40
|
-
# trigger the link, such as `{0} (ctrl + click)`.
|
41
|
-
# user settings, and
|
39
|
+
# If a tooltip is provided, is will be displayed in a string that includes
|
40
|
+
# instructions on how to trigger the link, such as `{0} (ctrl + click)`.
|
41
|
+
# The specific instructions vary depending on OS, user settings, and
|
42
|
+
# localization.
|
42
43
|
#
|
43
|
-
# @
|
44
|
-
#
|
45
|
-
# @return [string | nil]
|
44
|
+
# @return [string]
|
46
45
|
def tooltip
|
47
46
|
attributes.fetch(:tooltip)
|
48
47
|
end
|
@@ -51,7 +50,7 @@ module LanguageServer
|
|
51
50
|
# A data entry field that is preserved on a document link between a
|
52
51
|
# DocumentLinkRequest and a DocumentLinkResolveRequest.
|
53
52
|
#
|
54
|
-
# @return [LSPAny
|
53
|
+
# @return [LSPAny]
|
55
54
|
def data
|
56
55
|
attributes.fetch(:data)
|
57
56
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The client capabilities of a [DocumentLinkRequest](#DocumentLinkRequest).
|
6
|
-
#
|
7
4
|
class DocumentLinkClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, tooltip_support: nil)
|
9
6
|
@attributes = {}
|
@@ -17,7 +14,7 @@ module LanguageServer
|
|
17
14
|
#
|
18
15
|
# Whether document link supports dynamic registration.
|
19
16
|
#
|
20
|
-
# @return [boolean
|
17
|
+
# @return [boolean]
|
21
18
|
def dynamic_registration
|
22
19
|
attributes.fetch(:dynamicRegistration)
|
23
20
|
end
|
@@ -25,9 +22,7 @@ module LanguageServer
|
|
25
22
|
#
|
26
23
|
# Whether the client supports the `tooltip` property on `DocumentLink`.
|
27
24
|
#
|
28
|
-
# @
|
29
|
-
#
|
30
|
-
# @return [boolean | nil]
|
25
|
+
# @return [boolean]
|
31
26
|
def tooltip_support
|
32
27
|
attributes.fetch(:tooltipSupport)
|
33
28
|
end
|
@@ -1,32 +1,29 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Provider options for a [DocumentLinkRequest](#DocumentLinkRequest).
|
6
|
-
#
|
7
4
|
class DocumentLinkOptions
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_progress: nil, resolve_provider: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
12
8
|
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
9
|
+
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
13
10
|
|
14
11
|
@attributes.freeze
|
15
12
|
end
|
16
13
|
|
14
|
+
# @return [boolean]
|
15
|
+
def work_done_progress
|
16
|
+
attributes.fetch(:workDoneProgress)
|
17
|
+
end
|
18
|
+
|
17
19
|
#
|
18
20
|
# Document links have a resolve provider as well.
|
19
21
|
#
|
20
|
-
# @return [boolean
|
22
|
+
# @return [boolean]
|
21
23
|
def resolve_provider
|
22
24
|
attributes.fetch(:resolveProvider)
|
23
25
|
end
|
24
26
|
|
25
|
-
# @return [boolean | nil]
|
26
|
-
def work_done_progress
|
27
|
-
attributes.fetch(:workDoneProgress)
|
28
|
-
end
|
29
|
-
|
30
27
|
attr_reader :attributes
|
31
28
|
|
32
29
|
def to_hash
|
@@ -1,45 +1,42 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameters of a [DocumentLinkRequest](#DocumentLinkRequest).
|
6
|
-
#
|
7
4
|
class DocumentLinkParams
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, text_document:)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:textDocument] = text_document
|
12
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
13
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:textDocument] = text_document
|
14
11
|
|
15
12
|
@attributes.freeze
|
16
13
|
end
|
17
14
|
|
18
|
-
#
|
19
|
-
# The document to provide document links for.
|
20
|
-
#
|
21
|
-
# @return [TextDocumentIdentifier]
|
22
|
-
def text_document
|
23
|
-
attributes.fetch(:textDocument)
|
24
|
-
end
|
25
|
-
|
26
15
|
#
|
27
16
|
# An optional token that a server can use to report work done progress.
|
28
17
|
#
|
29
|
-
# @return [ProgressToken
|
18
|
+
# @return [ProgressToken]
|
30
19
|
def work_done_token
|
31
20
|
attributes.fetch(:workDoneToken)
|
32
21
|
end
|
33
22
|
|
34
23
|
#
|
35
|
-
# An optional token that a server can use to report partial results (e.g.
|
36
|
-
# the client.
|
24
|
+
# An optional token that a server can use to report partial results (e.g.
|
25
|
+
# streaming) to the client.
|
37
26
|
#
|
38
|
-
# @return [ProgressToken
|
27
|
+
# @return [ProgressToken]
|
39
28
|
def partial_result_token
|
40
29
|
attributes.fetch(:partialResultToken)
|
41
30
|
end
|
42
31
|
|
32
|
+
#
|
33
|
+
# The document to provide document links for.
|
34
|
+
#
|
35
|
+
# @return [TextDocumentIdentifier]
|
36
|
+
def text_document
|
37
|
+
attributes.fetch(:textDocument)
|
38
|
+
end
|
39
|
+
|
43
40
|
attr_reader :attributes
|
44
41
|
|
45
42
|
def to_hash
|
@@ -1,42 +1,39 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [DocumentLinkRequest](#DocumentLinkRequest).
|
6
|
-
#
|
7
4
|
class DocumentLinkRegistrationOptions
|
8
|
-
def initialize(document_selector:,
|
5
|
+
def initialize(document_selector:, work_done_progress: nil, resolve_provider: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
8
|
@attributes[:documentSelector] = document_selector
|
12
|
-
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
13
9
|
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
10
|
+
@attributes[:resolveProvider] = resolve_provider if resolve_provider
|
14
11
|
|
15
12
|
@attributes.freeze
|
16
13
|
end
|
17
14
|
|
18
15
|
#
|
19
|
-
# A document selector to identify the scope of the registration. If set to
|
20
|
-
# the document selector provided on the client side will be used.
|
16
|
+
# A document selector to identify the scope of the registration. If set to
|
17
|
+
# null the document selector provided on the client side will be used.
|
21
18
|
#
|
22
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
23
20
|
def document_selector
|
24
21
|
attributes.fetch(:documentSelector)
|
25
22
|
end
|
26
23
|
|
24
|
+
# @return [boolean]
|
25
|
+
def work_done_progress
|
26
|
+
attributes.fetch(:workDoneProgress)
|
27
|
+
end
|
28
|
+
|
27
29
|
#
|
28
30
|
# Document links have a resolve provider as well.
|
29
31
|
#
|
30
|
-
# @return [boolean
|
32
|
+
# @return [boolean]
|
31
33
|
def resolve_provider
|
32
34
|
attributes.fetch(:resolveProvider)
|
33
35
|
end
|
34
36
|
|
35
|
-
# @return [boolean | nil]
|
36
|
-
def work_done_progress
|
37
|
-
attributes.fetch(:workDoneProgress)
|
38
|
-
end
|
39
|
-
|
40
37
|
attr_reader :attributes
|
41
38
|
|
42
39
|
def to_hash
|
data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentOnTypeFormattingClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil)
|
9
6
|
@attributes = {}
|
@@ -16,7 +13,7 @@ module LanguageServer
|
|
16
13
|
#
|
17
14
|
# Whether on type formatting supports dynamic registration.
|
18
15
|
#
|
19
|
-
# @return [boolean
|
16
|
+
# @return [boolean]
|
20
17
|
def dynamic_registration
|
21
18
|
attributes.fetch(:dynamicRegistration)
|
22
19
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Provider options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentOnTypeFormattingOptions
|
8
5
|
def initialize(first_trigger_character:, more_trigger_character: nil)
|
9
6
|
@attributes = {}
|
@@ -25,7 +22,7 @@ module LanguageServer
|
|
25
22
|
#
|
26
23
|
# More trigger characters.
|
27
24
|
#
|
28
|
-
# @return [string[]
|
25
|
+
# @return [string[]]
|
29
26
|
def more_trigger_character
|
30
27
|
attributes.fetch(:moreTriggerCharacter)
|
31
28
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameters of a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentOnTypeFormattingParams
|
8
5
|
def initialize(text_document:, position:, ch:, options:)
|
9
6
|
@attributes = {}
|
data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [DocumentOnTypeFormattingRequest](#DocumentOnTypeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentOnTypeFormattingRegistrationOptions
|
8
5
|
def initialize(document_selector:, first_trigger_character:, more_trigger_character: nil)
|
9
6
|
@attributes = {}
|
@@ -16,10 +13,10 @@ module LanguageServer
|
|
16
13
|
end
|
17
14
|
|
18
15
|
#
|
19
|
-
# A document selector to identify the scope of the registration. If set to
|
20
|
-
# the document selector provided on the client side will be used.
|
16
|
+
# A document selector to identify the scope of the registration. If set to
|
17
|
+
# null the document selector provided on the client side will be used.
|
21
18
|
#
|
22
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
23
20
|
def document_selector
|
24
21
|
attributes.fetch(:documentSelector)
|
25
22
|
end
|
@@ -35,7 +32,7 @@ module LanguageServer
|
|
35
32
|
#
|
36
33
|
# More trigger characters.
|
37
34
|
#
|
38
|
-
# @return [string[]
|
35
|
+
# @return [string[]]
|
39
36
|
def more_trigger_character
|
40
37
|
attributes.fetch(:moreTriggerCharacter)
|
41
38
|
end
|
data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentRangeFormattingClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil)
|
9
6
|
@attributes = {}
|
@@ -14,9 +11,9 @@ module LanguageServer
|
|
14
11
|
end
|
15
12
|
|
16
13
|
#
|
17
|
-
# Whether
|
14
|
+
# Whether formatting supports dynamic registration.
|
18
15
|
#
|
19
|
-
# @return [boolean
|
16
|
+
# @return [boolean]
|
20
17
|
def dynamic_registration
|
21
18
|
attributes.fetch(:dynamicRegistration)
|
22
19
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Provider options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentRangeFormattingOptions
|
8
5
|
def initialize(work_done_progress: nil)
|
9
6
|
@attributes = {}
|
@@ -13,7 +10,7 @@ module LanguageServer
|
|
13
10
|
@attributes.freeze
|
14
11
|
end
|
15
12
|
|
16
|
-
# @return [boolean
|
13
|
+
# @return [boolean]
|
17
14
|
def work_done_progress
|
18
15
|
attributes.fetch(:workDoneProgress)
|
19
16
|
end
|
@@ -1,21 +1,26 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The parameters of a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentRangeFormattingParams
|
8
|
-
def initialize(text_document:, range:, options
|
5
|
+
def initialize(work_done_token: nil, text_document:, range:, options:)
|
9
6
|
@attributes = {}
|
10
7
|
|
8
|
+
@attributes[:workDoneToken] = work_done_token if work_done_token
|
11
9
|
@attributes[:textDocument] = text_document
|
12
10
|
@attributes[:range] = range
|
13
11
|
@attributes[:options] = options
|
14
|
-
@attributes[:workDoneToken] = work_done_token if work_done_token
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
16
|
+
#
|
17
|
+
# An optional token that a server can use to report work done progress.
|
18
|
+
#
|
19
|
+
# @return [ProgressToken]
|
20
|
+
def work_done_token
|
21
|
+
attributes.fetch(:workDoneToken)
|
22
|
+
end
|
23
|
+
|
19
24
|
#
|
20
25
|
# The document to format.
|
21
26
|
#
|
@@ -40,14 +45,6 @@ module LanguageServer
|
|
40
45
|
attributes.fetch(:options)
|
41
46
|
end
|
42
47
|
|
43
|
-
#
|
44
|
-
# An optional token that a server can use to report work done progress.
|
45
|
-
#
|
46
|
-
# @return [ProgressToken | nil]
|
47
|
-
def work_done_token
|
48
|
-
attributes.fetch(:workDoneToken)
|
49
|
-
end
|
50
|
-
|
51
48
|
attr_reader :attributes
|
52
49
|
|
53
50
|
def to_hash
|
data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [DocumentRangeFormattingRequest](#DocumentRangeFormattingRequest).
|
6
|
-
#
|
7
4
|
class DocumentRangeFormattingRegistrationOptions
|
8
5
|
def initialize(document_selector:, work_done_progress: nil)
|
9
6
|
@attributes = {}
|
@@ -15,15 +12,15 @@ module LanguageServer
|
|
15
12
|
end
|
16
13
|
|
17
14
|
#
|
18
|
-
# A document selector to identify the scope of the registration. If set to
|
19
|
-
# the document selector provided on the client side will be used.
|
15
|
+
# A document selector to identify the scope of the registration. If set to
|
16
|
+
# null the document selector provided on the client side will be used.
|
20
17
|
#
|
21
|
-
# @return [DocumentSelector
|
18
|
+
# @return [DocumentSelector]
|
22
19
|
def document_selector
|
23
20
|
attributes.fetch(:documentSelector)
|
24
21
|
end
|
25
22
|
|
26
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
27
24
|
def work_done_progress
|
28
25
|
attributes.fetch(:workDoneProgress)
|
29
26
|
end
|
@@ -4,8 +4,8 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Represents programming constructs like variables, classes, interfaces etc.
|
6
6
|
# that appear in a document. Document symbols can be hierarchical and they
|
7
|
-
# have two ranges: one that encloses its definition and one that points to
|
8
|
-
#
|
7
|
+
# have two ranges: one that encloses its definition and one that points to its
|
8
|
+
# most interesting range, e.g. the range of an identifier.
|
9
9
|
#
|
10
10
|
class DocumentSymbol
|
11
11
|
def initialize(name:, detail: nil, kind:, tags: nil, deprecated: nil, range:, selection_range:, children: nil)
|
@@ -24,8 +24,9 @@ module LanguageServer
|
|
24
24
|
end
|
25
25
|
|
26
26
|
#
|
27
|
-
# The name of this symbol. Will be displayed in the user interface and
|
28
|
-
# an empty string or a string only consisting of
|
27
|
+
# The name of this symbol. Will be displayed in the user interface and
|
28
|
+
# therefore must not be an empty string or a string only consisting of
|
29
|
+
# white spaces.
|
29
30
|
#
|
30
31
|
# @return [string]
|
31
32
|
def name
|
@@ -35,7 +36,7 @@ module LanguageServer
|
|
35
36
|
#
|
36
37
|
# More detail for this symbol, e.g the signature of a function.
|
37
38
|
#
|
38
|
-
# @return [string
|
39
|
+
# @return [string]
|
39
40
|
def detail
|
40
41
|
attributes.fetch(:detail)
|
41
42
|
end
|
@@ -51,9 +52,7 @@ module LanguageServer
|
|
51
52
|
#
|
52
53
|
# Tags for this document symbol.
|
53
54
|
#
|
54
|
-
# @
|
55
|
-
#
|
56
|
-
# @return [SymbolTag[] | nil]
|
55
|
+
# @return [1[]]
|
57
56
|
def tags
|
58
57
|
attributes.fetch(:tags)
|
59
58
|
end
|
@@ -61,17 +60,16 @@ module LanguageServer
|
|
61
60
|
#
|
62
61
|
# Indicates if this symbol is deprecated.
|
63
62
|
#
|
64
|
-
# @
|
65
|
-
#
|
66
|
-
# @return [boolean | nil]
|
63
|
+
# @return [boolean]
|
67
64
|
def deprecated
|
68
65
|
attributes.fetch(:deprecated)
|
69
66
|
end
|
70
67
|
|
71
68
|
#
|
72
|
-
# The range enclosing this symbol not including leading/trailing whitespace
|
73
|
-
# like comments. This information is typically used to
|
74
|
-
#
|
69
|
+
# The range enclosing this symbol not including leading/trailing whitespace
|
70
|
+
# but everything else like comments. This information is typically used to
|
71
|
+
# determine if the clients cursor is inside the symbol to reveal in the
|
72
|
+
# symbol in the UI.
|
75
73
|
#
|
76
74
|
# @return [Range]
|
77
75
|
def range
|
@@ -79,8 +77,8 @@ module LanguageServer
|
|
79
77
|
end
|
80
78
|
|
81
79
|
#
|
82
|
-
# The range that should be selected and revealed when this symbol is being
|
83
|
-
# Must be contained by the `range`.
|
80
|
+
# The range that should be selected and revealed when this symbol is being
|
81
|
+
# picked, e.g. the name of a function. Must be contained by the `range`.
|
84
82
|
#
|
85
83
|
# @return [Range]
|
86
84
|
def selection_range
|
@@ -90,7 +88,7 @@ module LanguageServer
|
|
90
88
|
#
|
91
89
|
# Children of this symbol, e.g. properties of a class.
|
92
90
|
#
|
93
|
-
# @return [DocumentSymbol[]
|
91
|
+
# @return [DocumentSymbol[]]
|
94
92
|
def children
|
95
93
|
attributes.fetch(:children)
|
96
94
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client Capabilities for a [DocumentSymbolRequest](#DocumentSymbolRequest).
|
6
|
-
#
|
7
4
|
class DocumentSymbolClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, symbol_kind: nil, hierarchical_document_symbol_support: nil, tag_support: nil, label_support: nil)
|
9
6
|
@attributes = {}
|
@@ -20,7 +17,7 @@ module LanguageServer
|
|
20
17
|
#
|
21
18
|
# Whether document symbol supports dynamic registration.
|
22
19
|
#
|
23
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
24
21
|
def dynamic_registration
|
25
22
|
attributes.fetch(:dynamicRegistration)
|
26
23
|
end
|
@@ -29,7 +26,7 @@ module LanguageServer
|
|
29
26
|
# Specific capabilities for the `SymbolKind` in the
|
30
27
|
# `textDocument/documentSymbol` request.
|
31
28
|
#
|
32
|
-
# @return [{ valueSet
|
29
|
+
# @return [{ valueSet?: SymbolKind[]; }]
|
33
30
|
def symbol_kind
|
34
31
|
attributes.fetch(:symbolKind)
|
35
32
|
end
|
@@ -37,7 +34,7 @@ module LanguageServer
|
|
37
34
|
#
|
38
35
|
# The client supports hierarchical document symbols.
|
39
36
|
#
|
40
|
-
# @return [boolean
|
37
|
+
# @return [boolean]
|
41
38
|
def hierarchical_document_symbol_support
|
42
39
|
attributes.fetch(:hierarchicalDocumentSymbolSupport)
|
43
40
|
end
|
@@ -47,9 +44,7 @@ module LanguageServer
|
|
47
44
|
# `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true.
|
48
45
|
# Clients supporting tags have to handle unknown tags gracefully.
|
49
46
|
#
|
50
|
-
# @
|
51
|
-
#
|
52
|
-
# @return [{ valueSet:SymbolTag[] } | nil]
|
47
|
+
# @return [{ valueSet: 1[]; }]
|
53
48
|
def tag_support
|
54
49
|
attributes.fetch(:tagSupport)
|
55
50
|
end
|
@@ -58,9 +53,7 @@ module LanguageServer
|
|
58
53
|
# The client supports an additional label presented in the UI when
|
59
54
|
# registering a document symbol provider.
|
60
55
|
#
|
61
|
-
# @
|
62
|
-
#
|
63
|
-
# @return [boolean | nil]
|
56
|
+
# @return [boolean]
|
64
57
|
def label_support
|
65
58
|
attributes.fetch(:labelSupport)
|
66
59
|
end
|