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,52 +1,49 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# A parameter literal used in selection range requests.
|
6
|
-
#
|
7
4
|
class SelectionRangeParams
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, text_document:, positions:)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:textDocument] = text_document
|
12
|
-
@attributes[:positions] = positions
|
13
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
14
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:textDocument] = text_document
|
11
|
+
@attributes[:positions] = positions
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
19
16
|
#
|
20
|
-
#
|
17
|
+
# An optional token that a server can use to report work done progress.
|
21
18
|
#
|
22
|
-
# @return [
|
23
|
-
def
|
24
|
-
attributes.fetch(:
|
19
|
+
# @return [ProgressToken]
|
20
|
+
def work_done_token
|
21
|
+
attributes.fetch(:workDoneToken)
|
25
22
|
end
|
26
23
|
|
27
24
|
#
|
28
|
-
#
|
25
|
+
# An optional token that a server can use to report partial results (e.g.
|
26
|
+
# streaming) to the client.
|
29
27
|
#
|
30
|
-
# @return [
|
31
|
-
def
|
32
|
-
attributes.fetch(:
|
28
|
+
# @return [ProgressToken]
|
29
|
+
def partial_result_token
|
30
|
+
attributes.fetch(:partialResultToken)
|
33
31
|
end
|
34
32
|
|
35
33
|
#
|
36
|
-
#
|
34
|
+
# The text document.
|
37
35
|
#
|
38
|
-
# @return [
|
39
|
-
def
|
40
|
-
attributes.fetch(:
|
36
|
+
# @return [TextDocumentIdentifier]
|
37
|
+
def text_document
|
38
|
+
attributes.fetch(:textDocument)
|
41
39
|
end
|
42
40
|
|
43
41
|
#
|
44
|
-
#
|
45
|
-
# the client.
|
42
|
+
# The positions inside the text document.
|
46
43
|
#
|
47
|
-
# @return [
|
48
|
-
def
|
49
|
-
attributes.fetch(:
|
44
|
+
# @return [Position[]]
|
45
|
+
def positions
|
46
|
+
attributes.fetch(:positions)
|
50
47
|
end
|
51
48
|
|
52
49
|
attr_reader :attributes
|
@@ -12,16 +12,16 @@ module LanguageServer
|
|
12
12
|
@attributes.freeze
|
13
13
|
end
|
14
14
|
|
15
|
-
# @return [boolean
|
15
|
+
# @return [boolean]
|
16
16
|
def work_done_progress
|
17
17
|
attributes.fetch(:workDoneProgress)
|
18
18
|
end
|
19
19
|
|
20
20
|
#
|
21
|
-
# A document selector to identify the scope of the registration. If set to
|
22
|
-
# the document selector provided on the client side will be used.
|
21
|
+
# A document selector to identify the scope of the registration. If set to
|
22
|
+
# null the document selector provided on the client side will be used.
|
23
23
|
#
|
24
|
-
# @return [DocumentSelector
|
24
|
+
# @return [DocumentSelector]
|
25
25
|
def document_selector
|
26
26
|
attributes.fetch(:documentSelector)
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module LanguageServer
|
|
30
30
|
# The id used to register the request. The id can be used to deregister
|
31
31
|
# the request again. See also Registration#id.
|
32
32
|
#
|
33
|
-
# @return [string
|
33
|
+
# @return [string]
|
34
34
|
def id
|
35
35
|
attributes.fetch(:id)
|
36
36
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokens
|
8
5
|
def initialize(result_id: nil, data:)
|
9
6
|
@attributes = {}
|
@@ -20,7 +17,7 @@ module LanguageServer
|
|
20
17
|
# A server can then instead of computing all semantic tokens again simply
|
21
18
|
# send a delta.
|
22
19
|
#
|
23
|
-
# @return [string
|
20
|
+
# @return [string]
|
24
21
|
def result_id
|
25
22
|
attributes.fetch(:resultId)
|
26
23
|
end
|
@@ -28,7 +25,7 @@ module LanguageServer
|
|
28
25
|
#
|
29
26
|
# The actual tokens.
|
30
27
|
#
|
31
|
-
# @return [
|
28
|
+
# @return [number[]]
|
32
29
|
def data
|
33
30
|
attributes.fetch(:data)
|
34
31
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, requests:, token_types:, token_modifiers:, formats:, overlapping_token_support: nil, multiline_token_support: nil, server_cancel_support: nil, augments_syntax_tokens: nil)
|
9
6
|
@attributes = {}
|
@@ -22,11 +19,12 @@ module LanguageServer
|
|
22
19
|
end
|
23
20
|
|
24
21
|
#
|
25
|
-
# Whether implementation supports dynamic registration. If this is set to
|
26
|
-
# the client supports the new `(TextDocumentRegistrationOptions &
|
27
|
-
# return value for the corresponding server
|
22
|
+
# Whether implementation supports dynamic registration. If this is set to
|
23
|
+
# `true` the client supports the new `(TextDocumentRegistrationOptions &
|
24
|
+
# StaticRegistrationOptions)` return value for the corresponding server
|
25
|
+
# capability as well.
|
28
26
|
#
|
29
|
-
# @return [boolean
|
27
|
+
# @return [boolean]
|
30
28
|
def dynamic_registration
|
31
29
|
attributes.fetch(:dynamicRegistration)
|
32
30
|
end
|
@@ -41,7 +39,7 @@ module LanguageServer
|
|
41
39
|
# range provider the client might not render a minimap correctly or might
|
42
40
|
# even decide to not show any semantic tokens at all.
|
43
41
|
#
|
44
|
-
# @return [{ range
|
42
|
+
# @return [{ range?: boolean | {}; full?: boolean | { delta?: boolean; }; }]
|
45
43
|
def requests
|
46
44
|
attributes.fetch(:requests)
|
47
45
|
end
|
@@ -63,9 +61,9 @@ module LanguageServer
|
|
63
61
|
end
|
64
62
|
|
65
63
|
#
|
66
|
-
# The
|
64
|
+
# The formats the clients supports.
|
67
65
|
#
|
68
|
-
# @return [
|
66
|
+
# @return ["relative"[]]
|
69
67
|
def formats
|
70
68
|
attributes.fetch(:formats)
|
71
69
|
end
|
@@ -73,7 +71,7 @@ module LanguageServer
|
|
73
71
|
#
|
74
72
|
# Whether the client supports tokens that can overlap each other.
|
75
73
|
#
|
76
|
-
# @return [boolean
|
74
|
+
# @return [boolean]
|
77
75
|
def overlapping_token_support
|
78
76
|
attributes.fetch(:overlappingTokenSupport)
|
79
77
|
end
|
@@ -81,7 +79,7 @@ module LanguageServer
|
|
81
79
|
#
|
82
80
|
# Whether the client supports tokens that can span multiple lines.
|
83
81
|
#
|
84
|
-
# @return [boolean
|
82
|
+
# @return [boolean]
|
85
83
|
def multiline_token_support
|
86
84
|
attributes.fetch(:multilineTokenSupport)
|
87
85
|
end
|
@@ -89,12 +87,10 @@ module LanguageServer
|
|
89
87
|
#
|
90
88
|
# Whether the client allows the server to actively cancel a
|
91
89
|
# semantic token request, e.g. supports returning
|
92
|
-
#
|
90
|
+
# ErrorCodes.ServerCancelled. If a server does the client
|
93
91
|
# needs to retrigger the request.
|
94
92
|
#
|
95
|
-
# @
|
96
|
-
#
|
97
|
-
# @return [boolean | nil]
|
93
|
+
# @return [boolean]
|
98
94
|
def server_cancel_support
|
99
95
|
attributes.fetch(:serverCancelSupport)
|
100
96
|
end
|
@@ -109,9 +105,7 @@ module LanguageServer
|
|
109
105
|
# If the value is `undefined` then the client behavior is not
|
110
106
|
# specified.
|
111
107
|
#
|
112
|
-
# @
|
113
|
-
#
|
114
|
-
# @return [boolean | nil]
|
108
|
+
# @return [boolean]
|
115
109
|
def augments_syntax_tokens
|
116
110
|
attributes.fetch(:augmentsSyntaxTokens)
|
117
111
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensDelta
|
8
5
|
def initialize(result_id: nil, edits:)
|
9
6
|
@attributes = {}
|
@@ -14,13 +11,14 @@ module LanguageServer
|
|
14
11
|
@attributes.freeze
|
15
12
|
end
|
16
13
|
|
17
|
-
# @return [string
|
14
|
+
# @return [string]
|
18
15
|
def result_id
|
19
16
|
attributes.fetch(:resultId)
|
20
17
|
end
|
21
18
|
|
22
19
|
#
|
23
|
-
# The semantic token edits to transform a previous result into a new
|
20
|
+
# The semantic token edits to transform a previous result into a new
|
21
|
+
# result.
|
24
22
|
#
|
25
23
|
# @return [SemanticTokensEdit[]]
|
26
24
|
def edits
|
@@ -1,53 +1,50 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensDeltaParams
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, text_document:, previous_result_id:)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:textDocument] = text_document
|
12
|
-
@attributes[:previousResultId] = previous_result_id
|
13
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
14
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:textDocument] = text_document
|
11
|
+
@attributes[:previousResultId] = previous_result_id
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
19
16
|
#
|
20
|
-
#
|
17
|
+
# An optional token that a server can use to report work done progress.
|
21
18
|
#
|
22
|
-
# @return [
|
23
|
-
def
|
24
|
-
attributes.fetch(:
|
19
|
+
# @return [ProgressToken]
|
20
|
+
def work_done_token
|
21
|
+
attributes.fetch(:workDoneToken)
|
25
22
|
end
|
26
23
|
|
27
24
|
#
|
28
|
-
#
|
29
|
-
#
|
25
|
+
# An optional token that a server can use to report partial results (e.g.
|
26
|
+
# streaming) to the client.
|
30
27
|
#
|
31
|
-
# @return [
|
32
|
-
def
|
33
|
-
attributes.fetch(:
|
28
|
+
# @return [ProgressToken]
|
29
|
+
def partial_result_token
|
30
|
+
attributes.fetch(:partialResultToken)
|
34
31
|
end
|
35
32
|
|
36
33
|
#
|
37
|
-
#
|
34
|
+
# The text document.
|
38
35
|
#
|
39
|
-
# @return [
|
40
|
-
def
|
41
|
-
attributes.fetch(:
|
36
|
+
# @return [TextDocumentIdentifier]
|
37
|
+
def text_document
|
38
|
+
attributes.fetch(:textDocument)
|
42
39
|
end
|
43
40
|
|
44
41
|
#
|
45
|
-
#
|
46
|
-
#
|
42
|
+
# The result id of a previous response. The result Id can either point to
|
43
|
+
# a full response or a delta response depending on what was received last.
|
47
44
|
#
|
48
|
-
# @return [
|
49
|
-
def
|
50
|
-
attributes.fetch(:
|
45
|
+
# @return [string]
|
46
|
+
def previous_result_id
|
47
|
+
attributes.fetch(:previousResultId)
|
51
48
|
end
|
52
49
|
|
53
50
|
attr_reader :attributes
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensEdit
|
8
5
|
def initialize(start:, delete_count:, data: nil)
|
9
6
|
@attributes = {}
|
@@ -18,7 +15,7 @@ module LanguageServer
|
|
18
15
|
#
|
19
16
|
# The start offset of the edit.
|
20
17
|
#
|
21
|
-
# @return [
|
18
|
+
# @return [number]
|
22
19
|
def start
|
23
20
|
attributes.fetch(:start)
|
24
21
|
end
|
@@ -26,7 +23,7 @@ module LanguageServer
|
|
26
23
|
#
|
27
24
|
# The count of elements to remove.
|
28
25
|
#
|
29
|
-
# @return [
|
26
|
+
# @return [number]
|
30
27
|
def delete_count
|
31
28
|
attributes.fetch(:deleteCount)
|
32
29
|
end
|
@@ -34,7 +31,7 @@ module LanguageServer
|
|
34
31
|
#
|
35
32
|
# The elements to insert.
|
36
33
|
#
|
37
|
-
# @return [
|
34
|
+
# @return [number[]]
|
38
35
|
def data
|
39
36
|
attributes.fetch(:data)
|
40
37
|
end
|
@@ -1,21 +1,23 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensOptions
|
8
|
-
def initialize(legend:, range: nil, full: nil
|
5
|
+
def initialize(work_done_progress: nil, legend:, range: nil, full: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
8
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
11
9
|
@attributes[:legend] = legend
|
12
10
|
@attributes[:range] = range if range
|
13
11
|
@attributes[:full] = full if full
|
14
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
16
|
+
# @return [boolean]
|
17
|
+
def work_done_progress
|
18
|
+
attributes.fetch(:workDoneProgress)
|
19
|
+
end
|
20
|
+
|
19
21
|
#
|
20
22
|
# The legend used by the server
|
21
23
|
#
|
@@ -28,7 +30,7 @@ module LanguageServer
|
|
28
30
|
# Server supports providing semantic tokens for a specific range
|
29
31
|
# of a document.
|
30
32
|
#
|
31
|
-
# @return [boolean | {
|
33
|
+
# @return [boolean | {}]
|
32
34
|
def range
|
33
35
|
attributes.fetch(:range)
|
34
36
|
end
|
@@ -36,16 +38,11 @@ module LanguageServer
|
|
36
38
|
#
|
37
39
|
# Server supports providing semantic tokens for a full document.
|
38
40
|
#
|
39
|
-
# @return [boolean | { delta
|
41
|
+
# @return [boolean | { delta?: boolean; }]
|
40
42
|
def full
|
41
43
|
attributes.fetch(:full)
|
42
44
|
end
|
43
45
|
|
44
|
-
# @return [boolean | nil]
|
45
|
-
def work_done_progress
|
46
|
-
attributes.fetch(:workDoneProgress)
|
47
|
-
end
|
48
|
-
|
49
46
|
attr_reader :attributes
|
50
47
|
|
51
48
|
def to_hash
|
@@ -1,45 +1,42 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensParams
|
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 text document.
|
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 text document.
|
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,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensPartialResult
|
8
5
|
def initialize(data:)
|
9
6
|
@attributes = {}
|
@@ -13,7 +10,7 @@ module LanguageServer
|
|
13
10
|
@attributes.freeze
|
14
11
|
end
|
15
12
|
|
16
|
-
# @return [
|
13
|
+
# @return [number[]]
|
17
14
|
def data
|
18
15
|
attributes.fetch(:data)
|
19
16
|
end
|
@@ -1,52 +1,49 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensRangeParams
|
8
|
-
def initialize(
|
5
|
+
def initialize(work_done_token: nil, partial_result_token: nil, text_document:, range:)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
|
-
@attributes[:textDocument] = text_document
|
12
|
-
@attributes[:range] = range
|
13
8
|
@attributes[:workDoneToken] = work_done_token if work_done_token
|
14
9
|
@attributes[:partialResultToken] = partial_result_token if partial_result_token
|
10
|
+
@attributes[:textDocument] = text_document
|
11
|
+
@attributes[:range] = range
|
15
12
|
|
16
13
|
@attributes.freeze
|
17
14
|
end
|
18
15
|
|
19
16
|
#
|
20
|
-
#
|
17
|
+
# An optional token that a server can use to report work done progress.
|
21
18
|
#
|
22
|
-
# @return [
|
23
|
-
def
|
24
|
-
attributes.fetch(:
|
19
|
+
# @return [ProgressToken]
|
20
|
+
def work_done_token
|
21
|
+
attributes.fetch(:workDoneToken)
|
25
22
|
end
|
26
23
|
|
27
24
|
#
|
28
|
-
#
|
25
|
+
# An optional token that a server can use to report partial results (e.g.
|
26
|
+
# streaming) to the client.
|
29
27
|
#
|
30
|
-
# @return [
|
31
|
-
def
|
32
|
-
attributes.fetch(:
|
28
|
+
# @return [ProgressToken]
|
29
|
+
def partial_result_token
|
30
|
+
attributes.fetch(:partialResultToken)
|
33
31
|
end
|
34
32
|
|
35
33
|
#
|
36
|
-
#
|
34
|
+
# The text document.
|
37
35
|
#
|
38
|
-
# @return [
|
39
|
-
def
|
40
|
-
attributes.fetch(:
|
36
|
+
# @return [TextDocumentIdentifier]
|
37
|
+
def text_document
|
38
|
+
attributes.fetch(:textDocument)
|
41
39
|
end
|
42
40
|
|
43
41
|
#
|
44
|
-
#
|
45
|
-
# the client.
|
42
|
+
# The range the semantic tokens are requested for.
|
46
43
|
#
|
47
|
-
# @return [
|
48
|
-
def
|
49
|
-
attributes.fetch(:
|
44
|
+
# @return [Range]
|
45
|
+
def range
|
46
|
+
attributes.fetch(:range)
|
50
47
|
end
|
51
48
|
|
52
49
|
attr_reader :attributes
|
@@ -1,32 +1,34 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.16.0
|
6
|
-
#
|
7
4
|
class SemanticTokensRegistrationOptions
|
8
|
-
def initialize(document_selector:, legend:, range: nil, full: nil,
|
5
|
+
def initialize(document_selector:, work_done_progress: nil, legend:, range: nil, full: nil, id: nil)
|
9
6
|
@attributes = {}
|
10
7
|
|
11
8
|
@attributes[:documentSelector] = document_selector
|
9
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
12
10
|
@attributes[:legend] = legend
|
13
11
|
@attributes[:range] = range if range
|
14
12
|
@attributes[:full] = full if full
|
15
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
16
13
|
@attributes[:id] = id if id
|
17
14
|
|
18
15
|
@attributes.freeze
|
19
16
|
end
|
20
17
|
|
21
18
|
#
|
22
|
-
# A document selector to identify the scope of the registration. If set to
|
23
|
-
# the document selector provided on the client side will be used.
|
19
|
+
# A document selector to identify the scope of the registration. If set to
|
20
|
+
# null the document selector provided on the client side will be used.
|
24
21
|
#
|
25
|
-
# @return [DocumentSelector
|
22
|
+
# @return [DocumentSelector]
|
26
23
|
def document_selector
|
27
24
|
attributes.fetch(:documentSelector)
|
28
25
|
end
|
29
26
|
|
27
|
+
# @return [boolean]
|
28
|
+
def work_done_progress
|
29
|
+
attributes.fetch(:workDoneProgress)
|
30
|
+
end
|
31
|
+
|
30
32
|
#
|
31
33
|
# The legend used by the server
|
32
34
|
#
|
@@ -39,7 +41,7 @@ module LanguageServer
|
|
39
41
|
# Server supports providing semantic tokens for a specific range
|
40
42
|
# of a document.
|
41
43
|
#
|
42
|
-
# @return [boolean | {
|
44
|
+
# @return [boolean | {}]
|
43
45
|
def range
|
44
46
|
attributes.fetch(:range)
|
45
47
|
end
|
@@ -47,21 +49,16 @@ module LanguageServer
|
|
47
49
|
#
|
48
50
|
# Server supports providing semantic tokens for a full document.
|
49
51
|
#
|
50
|
-
# @return [boolean | { delta
|
52
|
+
# @return [boolean | { delta?: boolean; }]
|
51
53
|
def full
|
52
54
|
attributes.fetch(:full)
|
53
55
|
end
|
54
56
|
|
55
|
-
# @return [boolean | nil]
|
56
|
-
def work_done_progress
|
57
|
-
attributes.fetch(:workDoneProgress)
|
58
|
-
end
|
59
|
-
|
60
57
|
#
|
61
58
|
# The id used to register the request. The id can be used to deregister
|
62
59
|
# the request again. See also Registration#id.
|
63
60
|
#
|
64
|
-
# @return [string
|
61
|
+
# @return [string]
|
65
62
|
def id
|
66
63
|
attributes.fetch(:id)
|
67
64
|
end
|