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,68 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# A base for all symbol information.
|
6
|
-
#
|
7
|
-
class BaseSymbolInformation
|
8
|
-
def initialize(name:, kind:, tags: nil, container_name: nil)
|
9
|
-
@attributes = {}
|
10
|
-
|
11
|
-
@attributes[:name] = name
|
12
|
-
@attributes[:kind] = kind
|
13
|
-
@attributes[:tags] = tags if tags
|
14
|
-
@attributes[:containerName] = container_name if container_name
|
15
|
-
|
16
|
-
@attributes.freeze
|
17
|
-
end
|
18
|
-
|
19
|
-
#
|
20
|
-
# The name of this symbol.
|
21
|
-
#
|
22
|
-
# @return [string]
|
23
|
-
def name
|
24
|
-
attributes.fetch(:name)
|
25
|
-
end
|
26
|
-
|
27
|
-
#
|
28
|
-
# The kind of this symbol.
|
29
|
-
#
|
30
|
-
# @return [SymbolKind]
|
31
|
-
def kind
|
32
|
-
attributes.fetch(:kind)
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# Tags for this symbol.
|
37
|
-
#
|
38
|
-
# @since 3.16.0
|
39
|
-
#
|
40
|
-
# @return [SymbolTag[] | nil]
|
41
|
-
def tags
|
42
|
-
attributes.fetch(:tags)
|
43
|
-
end
|
44
|
-
|
45
|
-
#
|
46
|
-
# The name of the symbol containing this symbol. This information is for
|
47
|
-
# user interface purposes (e.g. to render a qualifier in the user interface
|
48
|
-
# if necessary). It can't be used to re-infer a hierarchy for the document
|
49
|
-
# symbols.
|
50
|
-
#
|
51
|
-
# @return [string | nil]
|
52
|
-
def container_name
|
53
|
-
attributes.fetch(:containerName)
|
54
|
-
end
|
55
|
-
|
56
|
-
attr_reader :attributes
|
57
|
-
|
58
|
-
def to_hash
|
59
|
-
attributes
|
60
|
-
end
|
61
|
-
|
62
|
-
def to_json(*args)
|
63
|
-
to_hash.to_json(*args)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
class DidChangeConfigurationRegistrationOptions
|
5
|
-
def initialize(section: nil)
|
6
|
-
@attributes = {}
|
7
|
-
|
8
|
-
@attributes[:section] = section if section
|
9
|
-
|
10
|
-
@attributes.freeze
|
11
|
-
end
|
12
|
-
|
13
|
-
# @return [string | string[] | nil]
|
14
|
-
def section
|
15
|
-
attributes.fetch(:section)
|
16
|
-
end
|
17
|
-
|
18
|
-
attr_reader :attributes
|
19
|
-
|
20
|
-
def to_hash
|
21
|
-
attributes
|
22
|
-
end
|
23
|
-
|
24
|
-
def to_json(*args)
|
25
|
-
to_hash.to_json(*args)
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# The result of a document diagnostic pull request. A report can
|
6
|
-
# either be a full report containing all diagnostics for the
|
7
|
-
# requested document or an unchanged report indicating that nothing
|
8
|
-
# has changed in terms of diagnostics in comparison to the last
|
9
|
-
# pull request.
|
10
|
-
#
|
11
|
-
# @since 3.17.0
|
12
|
-
#
|
13
|
-
class DocumentDiagnosticReport
|
14
|
-
def initialize(related_documents: nil, kind:, result_id: nil, items:)
|
15
|
-
@attributes = {}
|
16
|
-
|
17
|
-
@attributes[:relatedDocuments] = related_documents if related_documents
|
18
|
-
@attributes[:kind] = kind
|
19
|
-
@attributes[:resultId] = result_id if result_id
|
20
|
-
@attributes[:items] = items
|
21
|
-
|
22
|
-
@attributes.freeze
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# Diagnostics of related documents. This information is useful
|
27
|
-
# in programming languages where code in a file A can generate
|
28
|
-
# diagnostics in a file B which A depends on. An example of
|
29
|
-
# such a language is C/C++ where marco definitions in a file
|
30
|
-
# a.cpp and result in errors in a header file b.hpp.
|
31
|
-
#
|
32
|
-
# @since 3.17.0
|
33
|
-
#
|
34
|
-
# @return [DocumentUri => FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport | nil]
|
35
|
-
def related_documents
|
36
|
-
attributes.fetch(:relatedDocuments)
|
37
|
-
end
|
38
|
-
|
39
|
-
#
|
40
|
-
# A full document diagnostic report.
|
41
|
-
#
|
42
|
-
# @return ["full"]
|
43
|
-
def kind
|
44
|
-
attributes.fetch(:kind)
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# An optional result id. If provided it will
|
49
|
-
# be sent on the next diagnostic request for the
|
50
|
-
# same document.
|
51
|
-
#
|
52
|
-
# @return [string | nil]
|
53
|
-
def result_id
|
54
|
-
attributes.fetch(:resultId)
|
55
|
-
end
|
56
|
-
|
57
|
-
#
|
58
|
-
# The actual items.
|
59
|
-
#
|
60
|
-
# @return [Diagnostic[]]
|
61
|
-
def items
|
62
|
-
attributes.fetch(:items)
|
63
|
-
end
|
64
|
-
|
65
|
-
attr_reader :attributes
|
66
|
-
|
67
|
-
def to_hash
|
68
|
-
attributes
|
69
|
-
end
|
70
|
-
|
71
|
-
def to_json(*args)
|
72
|
-
to_hash.to_json(*args)
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,95 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# Capabilities relating to events from file operations by the user in the client.
|
6
|
-
#
|
7
|
-
# These events do not come from the file system, they come from user operations
|
8
|
-
# like renaming a file in the UI.
|
9
|
-
#
|
10
|
-
# @since 3.16.0
|
11
|
-
#
|
12
|
-
class FileOperationClientCapabilities
|
13
|
-
def initialize(dynamic_registration: nil, did_create: nil, will_create: nil, did_rename: nil, will_rename: nil, did_delete: nil, will_delete: nil)
|
14
|
-
@attributes = {}
|
15
|
-
|
16
|
-
@attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration
|
17
|
-
@attributes[:didCreate] = did_create if did_create
|
18
|
-
@attributes[:willCreate] = will_create if will_create
|
19
|
-
@attributes[:didRename] = did_rename if did_rename
|
20
|
-
@attributes[:willRename] = will_rename if will_rename
|
21
|
-
@attributes[:didDelete] = did_delete if did_delete
|
22
|
-
@attributes[:willDelete] = will_delete if will_delete
|
23
|
-
|
24
|
-
@attributes.freeze
|
25
|
-
end
|
26
|
-
|
27
|
-
#
|
28
|
-
# Whether the client supports dynamic registration for file requests/notifications.
|
29
|
-
#
|
30
|
-
# @return [boolean | nil]
|
31
|
-
def dynamic_registration
|
32
|
-
attributes.fetch(:dynamicRegistration)
|
33
|
-
end
|
34
|
-
|
35
|
-
#
|
36
|
-
# The client has support for sending didCreateFiles notifications.
|
37
|
-
#
|
38
|
-
# @return [boolean | nil]
|
39
|
-
def did_create
|
40
|
-
attributes.fetch(:didCreate)
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# The client has support for sending willCreateFiles requests.
|
45
|
-
#
|
46
|
-
# @return [boolean | nil]
|
47
|
-
def will_create
|
48
|
-
attributes.fetch(:willCreate)
|
49
|
-
end
|
50
|
-
|
51
|
-
#
|
52
|
-
# The client has support for sending didRenameFiles notifications.
|
53
|
-
#
|
54
|
-
# @return [boolean | nil]
|
55
|
-
def did_rename
|
56
|
-
attributes.fetch(:didRename)
|
57
|
-
end
|
58
|
-
|
59
|
-
#
|
60
|
-
# The client has support for sending willRenameFiles requests.
|
61
|
-
#
|
62
|
-
# @return [boolean | nil]
|
63
|
-
def will_rename
|
64
|
-
attributes.fetch(:willRename)
|
65
|
-
end
|
66
|
-
|
67
|
-
#
|
68
|
-
# The client has support for sending didDeleteFiles notifications.
|
69
|
-
#
|
70
|
-
# @return [boolean | nil]
|
71
|
-
def did_delete
|
72
|
-
attributes.fetch(:didDelete)
|
73
|
-
end
|
74
|
-
|
75
|
-
#
|
76
|
-
# The client has support for sending willDeleteFiles requests.
|
77
|
-
#
|
78
|
-
# @return [boolean | nil]
|
79
|
-
def will_delete
|
80
|
-
attributes.fetch(:willDelete)
|
81
|
-
end
|
82
|
-
|
83
|
-
attr_reader :attributes
|
84
|
-
|
85
|
-
def to_hash
|
86
|
-
attributes
|
87
|
-
end
|
88
|
-
|
89
|
-
def to_json(*args)
|
90
|
-
to_hash.to_json(*args)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
end
|
95
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# Options for notifications/requests for user operations on files.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
|
-
class FileOperationOptions
|
10
|
-
def initialize(did_create: nil, will_create: nil, did_rename: nil, will_rename: nil, did_delete: nil, will_delete: nil)
|
11
|
-
@attributes = {}
|
12
|
-
|
13
|
-
@attributes[:didCreate] = did_create if did_create
|
14
|
-
@attributes[:willCreate] = will_create if will_create
|
15
|
-
@attributes[:didRename] = did_rename if did_rename
|
16
|
-
@attributes[:willRename] = will_rename if will_rename
|
17
|
-
@attributes[:didDelete] = did_delete if did_delete
|
18
|
-
@attributes[:willDelete] = will_delete if will_delete
|
19
|
-
|
20
|
-
@attributes.freeze
|
21
|
-
end
|
22
|
-
|
23
|
-
#
|
24
|
-
# The server is interested in receiving didCreateFiles notifications.
|
25
|
-
#
|
26
|
-
# @return [FileOperationRegistrationOptions | nil]
|
27
|
-
def did_create
|
28
|
-
attributes.fetch(:didCreate)
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# The server is interested in receiving willCreateFiles requests.
|
33
|
-
#
|
34
|
-
# @return [FileOperationRegistrationOptions | nil]
|
35
|
-
def will_create
|
36
|
-
attributes.fetch(:willCreate)
|
37
|
-
end
|
38
|
-
|
39
|
-
#
|
40
|
-
# The server is interested in receiving didRenameFiles notifications.
|
41
|
-
#
|
42
|
-
# @return [FileOperationRegistrationOptions | nil]
|
43
|
-
def did_rename
|
44
|
-
attributes.fetch(:didRename)
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# The server is interested in receiving willRenameFiles requests.
|
49
|
-
#
|
50
|
-
# @return [FileOperationRegistrationOptions | nil]
|
51
|
-
def will_rename
|
52
|
-
attributes.fetch(:willRename)
|
53
|
-
end
|
54
|
-
|
55
|
-
#
|
56
|
-
# The server is interested in receiving didDeleteFiles file notifications.
|
57
|
-
#
|
58
|
-
# @return [FileOperationRegistrationOptions | nil]
|
59
|
-
def did_delete
|
60
|
-
attributes.fetch(:didDelete)
|
61
|
-
end
|
62
|
-
|
63
|
-
#
|
64
|
-
# The server is interested in receiving willDeleteFiles file requests.
|
65
|
-
#
|
66
|
-
# @return [FileOperationRegistrationOptions | nil]
|
67
|
-
def will_delete
|
68
|
-
attributes.fetch(:willDelete)
|
69
|
-
end
|
70
|
-
|
71
|
-
attr_reader :attributes
|
72
|
-
|
73
|
-
def to_hash
|
74
|
-
attributes
|
75
|
-
end
|
76
|
-
|
77
|
-
def to_json(*args)
|
78
|
-
to_hash.to_json(*args)
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
83
|
-
end
|
@@ -1,91 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# General client capabilities.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
|
-
class GeneralClientCapabilities
|
10
|
-
def initialize(stale_request_support: nil, regular_expressions: nil, markdown: nil, position_encodings: nil)
|
11
|
-
@attributes = {}
|
12
|
-
|
13
|
-
@attributes[:staleRequestSupport] = stale_request_support if stale_request_support
|
14
|
-
@attributes[:regularExpressions] = regular_expressions if regular_expressions
|
15
|
-
@attributes[:markdown] = markdown if markdown
|
16
|
-
@attributes[:positionEncodings] = position_encodings if position_encodings
|
17
|
-
|
18
|
-
@attributes.freeze
|
19
|
-
end
|
20
|
-
|
21
|
-
#
|
22
|
-
# Client capability that signals how the client
|
23
|
-
# handles stale requests (e.g. a request
|
24
|
-
# for which the client will not process the response
|
25
|
-
# anymore since the information is outdated).
|
26
|
-
#
|
27
|
-
# @since 3.17.0
|
28
|
-
#
|
29
|
-
# @return [{ cancel:boolean, retryOnContentModified:string[] } | nil]
|
30
|
-
def stale_request_support
|
31
|
-
attributes.fetch(:staleRequestSupport)
|
32
|
-
end
|
33
|
-
|
34
|
-
#
|
35
|
-
# Client capabilities specific to regular expressions.
|
36
|
-
#
|
37
|
-
# @since 3.16.0
|
38
|
-
#
|
39
|
-
# @return [RegularExpressionsClientCapabilities | nil]
|
40
|
-
def regular_expressions
|
41
|
-
attributes.fetch(:regularExpressions)
|
42
|
-
end
|
43
|
-
|
44
|
-
#
|
45
|
-
# Client capabilities specific to the client's markdown parser.
|
46
|
-
#
|
47
|
-
# @since 3.16.0
|
48
|
-
#
|
49
|
-
# @return [MarkdownClientCapabilities | nil]
|
50
|
-
def markdown
|
51
|
-
attributes.fetch(:markdown)
|
52
|
-
end
|
53
|
-
|
54
|
-
#
|
55
|
-
# The position encodings supported by the client. Client and server
|
56
|
-
# have to agree on the same position encoding to ensure that offsets
|
57
|
-
# (e.g. character position in a line) are interpreted the same on both
|
58
|
-
# sides.
|
59
|
-
#
|
60
|
-
# To keep the protocol backwards compatible the following applies: if
|
61
|
-
# the value 'utf-16' is missing from the array of position encodings
|
62
|
-
# servers can assume that the client supports UTF-16. UTF-16 is
|
63
|
-
# therefore a mandatory encoding.
|
64
|
-
#
|
65
|
-
# If omitted it defaults to ['utf-16'].
|
66
|
-
#
|
67
|
-
# Implementation considerations: since the conversion from one encoding
|
68
|
-
# into another requires the content of the file / line the conversion
|
69
|
-
# is best done where the file is read which is usually on the server
|
70
|
-
# side.
|
71
|
-
#
|
72
|
-
# @since 3.17.0
|
73
|
-
#
|
74
|
-
# @return [PositionEncodingKind[] | nil]
|
75
|
-
def position_encodings
|
76
|
-
attributes.fetch(:positionEncodings)
|
77
|
-
end
|
78
|
-
|
79
|
-
attr_reader :attributes
|
80
|
-
|
81
|
-
def to_hash
|
82
|
-
attributes
|
83
|
-
end
|
84
|
-
|
85
|
-
def to_json(*args)
|
86
|
-
to_hash.to_json(*args)
|
87
|
-
end
|
88
|
-
end
|
89
|
-
end
|
90
|
-
end
|
91
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# The glob pattern. Either a string pattern or a relative pattern.
|
6
|
-
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
|
-
class GlobPattern
|
10
|
-
def initialize(base_uri:, pattern:)
|
11
|
-
@attributes = {}
|
12
|
-
|
13
|
-
@attributes[:baseUri] = base_uri
|
14
|
-
@attributes[:pattern] = pattern
|
15
|
-
|
16
|
-
@attributes.freeze
|
17
|
-
end
|
18
|
-
|
19
|
-
#
|
20
|
-
# A workspace folder or a base URI to which this pattern will be matched
|
21
|
-
# against relatively.
|
22
|
-
#
|
23
|
-
# @return [WorkspaceFolder | URI]
|
24
|
-
def base_uri
|
25
|
-
attributes.fetch(:baseUri)
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# The actual glob pattern;
|
30
|
-
#
|
31
|
-
# @return [Pattern]
|
32
|
-
def pattern
|
33
|
-
attributes.fetch(:pattern)
|
34
|
-
end
|
35
|
-
|
36
|
-
attr_reader :attributes
|
37
|
-
|
38
|
-
def to_hash
|
39
|
-
attributes
|
40
|
-
end
|
41
|
-
|
42
|
-
def to_json(*args)
|
43
|
-
to_hash.to_json(*args)
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,78 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# Inline value information can be provided by different means:
|
6
|
-
# - directly as a text value (class InlineValueText).
|
7
|
-
# - as a name to use for a variable lookup (class InlineValueVariableLookup)
|
8
|
-
# - as an evaluatable expression (class InlineValueEvaluatableExpression)
|
9
|
-
# The InlineValue types combines all inline value types into one type.
|
10
|
-
#
|
11
|
-
# @since 3.17.0
|
12
|
-
#
|
13
|
-
class InlineValue
|
14
|
-
def initialize(range:, text:, variable_name: nil, case_sensitive_lookup:, expression: nil)
|
15
|
-
@attributes = {}
|
16
|
-
|
17
|
-
@attributes[:range] = range
|
18
|
-
@attributes[:text] = text
|
19
|
-
@attributes[:variableName] = variable_name if variable_name
|
20
|
-
@attributes[:caseSensitiveLookup] = case_sensitive_lookup
|
21
|
-
@attributes[:expression] = expression if expression
|
22
|
-
|
23
|
-
@attributes.freeze
|
24
|
-
end
|
25
|
-
|
26
|
-
#
|
27
|
-
# The document range for which the inline value applies.
|
28
|
-
#
|
29
|
-
# @return [Range]
|
30
|
-
def range
|
31
|
-
attributes.fetch(:range)
|
32
|
-
end
|
33
|
-
|
34
|
-
#
|
35
|
-
# The text of the inline value.
|
36
|
-
#
|
37
|
-
# @return [string]
|
38
|
-
def text
|
39
|
-
attributes.fetch(:text)
|
40
|
-
end
|
41
|
-
|
42
|
-
#
|
43
|
-
# If specified the name of the variable to look up.
|
44
|
-
#
|
45
|
-
# @return [string | nil]
|
46
|
-
def variable_name
|
47
|
-
attributes.fetch(:variableName)
|
48
|
-
end
|
49
|
-
|
50
|
-
#
|
51
|
-
# How to perform the lookup.
|
52
|
-
#
|
53
|
-
# @return [boolean]
|
54
|
-
def case_sensitive_lookup
|
55
|
-
attributes.fetch(:caseSensitiveLookup)
|
56
|
-
end
|
57
|
-
|
58
|
-
#
|
59
|
-
# If specified the expression overrides the extracted expression.
|
60
|
-
#
|
61
|
-
# @return [string | nil]
|
62
|
-
def expression
|
63
|
-
attributes.fetch(:expression)
|
64
|
-
end
|
65
|
-
|
66
|
-
attr_reader :attributes
|
67
|
-
|
68
|
-
def to_hash
|
69
|
-
attributes
|
70
|
-
end
|
71
|
-
|
72
|
-
def to_json(*args)
|
73
|
-
to_hash.to_json(*args)
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities specific to the used markdown parser.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
|
-
class MarkdownClientCapabilities
|
10
|
-
def initialize(parser:, version: nil, allowed_tags: nil)
|
11
|
-
@attributes = {}
|
12
|
-
|
13
|
-
@attributes[:parser] = parser
|
14
|
-
@attributes[:version] = version if version
|
15
|
-
@attributes[:allowedTags] = allowed_tags if allowed_tags
|
16
|
-
|
17
|
-
@attributes.freeze
|
18
|
-
end
|
19
|
-
|
20
|
-
#
|
21
|
-
# The name of the parser.
|
22
|
-
#
|
23
|
-
# @return [string]
|
24
|
-
def parser
|
25
|
-
attributes.fetch(:parser)
|
26
|
-
end
|
27
|
-
|
28
|
-
#
|
29
|
-
# The version of the parser.
|
30
|
-
#
|
31
|
-
# @return [string | nil]
|
32
|
-
def version
|
33
|
-
attributes.fetch(:version)
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# A list of HTML tags that the client allows / supports in
|
38
|
-
# Markdown.
|
39
|
-
#
|
40
|
-
# @since 3.17.0
|
41
|
-
#
|
42
|
-
# @return [string[] | nil]
|
43
|
-
def allowed_tags
|
44
|
-
attributes.fetch(:allowedTags)
|
45
|
-
end
|
46
|
-
|
47
|
-
attr_reader :attributes
|
48
|
-
|
49
|
-
def to_hash
|
50
|
-
attributes
|
51
|
-
end
|
52
|
-
|
53
|
-
def to_json(*args)
|
54
|
-
to_hash.to_json(*args)
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,60 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
class PrepareRenameResult
|
5
|
-
def initialize(start:, end:, range:, placeholder:, default_behavior:)
|
6
|
-
@attributes = {}
|
7
|
-
|
8
|
-
@attributes[:start] = start
|
9
|
-
@attributes[:end] = binding.local_variable_get(:end)
|
10
|
-
@attributes[:range] = range
|
11
|
-
@attributes[:placeholder] = placeholder
|
12
|
-
@attributes[:defaultBehavior] = default_behavior
|
13
|
-
|
14
|
-
@attributes.freeze
|
15
|
-
end
|
16
|
-
|
17
|
-
#
|
18
|
-
# The range's start position.
|
19
|
-
#
|
20
|
-
# @return [Position]
|
21
|
-
def start
|
22
|
-
attributes.fetch(:start)
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# The range's end position.
|
27
|
-
#
|
28
|
-
# @return [Position]
|
29
|
-
def end
|
30
|
-
attributes.fetch(:end)
|
31
|
-
end
|
32
|
-
|
33
|
-
# @return [Range]
|
34
|
-
def range
|
35
|
-
attributes.fetch(:range)
|
36
|
-
end
|
37
|
-
|
38
|
-
# @return [string]
|
39
|
-
def placeholder
|
40
|
-
attributes.fetch(:placeholder)
|
41
|
-
end
|
42
|
-
|
43
|
-
# @return [boolean]
|
44
|
-
def default_behavior
|
45
|
-
attributes.fetch(:defaultBehavior)
|
46
|
-
end
|
47
|
-
|
48
|
-
attr_reader :attributes
|
49
|
-
|
50
|
-
def to_hash
|
51
|
-
attributes
|
52
|
-
end
|
53
|
-
|
54
|
-
def to_json(*args)
|
55
|
-
to_hash.to_json(*args)
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|