language_server-protocol 3.17.0.0 → 3.17.0.2
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 +27 -27
- data/lib/language_server/protocol/interface/completion_params.rb +16 -18
- data/lib/language_server/protocol/interface/completion_registration_options.rb +30 -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 +11 -24
- 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,45 +1,42 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Parameters for a [FoldingRangeRequest](#FoldingRangeRequest).
|
6
|
-
#
|
7
4
|
class FoldingRangeParams
|
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
|
@@ -13,15 +13,15 @@ module LanguageServer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
#
|
16
|
-
# A document selector to identify the scope of the registration. If set to
|
17
|
-
# the document selector provided on the client side will be used.
|
16
|
+
# A document selector to identify the scope of the registration. If set to
|
17
|
+
# null the document selector provided on the client side will be used.
|
18
18
|
#
|
19
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
20
20
|
def document_selector
|
21
21
|
attributes.fetch(:documentSelector)
|
22
22
|
end
|
23
23
|
|
24
|
-
# @return [boolean
|
24
|
+
# @return [boolean]
|
25
25
|
def work_done_progress
|
26
26
|
attributes.fetch(:workDoneProgress)
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module LanguageServer
|
|
30
30
|
# The id used to register the request. The id can be used to deregister
|
31
31
|
# the request again. See also Registration#id.
|
32
32
|
#
|
33
|
-
# @return [string
|
33
|
+
# @return [string]
|
34
34
|
def id
|
35
35
|
attributes.fetch(:id)
|
36
36
|
end
|
@@ -20,7 +20,7 @@ module LanguageServer
|
|
20
20
|
#
|
21
21
|
# Size of a tab in spaces.
|
22
22
|
#
|
23
|
-
# @return [
|
23
|
+
# @return [number]
|
24
24
|
def tab_size
|
25
25
|
attributes.fetch(:tabSize)
|
26
26
|
end
|
@@ -36,9 +36,7 @@ module LanguageServer
|
|
36
36
|
#
|
37
37
|
# Trim trailing whitespace on a line.
|
38
38
|
#
|
39
|
-
# @
|
40
|
-
#
|
41
|
-
# @return [boolean | nil]
|
39
|
+
# @return [boolean]
|
42
40
|
def trim_trailing_whitespace
|
43
41
|
attributes.fetch(:trimTrailingWhitespace)
|
44
42
|
end
|
@@ -46,9 +44,7 @@ module LanguageServer
|
|
46
44
|
#
|
47
45
|
# Insert a newline character at the end of the file if one does not exist.
|
48
46
|
#
|
49
|
-
# @
|
50
|
-
#
|
51
|
-
# @return [boolean | nil]
|
47
|
+
# @return [boolean]
|
52
48
|
def insert_final_newline
|
53
49
|
attributes.fetch(:insertFinalNewline)
|
54
50
|
end
|
@@ -56,9 +52,7 @@ module LanguageServer
|
|
56
52
|
#
|
57
53
|
# Trim all newlines after the final newline at the end of the file.
|
58
54
|
#
|
59
|
-
# @
|
60
|
-
#
|
61
|
-
# @return [boolean | nil]
|
55
|
+
# @return [boolean]
|
62
56
|
def trim_final_newlines
|
63
57
|
attributes.fetch(:trimFinalNewlines)
|
64
58
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A diagnostic report with a full set of problems.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class FullDocumentDiagnosticReport
|
10
8
|
def initialize(kind:, result_id: nil, items:)
|
11
9
|
@attributes = {}
|
@@ -20,7 +18,7 @@ module LanguageServer
|
|
20
18
|
#
|
21
19
|
# A full document diagnostic report.
|
22
20
|
#
|
23
|
-
# @return [
|
21
|
+
# @return [any]
|
24
22
|
def kind
|
25
23
|
attributes.fetch(:kind)
|
26
24
|
end
|
@@ -30,7 +28,7 @@ module LanguageServer
|
|
30
28
|
# be sent on the next diagnostic request for the
|
31
29
|
# same document.
|
32
30
|
#
|
33
|
-
# @return [string
|
31
|
+
# @return [string]
|
34
32
|
def result_id
|
35
33
|
attributes.fetch(:resultId)
|
36
34
|
end
|
@@ -23,10 +23,10 @@ module LanguageServer
|
|
23
23
|
end
|
24
24
|
|
25
25
|
#
|
26
|
-
# An optional range inside
|
27
|
-
# visualize
|
26
|
+
# An optional range is a range inside a text document
|
27
|
+
# that is used to visualize a hover, e.g. by changing the background color.
|
28
28
|
#
|
29
|
-
# @return [Range
|
29
|
+
# @return [Range]
|
30
30
|
def range
|
31
31
|
attributes.fetch(:range)
|
32
32
|
end
|
@@ -14,16 +14,17 @@ module LanguageServer
|
|
14
14
|
#
|
15
15
|
# Whether hover supports dynamic registration.
|
16
16
|
#
|
17
|
-
# @return [boolean
|
17
|
+
# @return [boolean]
|
18
18
|
def dynamic_registration
|
19
19
|
attributes.fetch(:dynamicRegistration)
|
20
20
|
end
|
21
21
|
|
22
22
|
#
|
23
|
-
# Client supports the
|
24
|
-
# property
|
23
|
+
# Client supports the follow content formats if the content
|
24
|
+
# property refers to a `literal of type MarkupContent`.
|
25
|
+
# The order describes the preferred format of the client.
|
25
26
|
#
|
26
|
-
# @return [MarkupKind[]
|
27
|
+
# @return [MarkupKind[]]
|
27
28
|
def content_format
|
28
29
|
attributes.fetch(:contentFormat)
|
29
30
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Hover options.
|
6
|
-
#
|
7
4
|
class HoverOptions
|
8
5
|
def initialize(work_done_progress: nil)
|
9
6
|
@attributes = {}
|
@@ -13,7 +10,7 @@ module LanguageServer
|
|
13
10
|
@attributes.freeze
|
14
11
|
end
|
15
12
|
|
16
|
-
# @return [boolean
|
13
|
+
# @return [boolean]
|
17
14
|
def work_done_progress
|
18
15
|
attributes.fetch(:workDoneProgress)
|
19
16
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Parameters for a [HoverRequest](#HoverRequest).
|
6
|
-
#
|
7
4
|
class HoverParams
|
8
5
|
def initialize(text_document:, position:, work_done_token: nil)
|
9
6
|
@attributes = {}
|
@@ -34,7 +31,7 @@ module LanguageServer
|
|
34
31
|
#
|
35
32
|
# An optional token that a server can use to report work done progress.
|
36
33
|
#
|
37
|
-
# @return [ProgressToken
|
34
|
+
# @return [ProgressToken]
|
38
35
|
def work_done_token
|
39
36
|
attributes.fetch(:workDoneToken)
|
40
37
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [HoverRequest](#HoverRequest).
|
6
|
-
#
|
7
4
|
class HoverRegistrationOptions
|
8
5
|
def initialize(document_selector:, work_done_progress: nil)
|
9
6
|
@attributes = {}
|
@@ -15,15 +12,15 @@ module LanguageServer
|
|
15
12
|
end
|
16
13
|
|
17
14
|
#
|
18
|
-
# A document selector to identify the scope of the registration. If set to
|
19
|
-
# the document selector provided on the client side will be used.
|
15
|
+
# A document selector to identify the scope of the registration. If set to
|
16
|
+
# null the document selector provided on the client side will be used.
|
20
17
|
#
|
21
|
-
# @return [DocumentSelector
|
18
|
+
# @return [DocumentSelector]
|
22
19
|
def document_selector
|
23
20
|
attributes.fetch(:documentSelector)
|
24
21
|
end
|
25
22
|
|
26
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
27
24
|
def work_done_progress
|
28
25
|
attributes.fetch(:workDoneProgress)
|
29
26
|
end
|
@@ -1,14 +1,20 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
class
|
5
|
-
def initialize()
|
4
|
+
class HoverResult
|
5
|
+
def initialize(value:)
|
6
6
|
@attributes = {}
|
7
7
|
|
8
|
+
@attributes[:value] = value
|
8
9
|
|
9
10
|
@attributes.freeze
|
10
11
|
end
|
11
12
|
|
13
|
+
# @return [string]
|
14
|
+
def value
|
15
|
+
attributes.fetch(:value)
|
16
|
+
end
|
17
|
+
|
12
18
|
attr_reader :attributes
|
13
19
|
|
14
20
|
def to_hash
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.6.0
|
6
|
-
#
|
7
4
|
class ImplementationClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, link_support: nil)
|
9
6
|
@attributes = {}
|
@@ -15,11 +12,11 @@ module LanguageServer
|
|
15
12
|
end
|
16
13
|
|
17
14
|
#
|
18
|
-
# Whether implementation supports dynamic registration. If this is set to
|
19
|
-
# the client supports the new `ImplementationRegistrationOptions`
|
20
|
-
# for the corresponding server capability as well.
|
15
|
+
# Whether implementation supports dynamic registration. If this is set to
|
16
|
+
# `true` the client supports the new `ImplementationRegistrationOptions`
|
17
|
+
# return value for the corresponding server capability as well.
|
21
18
|
#
|
22
|
-
# @return [boolean
|
19
|
+
# @return [boolean]
|
23
20
|
def dynamic_registration
|
24
21
|
attributes.fetch(:dynamicRegistration)
|
25
22
|
end
|
@@ -27,9 +24,7 @@ module LanguageServer
|
|
27
24
|
#
|
28
25
|
# The client supports additional metadata in the form of definition links.
|
29
26
|
#
|
30
|
-
# @
|
31
|
-
#
|
32
|
-
# @return [boolean | nil]
|
27
|
+
# @return [boolean]
|
33
28
|
def link_support
|
34
29
|
attributes.fetch(:linkSupport)
|
35
30
|
end
|
@@ -32,16 +32,16 @@ module LanguageServer
|
|
32
32
|
#
|
33
33
|
# An optional token that a server can use to report work done progress.
|
34
34
|
#
|
35
|
-
# @return [ProgressToken
|
35
|
+
# @return [ProgressToken]
|
36
36
|
def work_done_token
|
37
37
|
attributes.fetch(:workDoneToken)
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
|
-
# An optional token that a server can use to report partial results (e.g.
|
42
|
-
# the client.
|
41
|
+
# An optional token that a server can use to report partial results (e.g.
|
42
|
+
# streaming) to the client.
|
43
43
|
#
|
44
|
-
# @return [ProgressToken
|
44
|
+
# @return [ProgressToken]
|
45
45
|
def partial_result_token
|
46
46
|
attributes.fetch(:partialResultToken)
|
47
47
|
end
|
@@ -13,15 +13,15 @@ module LanguageServer
|
|
13
13
|
end
|
14
14
|
|
15
15
|
#
|
16
|
-
# A document selector to identify the scope of the registration. If set to
|
17
|
-
# the document selector provided on the client side will be used.
|
16
|
+
# A document selector to identify the scope of the registration. If set to
|
17
|
+
# null the document selector provided on the client side will be used.
|
18
18
|
#
|
19
|
-
# @return [DocumentSelector
|
19
|
+
# @return [DocumentSelector]
|
20
20
|
def document_selector
|
21
21
|
attributes.fetch(:documentSelector)
|
22
22
|
end
|
23
23
|
|
24
|
-
# @return [boolean
|
24
|
+
# @return [boolean]
|
25
25
|
def work_done_progress
|
26
26
|
attributes.fetch(:workDoneProgress)
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module LanguageServer
|
|
30
30
|
# The id used to register the request. The id can be used to deregister
|
31
31
|
# the request again. See also Registration#id.
|
32
32
|
#
|
33
|
-
# @return [string
|
33
|
+
# @return [string]
|
34
34
|
def id
|
35
35
|
attributes.fetch(:id)
|
36
36
|
end
|
@@ -2,31 +2,38 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
class InitializeParams
|
5
|
-
def initialize(process_id:, client_info: nil, locale: nil, root_path: nil, root_uri:,
|
5
|
+
def initialize(work_done_token: nil, process_id:, client_info: nil, locale: nil, root_path: nil, root_uri:, initialization_options: nil, capabilities:, trace: nil, workspace_folders: nil)
|
6
6
|
@attributes = {}
|
7
7
|
|
8
|
+
@attributes[:workDoneToken] = work_done_token if work_done_token
|
8
9
|
@attributes[:processId] = process_id
|
9
10
|
@attributes[:clientInfo] = client_info if client_info
|
10
11
|
@attributes[:locale] = locale if locale
|
11
12
|
@attributes[:rootPath] = root_path if root_path
|
12
13
|
@attributes[:rootUri] = root_uri
|
13
|
-
@attributes[:capabilities] = capabilities
|
14
14
|
@attributes[:initializationOptions] = initialization_options if initialization_options
|
15
|
+
@attributes[:capabilities] = capabilities
|
15
16
|
@attributes[:trace] = trace if trace
|
16
|
-
@attributes[:workDoneToken] = work_done_token if work_done_token
|
17
17
|
@attributes[:workspaceFolders] = workspace_folders if workspace_folders
|
18
18
|
|
19
19
|
@attributes.freeze
|
20
20
|
end
|
21
21
|
|
22
22
|
#
|
23
|
-
#
|
24
|
-
#
|
23
|
+
# An optional token that a server can use to report work done progress.
|
24
|
+
#
|
25
|
+
# @return [ProgressToken]
|
26
|
+
def work_done_token
|
27
|
+
attributes.fetch(:workDoneToken)
|
28
|
+
end
|
29
|
+
|
25
30
|
#
|
26
|
-
#
|
27
|
-
#
|
31
|
+
# The process Id of the parent process that started the server. Is null if
|
32
|
+
# the process has not been started by another process. If the parent
|
33
|
+
# process is not alive then the server should exit (see exit notification)
|
34
|
+
# its process.
|
28
35
|
#
|
29
|
-
# @return [
|
36
|
+
# @return [number]
|
30
37
|
def process_id
|
31
38
|
attributes.fetch(:processId)
|
32
39
|
end
|
@@ -34,9 +41,7 @@ module LanguageServer
|
|
34
41
|
#
|
35
42
|
# Information about the client
|
36
43
|
#
|
37
|
-
# @
|
38
|
-
#
|
39
|
-
# @return [{ name:string, version:string } | nil]
|
44
|
+
# @return [{ name: string; version?: string; }]
|
40
45
|
def client_info
|
41
46
|
attributes.fetch(:clientInfo)
|
42
47
|
end
|
@@ -49,9 +54,7 @@ module LanguageServer
|
|
49
54
|
# Uses IETF language tags as the value's syntax
|
50
55
|
# (See https://en.wikipedia.org/wiki/IETF_language_tag)
|
51
56
|
#
|
52
|
-
# @
|
53
|
-
#
|
54
|
-
# @return [string | nil]
|
57
|
+
# @return [string]
|
55
58
|
def locale
|
56
59
|
attributes.fetch(:locale)
|
57
60
|
end
|
@@ -60,9 +63,7 @@ module LanguageServer
|
|
60
63
|
# The rootPath of the workspace. Is null
|
61
64
|
# if no folder is open.
|
62
65
|
#
|
63
|
-
# @
|
64
|
-
#
|
65
|
-
# @return [string | null]
|
66
|
+
# @return [string]
|
66
67
|
def root_path
|
67
68
|
attributes.fetch(:rootPath)
|
68
69
|
end
|
@@ -72,55 +73,42 @@ module LanguageServer
|
|
72
73
|
# folder is open. If both `rootPath` and `rootUri` are set
|
73
74
|
# `rootUri` wins.
|
74
75
|
#
|
75
|
-
# @
|
76
|
-
#
|
77
|
-
# @return [DocumentUri | null]
|
76
|
+
# @return [string]
|
78
77
|
def root_uri
|
79
78
|
attributes.fetch(:rootUri)
|
80
79
|
end
|
81
80
|
|
82
|
-
#
|
83
|
-
# The capabilities provided by the client (editor or tool)
|
84
|
-
#
|
85
|
-
# @return [ClientCapabilities]
|
86
|
-
def capabilities
|
87
|
-
attributes.fetch(:capabilities)
|
88
|
-
end
|
89
|
-
|
90
81
|
#
|
91
82
|
# User provided initialization options.
|
92
83
|
#
|
93
|
-
# @return [LSPAny
|
84
|
+
# @return [LSPAny]
|
94
85
|
def initialization_options
|
95
86
|
attributes.fetch(:initializationOptions)
|
96
87
|
end
|
97
88
|
|
98
89
|
#
|
99
|
-
# The
|
90
|
+
# The capabilities provided by the client (editor or tool)
|
100
91
|
#
|
101
|
-
# @return [
|
102
|
-
def
|
103
|
-
attributes.fetch(:
|
92
|
+
# @return [ClientCapabilities]
|
93
|
+
def capabilities
|
94
|
+
attributes.fetch(:capabilities)
|
104
95
|
end
|
105
96
|
|
106
97
|
#
|
107
|
-
#
|
98
|
+
# The initial trace setting. If omitted trace is disabled ('off').
|
108
99
|
#
|
109
|
-
# @return [
|
110
|
-
def
|
111
|
-
attributes.fetch(:
|
100
|
+
# @return [TraceValue]
|
101
|
+
def trace
|
102
|
+
attributes.fetch(:trace)
|
112
103
|
end
|
113
104
|
|
114
105
|
#
|
115
106
|
# The workspace folders configured in the client when the server starts.
|
116
|
-
#
|
117
107
|
# This property is only available if the client supports workspace folders.
|
118
108
|
# It can be `null` if the client supports workspace folders but none are
|
119
109
|
# configured.
|
120
110
|
#
|
121
|
-
# @
|
122
|
-
#
|
123
|
-
# @return [WorkspaceFolder[] | null]
|
111
|
+
# @return [WorkspaceFolder[]]
|
124
112
|
def workspace_folders
|
125
113
|
attributes.fetch(:workspaceFolders)
|
126
114
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The result returned from an initialize request.
|
6
|
-
#
|
7
4
|
class InitializeResult
|
8
5
|
def initialize(capabilities:, server_info: nil)
|
9
6
|
@attributes = {}
|
@@ -25,9 +22,7 @@ module LanguageServer
|
|
25
22
|
#
|
26
23
|
# Information about the server.
|
27
24
|
#
|
28
|
-
# @
|
29
|
-
#
|
30
|
-
# @return [{ name:string, version:string } | nil]
|
25
|
+
# @return [{ name: string; version?: string; }]
|
31
26
|
def server_info
|
32
27
|
attributes.fetch(:serverInfo)
|
33
28
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inlay hint information.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHint
|
10
8
|
def initialize(position:, label:, kind: nil, text_edits: nil, tooltip: nil, padding_left: nil, padding_right: nil, data: nil)
|
11
9
|
@attributes = {}
|
@@ -45,7 +43,7 @@ module LanguageServer
|
|
45
43
|
# The kind of this hint. Can be omitted in which case the client
|
46
44
|
# should fall back to a reasonable default.
|
47
45
|
#
|
48
|
-
# @return [InlayHintKind
|
46
|
+
# @return [InlayHintKind]
|
49
47
|
def kind
|
50
48
|
attributes.fetch(:kind)
|
51
49
|
end
|
@@ -57,7 +55,10 @@ module LanguageServer
|
|
57
55
|
# hint (or its nearest variant) is now part of the document and the inlay
|
58
56
|
# hint itself is now obsolete.
|
59
57
|
#
|
60
|
-
#
|
58
|
+
# Depending on the client capability `inlayHint.resolveSupport` clients
|
59
|
+
# might resolve this property late using the resolve request.
|
60
|
+
#
|
61
|
+
# @return [TextEdit[]]
|
61
62
|
def text_edits
|
62
63
|
attributes.fetch(:textEdits)
|
63
64
|
end
|
@@ -65,7 +66,10 @@ module LanguageServer
|
|
65
66
|
#
|
66
67
|
# The tooltip text when you hover over this item.
|
67
68
|
#
|
68
|
-
#
|
69
|
+
# Depending on the client capability `inlayHint.resolveSupport` clients
|
70
|
+
# might resolve this property late using the resolve request.
|
71
|
+
#
|
72
|
+
# @return [string | MarkupContent]
|
69
73
|
def tooltip
|
70
74
|
attributes.fetch(:tooltip)
|
71
75
|
end
|
@@ -77,7 +81,7 @@ module LanguageServer
|
|
77
81
|
# background color of the hint itself. That means padding can be used
|
78
82
|
# to visually align/separate an inlay hint.
|
79
83
|
#
|
80
|
-
# @return [boolean
|
84
|
+
# @return [boolean]
|
81
85
|
def padding_left
|
82
86
|
attributes.fetch(:paddingLeft)
|
83
87
|
end
|
@@ -89,16 +93,16 @@ module LanguageServer
|
|
89
93
|
# background color of the hint itself. That means padding can be used
|
90
94
|
# to visually align/separate an inlay hint.
|
91
95
|
#
|
92
|
-
# @return [boolean
|
96
|
+
# @return [boolean]
|
93
97
|
def padding_right
|
94
98
|
attributes.fetch(:paddingRight)
|
95
99
|
end
|
96
100
|
|
97
101
|
#
|
98
|
-
# A data entry field that is preserved on
|
102
|
+
# A data entry field that is preserved on a inlay hint between
|
99
103
|
# a `textDocument/inlayHint` and a `inlayHint/resolve` request.
|
100
104
|
#
|
101
|
-
# @return [LSPAny
|
105
|
+
# @return [LSPAny]
|
102
106
|
def data
|
103
107
|
attributes.fetch(:data)
|
104
108
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Inlay hint client capabilities.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class InlayHintClientCapabilities
|
10
8
|
def initialize(dynamic_registration: nil, resolve_support: nil)
|
11
9
|
@attributes = {}
|
@@ -19,16 +17,16 @@ module LanguageServer
|
|
19
17
|
#
|
20
18
|
# Whether inlay hints support dynamic registration.
|
21
19
|
#
|
22
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
23
21
|
def dynamic_registration
|
24
22
|
attributes.fetch(:dynamicRegistration)
|
25
23
|
end
|
26
24
|
|
27
25
|
#
|
28
|
-
# Indicates which properties a client can resolve lazily on
|
26
|
+
# Indicates which properties a client can resolve lazily on a inlay
|
29
27
|
# hint.
|
30
28
|
#
|
31
|
-
# @return [{ properties:string[] }
|
29
|
+
# @return [{ properties: string[]; }]
|
32
30
|
def resolve_support
|
33
31
|
attributes.fetch(:resolveSupport)
|
34
32
|
end
|