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,20 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# A workspace edit represents changes to many resources managed in the workspace. The edit
|
6
|
-
# should either provide `changes` or `documentChanges`. If documentChanges are present
|
7
|
-
# they are preferred over `changes` if the client can handle versioned document edits.
|
8
|
-
#
|
9
|
-
# Since version 3.13.0 a workspace edit can contain resource operations as well. If resource
|
10
|
-
# operations are present clients need to execute the operations in the order in which they
|
11
|
-
# are provided. So a workspace edit for example can consist of the following two changes:
|
12
|
-
# (1) a create file a.txt and (2) a text document edit which insert text into file a.txt.
|
13
|
-
#
|
14
|
-
# An invalid sequence (e.g. (1) delete file a.txt and (2) insert text into file a.txt) will
|
15
|
-
# cause failure of the operation. How the client recovers from the failure is described by
|
16
|
-
# the client capability: `workspace.workspaceEdit.failureHandling`
|
17
|
-
#
|
18
4
|
class WorkspaceEdit
|
19
5
|
def initialize(changes: nil, document_changes: nil, change_annotations: nil)
|
20
6
|
@attributes = {}
|
@@ -29,37 +15,40 @@ module LanguageServer
|
|
29
15
|
#
|
30
16
|
# Holds changes to existing resources.
|
31
17
|
#
|
32
|
-
# @return [
|
18
|
+
# @return [{}]
|
33
19
|
def changes
|
34
20
|
attributes.fetch(:changes)
|
35
21
|
end
|
36
22
|
|
37
23
|
#
|
38
|
-
# Depending on the client capability
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
24
|
+
# Depending on the client capability
|
25
|
+
# `workspace.workspaceEdit.resourceOperations` document changes are either
|
26
|
+
# an array of `TextDocumentEdit`s to express changes to n different text
|
27
|
+
# documents where each text document edit addresses a specific version of
|
28
|
+
# a text document. Or it can contain above `TextDocumentEdit`s mixed with
|
29
|
+
# create, rename and delete file / folder operations.
|
42
30
|
#
|
43
31
|
# Whether a client supports versioned document edits is expressed via
|
44
32
|
# `workspace.workspaceEdit.documentChanges` client capability.
|
45
33
|
#
|
46
|
-
# If a client neither supports `documentChanges` nor
|
47
|
-
# only plain `TextEdit`s
|
34
|
+
# If a client neither supports `documentChanges` nor
|
35
|
+
# `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s
|
36
|
+
# using the `changes` property are supported.
|
48
37
|
#
|
49
|
-
# @return [TextDocumentEdit | CreateFile | RenameFile | DeleteFile[]
|
38
|
+
# @return [TextDocumentEdit[] | (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[]]
|
50
39
|
def document_changes
|
51
40
|
attributes.fetch(:documentChanges)
|
52
41
|
end
|
53
42
|
|
54
43
|
#
|
55
|
-
# A map of change annotations that can be referenced in
|
56
|
-
# delete file / folder
|
44
|
+
# A map of change annotations that can be referenced in
|
45
|
+
# `AnnotatedTextEdit`s or create, rename and delete file / folder
|
46
|
+
# operations.
|
57
47
|
#
|
58
|
-
# Whether clients honor this property depends on the client capability
|
48
|
+
# Whether clients honor this property depends on the client capability
|
49
|
+
# `workspace.changeAnnotationSupport`.
|
59
50
|
#
|
60
|
-
# @
|
61
|
-
#
|
62
|
-
# @return [ChangeAnnotationIdentifier => ChangeAnnotation | nil]
|
51
|
+
# @return [{ [id: string]: ChangeAnnotation; }]
|
63
52
|
def change_annotations
|
64
53
|
attributes.fetch(:changeAnnotations)
|
65
54
|
end
|
@@ -17,7 +17,7 @@ module LanguageServer
|
|
17
17
|
#
|
18
18
|
# The client supports versioned document changes in `WorkspaceEdit`s
|
19
19
|
#
|
20
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
21
21
|
def document_changes
|
22
22
|
attributes.fetch(:documentChanges)
|
23
23
|
end
|
@@ -26,9 +26,7 @@ module LanguageServer
|
|
26
26
|
# The resource operations the client supports. Clients should at least
|
27
27
|
# support 'create', 'rename' and 'delete' files and folders.
|
28
28
|
#
|
29
|
-
# @
|
30
|
-
#
|
31
|
-
# @return [ResourceOperationKind[] | nil]
|
29
|
+
# @return [ResourceOperationKind[]]
|
32
30
|
def resource_operations
|
33
31
|
attributes.fetch(:resourceOperations)
|
34
32
|
end
|
@@ -37,9 +35,7 @@ module LanguageServer
|
|
37
35
|
# The failure handling strategy of a client if applying the workspace edit
|
38
36
|
# fails.
|
39
37
|
#
|
40
|
-
# @
|
41
|
-
#
|
42
|
-
# @return [FailureHandlingKind | nil]
|
38
|
+
# @return [FailureHandlingKind]
|
43
39
|
def failure_handling
|
44
40
|
attributes.fetch(:failureHandling)
|
45
41
|
end
|
@@ -48,12 +44,9 @@ module LanguageServer
|
|
48
44
|
# Whether the client normalizes line endings to the client specific
|
49
45
|
# setting.
|
50
46
|
# If set to `true` the client will normalize line ending characters
|
51
|
-
# in a workspace edit to the client
|
52
|
-
# character.
|
47
|
+
# in a workspace edit to the client specific new line character(s).
|
53
48
|
#
|
54
|
-
# @
|
55
|
-
#
|
56
|
-
# @return [boolean | nil]
|
49
|
+
# @return [boolean]
|
57
50
|
def normalizes_line_endings
|
58
51
|
attributes.fetch(:normalizesLineEndings)
|
59
52
|
end
|
@@ -62,9 +55,7 @@ module LanguageServer
|
|
62
55
|
# Whether the client in general supports change annotations on text edits,
|
63
56
|
# create file, rename file and delete file changes.
|
64
57
|
#
|
65
|
-
# @
|
66
|
-
#
|
67
|
-
# @return [{ groupsOnLabel:boolean } | nil]
|
58
|
+
# @return [{ groupsOnLabel?: boolean; }]
|
68
59
|
def change_annotation_support
|
69
60
|
attributes.fetch(:changeAnnotationSupport)
|
70
61
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# A workspace folder inside a client.
|
6
|
-
#
|
7
4
|
class WorkspaceFolder
|
8
5
|
def initialize(uri:, name:)
|
9
6
|
@attributes = {}
|
@@ -17,7 +14,7 @@ module LanguageServer
|
|
17
14
|
#
|
18
15
|
# The associated URI for this workspace folder.
|
19
16
|
#
|
20
|
-
# @return [
|
17
|
+
# @return [string]
|
21
18
|
def uri
|
22
19
|
attributes.fetch(:uri)
|
23
20
|
end
|
@@ -14,7 +14,7 @@ module LanguageServer
|
|
14
14
|
#
|
15
15
|
# The server has support for workspace folders
|
16
16
|
#
|
17
|
-
# @return [boolean
|
17
|
+
# @return [boolean]
|
18
18
|
def supported
|
19
19
|
attributes.fetch(:supported)
|
20
20
|
end
|
@@ -23,12 +23,12 @@ module LanguageServer
|
|
23
23
|
# Whether the server wants to receive workspace folder
|
24
24
|
# change notifications.
|
25
25
|
#
|
26
|
-
# If a string is provided the string is treated as an ID
|
26
|
+
# If a string is provided, the string is treated as an ID
|
27
27
|
# under which the notification is registered on the client
|
28
28
|
# side. The ID can be used to unregister for these events
|
29
29
|
# using the `client/unregisterCapability` request.
|
30
30
|
#
|
31
|
-
# @return [string | boolean
|
31
|
+
# @return [string | boolean]
|
32
32
|
def change_notifications
|
33
33
|
attributes.fetch(:changeNotifications)
|
34
34
|
end
|
@@ -4,42 +4,23 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A full document diagnostic report for a workspace diagnostic result.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class WorkspaceFullDocumentDiagnosticReport
|
10
|
-
def initialize(
|
8
|
+
def initialize(kind:, result_id: nil, items:, uri:, version:)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
|
-
@attributes[:uri] = uri
|
14
|
-
@attributes[:version] = version
|
15
11
|
@attributes[:kind] = kind
|
16
12
|
@attributes[:resultId] = result_id if result_id
|
17
13
|
@attributes[:items] = items
|
14
|
+
@attributes[:uri] = uri
|
15
|
+
@attributes[:version] = version
|
18
16
|
|
19
17
|
@attributes.freeze
|
20
18
|
end
|
21
19
|
|
22
|
-
#
|
23
|
-
# The URI for which diagnostic information is reported.
|
24
|
-
#
|
25
|
-
# @return [DocumentUri]
|
26
|
-
def uri
|
27
|
-
attributes.fetch(:uri)
|
28
|
-
end
|
29
|
-
|
30
|
-
#
|
31
|
-
# The version number for which the diagnostics are reported.
|
32
|
-
# If the document is not marked as open `null` can be provided.
|
33
|
-
#
|
34
|
-
# @return [integer | null]
|
35
|
-
def version
|
36
|
-
attributes.fetch(:version)
|
37
|
-
end
|
38
|
-
|
39
20
|
#
|
40
21
|
# A full document diagnostic report.
|
41
22
|
#
|
42
|
-
# @return [
|
23
|
+
# @return [any]
|
43
24
|
def kind
|
44
25
|
attributes.fetch(:kind)
|
45
26
|
end
|
@@ -49,7 +30,7 @@ module LanguageServer
|
|
49
30
|
# be sent on the next diagnostic request for the
|
50
31
|
# same document.
|
51
32
|
#
|
52
|
-
# @return [string
|
33
|
+
# @return [string]
|
53
34
|
def result_id
|
54
35
|
attributes.fetch(:resultId)
|
55
36
|
end
|
@@ -62,6 +43,23 @@ module LanguageServer
|
|
62
43
|
attributes.fetch(:items)
|
63
44
|
end
|
64
45
|
|
46
|
+
#
|
47
|
+
# The URI for which diagnostic information is reported.
|
48
|
+
#
|
49
|
+
# @return [string]
|
50
|
+
def uri
|
51
|
+
attributes.fetch(:uri)
|
52
|
+
end
|
53
|
+
|
54
|
+
#
|
55
|
+
# The version number for which the diagnostics are reported.
|
56
|
+
# If the document is not marked as open `null` can be provided.
|
57
|
+
#
|
58
|
+
# @return [number]
|
59
|
+
def version
|
60
|
+
attributes.fetch(:version)
|
61
|
+
end
|
62
|
+
|
65
63
|
attr_reader :attributes
|
66
64
|
|
67
65
|
def to_hash
|
@@ -2,47 +2,22 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# A special workspace symbol that supports locations without a range
|
6
|
-
#
|
7
|
-
# See also SymbolInformation.
|
8
|
-
#
|
9
|
-
# @since 3.17.0
|
5
|
+
# A special workspace symbol that supports locations without a range
|
10
6
|
#
|
11
7
|
class WorkspaceSymbol
|
12
|
-
def initialize(
|
8
|
+
def initialize(name:, kind:, tags: nil, container_name: nil, location:, data: nil)
|
13
9
|
@attributes = {}
|
14
10
|
|
15
|
-
@attributes[:location] = location
|
16
|
-
@attributes[:data] = data if data
|
17
11
|
@attributes[:name] = name
|
18
12
|
@attributes[:kind] = kind
|
19
13
|
@attributes[:tags] = tags if tags
|
20
14
|
@attributes[:containerName] = container_name if container_name
|
15
|
+
@attributes[:location] = location
|
16
|
+
@attributes[:data] = data if data
|
21
17
|
|
22
18
|
@attributes.freeze
|
23
19
|
end
|
24
20
|
|
25
|
-
#
|
26
|
-
# The location of the symbol. Whether a server is allowed to
|
27
|
-
# return a location without a range depends on the client
|
28
|
-
# capability `workspace.symbol.resolveSupport`.
|
29
|
-
#
|
30
|
-
# See SymbolInformation#location for more details.
|
31
|
-
#
|
32
|
-
# @return [Location | { uri:DocumentUri }]
|
33
|
-
def location
|
34
|
-
attributes.fetch(:location)
|
35
|
-
end
|
36
|
-
|
37
|
-
#
|
38
|
-
# A data entry field that is preserved on a workspace symbol between a
|
39
|
-
# workspace symbol request and a workspace symbol resolve request.
|
40
|
-
#
|
41
|
-
# @return [LSPAny | nil]
|
42
|
-
def data
|
43
|
-
attributes.fetch(:data)
|
44
|
-
end
|
45
|
-
|
46
21
|
#
|
47
22
|
# The name of this symbol.
|
48
23
|
#
|
@@ -60,11 +35,9 @@ module LanguageServer
|
|
60
35
|
end
|
61
36
|
|
62
37
|
#
|
63
|
-
# Tags for this
|
64
|
-
#
|
65
|
-
# @since 3.16.0
|
38
|
+
# Tags for this completion item.
|
66
39
|
#
|
67
|
-
# @return [
|
40
|
+
# @return [1[]]
|
68
41
|
def tags
|
69
42
|
attributes.fetch(:tags)
|
70
43
|
end
|
@@ -75,11 +48,32 @@ module LanguageServer
|
|
75
48
|
# if necessary). It can't be used to re-infer a hierarchy for the document
|
76
49
|
# symbols.
|
77
50
|
#
|
78
|
-
# @return [string
|
51
|
+
# @return [string]
|
79
52
|
def container_name
|
80
53
|
attributes.fetch(:containerName)
|
81
54
|
end
|
82
55
|
|
56
|
+
#
|
57
|
+
# The location of this symbol. Whether a server is allowed to
|
58
|
+
# return a location without a range depends on the client
|
59
|
+
# capability `workspace.symbol.resolveSupport`.
|
60
|
+
#
|
61
|
+
# See also `SymbolInformation.location`.
|
62
|
+
#
|
63
|
+
# @return [Location | { uri: string; }]
|
64
|
+
def location
|
65
|
+
attributes.fetch(:location)
|
66
|
+
end
|
67
|
+
|
68
|
+
#
|
69
|
+
# A data entry field that is preserved on a workspace symbol between a
|
70
|
+
# workspace symbol request and a workspace symbol resolve request.
|
71
|
+
#
|
72
|
+
# @return [LSPAny]
|
73
|
+
def data
|
74
|
+
attributes.fetch(:data)
|
75
|
+
end
|
76
|
+
|
83
77
|
attr_reader :attributes
|
84
78
|
|
85
79
|
def to_hash
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
6
|
-
#
|
7
4
|
class WorkspaceSymbolClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil, resolve_support: nil)
|
9
6
|
@attributes = {}
|
@@ -19,26 +16,25 @@ module LanguageServer
|
|
19
16
|
#
|
20
17
|
# Symbol request supports dynamic registration.
|
21
18
|
#
|
22
|
-
# @return [boolean
|
19
|
+
# @return [boolean]
|
23
20
|
def dynamic_registration
|
24
21
|
attributes.fetch(:dynamicRegistration)
|
25
22
|
end
|
26
23
|
|
27
24
|
#
|
28
|
-
# Specific capabilities for the `SymbolKind` in the `workspace/symbol`
|
25
|
+
# Specific capabilities for the `SymbolKind` in the `workspace/symbol`
|
26
|
+
# request.
|
29
27
|
#
|
30
|
-
# @return [{ valueSet
|
28
|
+
# @return [{ valueSet?: SymbolKind[]; }]
|
31
29
|
def symbol_kind
|
32
30
|
attributes.fetch(:symbolKind)
|
33
31
|
end
|
34
32
|
|
35
33
|
#
|
36
|
-
# The client supports tags on `SymbolInformation`.
|
34
|
+
# The client supports tags on `SymbolInformation` and `WorkspaceSymbol`.
|
37
35
|
# Clients supporting tags have to handle unknown tags gracefully.
|
38
36
|
#
|
39
|
-
# @
|
40
|
-
#
|
41
|
-
# @return [{ valueSet:SymbolTag[] } | nil]
|
37
|
+
# @return [{ valueSet: 1[]; }]
|
42
38
|
def tag_support
|
43
39
|
attributes.fetch(:tagSupport)
|
44
40
|
end
|
@@ -48,9 +44,7 @@ module LanguageServer
|
|
48
44
|
# request `workspaceSymbol/resolve` to the server to resolve additional
|
49
45
|
# properties.
|
50
46
|
#
|
51
|
-
# @
|
52
|
-
#
|
53
|
-
# @return [{ properties:string[] } | nil]
|
47
|
+
# @return [{ properties: string[]; }]
|
54
48
|
def resolve_support
|
55
49
|
attributes.fetch(:resolveSupport)
|
56
50
|
end
|
@@ -1,35 +1,30 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Server capabilities for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
6
|
-
#
|
7
4
|
class WorkspaceSymbolOptions
|
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
|
# The server provides support to resolve additional
|
19
21
|
# information for a workspace symbol.
|
20
22
|
#
|
21
|
-
# @
|
22
|
-
#
|
23
|
-
# @return [boolean | nil]
|
23
|
+
# @return [boolean]
|
24
24
|
def resolve_provider
|
25
25
|
attributes.fetch(:resolveProvider)
|
26
26
|
end
|
27
27
|
|
28
|
-
# @return [boolean | nil]
|
29
|
-
def work_done_progress
|
30
|
-
attributes.fetch(:workDoneProgress)
|
31
|
-
end
|
32
|
-
|
33
28
|
attr_reader :attributes
|
34
29
|
|
35
30
|
def to_hash
|
@@ -2,45 +2,45 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# The parameters of a
|
5
|
+
# The parameters of a Workspace Symbol Request.
|
6
6
|
#
|
7
7
|
class WorkspaceSymbolParams
|
8
|
-
def initialize(
|
8
|
+
def initialize(work_done_token: nil, partial_result_token: nil, query:)
|
9
9
|
@attributes = {}
|
10
10
|
|
11
|
-
@attributes[:query] = query
|
12
11
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
13
12
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
13
|
+
@attributes[:query] = query
|
14
14
|
|
15
15
|
@attributes.freeze
|
16
16
|
end
|
17
17
|
|
18
|
-
#
|
19
|
-
# A query string to filter symbols by. Clients may send an empty
|
20
|
-
# string here to request all symbols.
|
21
|
-
#
|
22
|
-
# @return [string]
|
23
|
-
def query
|
24
|
-
attributes.fetch(:query)
|
25
|
-
end
|
26
|
-
|
27
18
|
#
|
28
19
|
# An optional token that a server can use to report work done progress.
|
29
20
|
#
|
30
|
-
# @return [ProgressToken
|
21
|
+
# @return [ProgressToken]
|
31
22
|
def work_done_token
|
32
23
|
attributes.fetch(:workDoneToken)
|
33
24
|
end
|
34
25
|
|
35
26
|
#
|
36
|
-
# An optional token that a server can use to report partial results (e.g.
|
37
|
-
# the client.
|
27
|
+
# An optional token that a server can use to report partial results (e.g.
|
28
|
+
# streaming) to the client.
|
38
29
|
#
|
39
|
-
# @return [ProgressToken
|
30
|
+
# @return [ProgressToken]
|
40
31
|
def partial_result_token
|
41
32
|
attributes.fetch(:partialResultToken)
|
42
33
|
end
|
43
34
|
|
35
|
+
#
|
36
|
+
# A query string to filter symbols by. Clients may send an empty
|
37
|
+
# string here to request all symbols.
|
38
|
+
#
|
39
|
+
# @return [string]
|
40
|
+
def query
|
41
|
+
attributes.fetch(:query)
|
42
|
+
end
|
43
|
+
|
44
44
|
attr_reader :attributes
|
45
45
|
|
46
46
|
def to_hash
|
@@ -1,35 +1,30 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [WorkspaceSymbolRequest](#WorkspaceSymbolRequest).
|
6
|
-
#
|
7
4
|
class WorkspaceSymbolRegistrationOptions
|
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
|
# The server provides support to resolve additional
|
19
21
|
# information for a workspace symbol.
|
20
22
|
#
|
21
|
-
# @
|
22
|
-
#
|
23
|
-
# @return [boolean | nil]
|
23
|
+
# @return [boolean]
|
24
24
|
def resolve_provider
|
25
25
|
attributes.fetch(:resolveProvider)
|
26
26
|
end
|
27
27
|
|
28
|
-
# @return [boolean | nil]
|
29
|
-
def work_done_progress
|
30
|
-
attributes.fetch(:workDoneProgress)
|
31
|
-
end
|
32
|
-
|
33
28
|
attr_reader :attributes
|
34
29
|
|
35
30
|
def to_hash
|
data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb
CHANGED
@@ -4,44 +4,25 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# An unchanged document diagnostic report for a workspace diagnostic result.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class WorkspaceUnchangedDocumentDiagnosticReport
|
10
|
-
def initialize(
|
8
|
+
def initialize(kind:, result_id:, uri:, version:)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
|
-
@attributes[:uri] = uri
|
14
|
-
@attributes[:version] = version
|
15
11
|
@attributes[:kind] = kind
|
16
12
|
@attributes[:resultId] = result_id
|
13
|
+
@attributes[:uri] = uri
|
14
|
+
@attributes[:version] = version
|
17
15
|
|
18
16
|
@attributes.freeze
|
19
17
|
end
|
20
18
|
|
21
|
-
#
|
22
|
-
# The URI for which diagnostic information is reported.
|
23
|
-
#
|
24
|
-
# @return [DocumentUri]
|
25
|
-
def uri
|
26
|
-
attributes.fetch(:uri)
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# The version number for which the diagnostics are reported.
|
31
|
-
# If the document is not marked as open `null` can be provided.
|
32
|
-
#
|
33
|
-
# @return [integer | null]
|
34
|
-
def version
|
35
|
-
attributes.fetch(:version)
|
36
|
-
end
|
37
|
-
|
38
19
|
#
|
39
20
|
# A document diagnostic report indicating
|
40
21
|
# no changes to the last result. A server can
|
41
22
|
# only return `unchanged` if result ids are
|
42
23
|
# provided.
|
43
24
|
#
|
44
|
-
# @return [
|
25
|
+
# @return [any]
|
45
26
|
def kind
|
46
27
|
attributes.fetch(:kind)
|
47
28
|
end
|
@@ -55,6 +36,23 @@ module LanguageServer
|
|
55
36
|
attributes.fetch(:resultId)
|
56
37
|
end
|
57
38
|
|
39
|
+
#
|
40
|
+
# The URI for which diagnostic information is reported.
|
41
|
+
#
|
42
|
+
# @return [string]
|
43
|
+
def uri
|
44
|
+
attributes.fetch(:uri)
|
45
|
+
end
|
46
|
+
|
47
|
+
#
|
48
|
+
# The version number for which the diagnostics are reported.
|
49
|
+
# If the document is not marked as open `null` can be provided.
|
50
|
+
#
|
51
|
+
# @return [number]
|
52
|
+
def version
|
53
|
+
attributes.fetch(:version)
|
54
|
+
end
|
55
|
+
|
58
56
|
attr_reader :attributes
|
59
57
|
|
60
58
|
def to_hash
|