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
@@ -17,7 +17,7 @@ module LanguageServer
|
|
17
17
|
#
|
18
18
|
# Overwrite existing file. Overwrite wins over `ignoreIfExists`
|
19
19
|
#
|
20
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
21
21
|
def overwrite
|
22
22
|
attributes.fetch(:overwrite)
|
23
23
|
end
|
@@ -25,7 +25,7 @@ module LanguageServer
|
|
25
25
|
#
|
26
26
|
# Ignore if exists.
|
27
27
|
#
|
28
|
-
# @return [boolean
|
28
|
+
# @return [boolean]
|
29
29
|
def ignore_if_exists
|
30
30
|
attributes.fetch(:ignoreIfExists)
|
31
31
|
end
|
@@ -2,10 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# The parameters sent in notifications/requests for user-initiated creation
|
6
|
-
# files.
|
7
|
-
#
|
8
|
-
# @since 3.16.0
|
5
|
+
# The parameters sent in notifications/requests for user-initiated creation
|
6
|
+
# of files.
|
9
7
|
#
|
10
8
|
class CreateFilesParams
|
11
9
|
def initialize(files:)
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.14.0
|
6
|
-
#
|
7
4
|
class DeclarationClientCapabilities
|
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 declaration supports dynamic registration. If this is set to
|
19
|
-
# the client supports the new `DeclarationRegistrationOptions`
|
20
|
-
# for the corresponding server capability as well.
|
15
|
+
# Whether declaration supports dynamic registration. If this is set to
|
16
|
+
# `true` the client supports the new `DeclarationRegistrationOptions`
|
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,7 +24,7 @@ module LanguageServer
|
|
27
24
|
#
|
28
25
|
# The client supports additional metadata in the form of declaration links.
|
29
26
|
#
|
30
|
-
# @return [boolean
|
27
|
+
# @return [boolean]
|
31
28
|
def link_support
|
32
29
|
attributes.fetch(:linkSupport)
|
33
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
|
@@ -12,16 +12,16 @@ module LanguageServer
|
|
12
12
|
@attributes.freeze
|
13
13
|
end
|
14
14
|
|
15
|
-
# @return [boolean
|
15
|
+
# @return [boolean]
|
16
16
|
def work_done_progress
|
17
17
|
attributes.fetch(:workDoneProgress)
|
18
18
|
end
|
19
19
|
|
20
20
|
#
|
21
|
-
# A document selector to identify the scope of the registration. If set to
|
22
|
-
# the document selector provided on the client side will be used.
|
21
|
+
# A document selector to identify the scope of the registration. If set to
|
22
|
+
# null the document selector provided on the client side will be used.
|
23
23
|
#
|
24
|
-
# @return [DocumentSelector
|
24
|
+
# @return [DocumentSelector]
|
25
25
|
def document_selector
|
26
26
|
attributes.fetch(:documentSelector)
|
27
27
|
end
|
@@ -30,7 +30,7 @@ module LanguageServer
|
|
30
30
|
# The id used to register the request. The id can be used to deregister
|
31
31
|
# the request again. See also Registration#id.
|
32
32
|
#
|
33
|
-
# @return [string
|
33
|
+
# @return [string]
|
34
34
|
def id
|
35
35
|
attributes.fetch(:id)
|
36
36
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
6
|
-
#
|
7
4
|
class DefinitionClientCapabilities
|
8
5
|
def initialize(dynamic_registration: nil, link_support: nil)
|
9
6
|
@attributes = {}
|
@@ -17,7 +14,7 @@ module LanguageServer
|
|
17
14
|
#
|
18
15
|
# Whether definition supports dynamic registration.
|
19
16
|
#
|
20
|
-
# @return [boolean
|
17
|
+
# @return [boolean]
|
21
18
|
def dynamic_registration
|
22
19
|
attributes.fetch(:dynamicRegistration)
|
23
20
|
end
|
@@ -25,9 +22,7 @@ module LanguageServer
|
|
25
22
|
#
|
26
23
|
# The client supports additional metadata in the form of definition links.
|
27
24
|
#
|
28
|
-
# @
|
29
|
-
#
|
30
|
-
# @return [boolean | nil]
|
25
|
+
# @return [boolean]
|
31
26
|
def link_support
|
32
27
|
attributes.fetch(:linkSupport)
|
33
28
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Server Capabilities for a [DefinitionRequest](#DefinitionRequest).
|
6
|
-
#
|
7
4
|
class DefinitionOptions
|
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 [DefinitionRequest](#DefinitionRequest).
|
6
|
-
#
|
7
4
|
class DefinitionParams
|
8
5
|
def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil)
|
9
6
|
@attributes = {}
|
@@ -35,16 +32,16 @@ module LanguageServer
|
|
35
32
|
#
|
36
33
|
# An optional token that a server can use to report work done progress.
|
37
34
|
#
|
38
|
-
# @return [ProgressToken
|
35
|
+
# @return [ProgressToken]
|
39
36
|
def work_done_token
|
40
37
|
attributes.fetch(:workDoneToken)
|
41
38
|
end
|
42
39
|
|
43
40
|
#
|
44
|
-
# An optional token that a server can use to report partial results (e.g.
|
45
|
-
# the client.
|
41
|
+
# An optional token that a server can use to report partial results (e.g.
|
42
|
+
# streaming) to the client.
|
46
43
|
#
|
47
|
-
# @return [ProgressToken
|
44
|
+
# @return [ProgressToken]
|
48
45
|
def partial_result_token
|
49
46
|
attributes.fetch(:partialResultToken)
|
50
47
|
end
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Registration options for a [DefinitionRequest](#DefinitionRequest).
|
6
|
-
#
|
7
4
|
class DefinitionRegistrationOptions
|
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
|
@@ -27,7 +27,7 @@ module LanguageServer
|
|
27
27
|
#
|
28
28
|
# The file to delete.
|
29
29
|
#
|
30
|
-
# @return [
|
30
|
+
# @return [string]
|
31
31
|
def uri
|
32
32
|
attributes.fetch(:uri)
|
33
33
|
end
|
@@ -35,7 +35,7 @@ module LanguageServer
|
|
35
35
|
#
|
36
36
|
# Delete options.
|
37
37
|
#
|
38
|
-
# @return [DeleteFileOptions
|
38
|
+
# @return [DeleteFileOptions]
|
39
39
|
def options
|
40
40
|
attributes.fetch(:options)
|
41
41
|
end
|
@@ -43,9 +43,7 @@ module LanguageServer
|
|
43
43
|
#
|
44
44
|
# An optional annotation identifier describing the operation.
|
45
45
|
#
|
46
|
-
# @
|
47
|
-
#
|
48
|
-
# @return [ChangeAnnotationIdentifier | nil]
|
46
|
+
# @return [string]
|
49
47
|
def annotation_id
|
50
48
|
attributes.fetch(:annotationId)
|
51
49
|
end
|
@@ -17,7 +17,7 @@ module LanguageServer
|
|
17
17
|
#
|
18
18
|
# Delete the content recursively if a folder is denoted.
|
19
19
|
#
|
20
|
-
# @return [boolean
|
20
|
+
# @return [boolean]
|
21
21
|
def recursive
|
22
22
|
attributes.fetch(:recursive)
|
23
23
|
end
|
@@ -25,7 +25,7 @@ module LanguageServer
|
|
25
25
|
#
|
26
26
|
# Ignore the operation if the file doesn't exist.
|
27
27
|
#
|
28
|
-
# @return [boolean
|
28
|
+
# @return [boolean]
|
29
29
|
def ignore_if_not_exists
|
30
30
|
attributes.fetch(:ignoreIfNotExists)
|
31
31
|
end
|
@@ -2,10 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# The parameters sent in notifications/requests for user-initiated deletes
|
6
|
-
# files.
|
7
|
-
#
|
8
|
-
# @since 3.16.0
|
5
|
+
# The parameters sent in notifications/requests for user-initiated deletes
|
6
|
+
# of files.
|
9
7
|
#
|
10
8
|
class DeleteFilesParams
|
11
9
|
def initialize(files:)
|
@@ -1,10 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Represents a diagnostic, such as a compiler error or warning. Diagnostic objects
|
6
|
-
# are only valid in the scope of a resource.
|
7
|
-
#
|
8
4
|
class Diagnostic
|
9
5
|
def initialize(range:, severity: nil, code: nil, code_description: nil, source: nil, message:, tags: nil, related_information: nil, data: nil)
|
10
6
|
@attributes = {}
|
@@ -23,7 +19,7 @@ module LanguageServer
|
|
23
19
|
end
|
24
20
|
|
25
21
|
#
|
26
|
-
# The range at which the message applies
|
22
|
+
# The range at which the message applies.
|
27
23
|
#
|
28
24
|
# @return [Range]
|
29
25
|
def range
|
@@ -34,42 +30,38 @@ module LanguageServer
|
|
34
30
|
# The diagnostic's severity. Can be omitted. If omitted it is up to the
|
35
31
|
# client to interpret diagnostics as error, warning, info or hint.
|
36
32
|
#
|
37
|
-
# @return [DiagnosticSeverity
|
33
|
+
# @return [DiagnosticSeverity]
|
38
34
|
def severity
|
39
35
|
attributes.fetch(:severity)
|
40
36
|
end
|
41
37
|
|
42
38
|
#
|
43
|
-
# The diagnostic's code, which
|
39
|
+
# The diagnostic's code, which might appear in the user interface.
|
44
40
|
#
|
45
|
-
# @return [
|
41
|
+
# @return [string | number]
|
46
42
|
def code
|
47
43
|
attributes.fetch(:code)
|
48
44
|
end
|
49
45
|
|
50
46
|
#
|
51
47
|
# An optional property to describe the error code.
|
52
|
-
# Requires the code field (above) to be present/not null.
|
53
48
|
#
|
54
|
-
# @
|
55
|
-
#
|
56
|
-
# @return [CodeDescription | nil]
|
49
|
+
# @return [CodeDescription]
|
57
50
|
def code_description
|
58
51
|
attributes.fetch(:codeDescription)
|
59
52
|
end
|
60
53
|
|
61
54
|
#
|
62
55
|
# A human-readable string describing the source of this
|
63
|
-
# diagnostic, e.g. 'typescript' or 'super lint'.
|
64
|
-
# appears in the user interface.
|
56
|
+
# diagnostic, e.g. 'typescript' or 'super lint'.
|
65
57
|
#
|
66
|
-
# @return [string
|
58
|
+
# @return [string]
|
67
59
|
def source
|
68
60
|
attributes.fetch(:source)
|
69
61
|
end
|
70
62
|
|
71
63
|
#
|
72
|
-
# The diagnostic's message.
|
64
|
+
# The diagnostic's message.
|
73
65
|
#
|
74
66
|
# @return [string]
|
75
67
|
def message
|
@@ -79,9 +71,7 @@ module LanguageServer
|
|
79
71
|
#
|
80
72
|
# Additional metadata about the diagnostic.
|
81
73
|
#
|
82
|
-
# @
|
83
|
-
#
|
84
|
-
# @return [DiagnosticTag[] | nil]
|
74
|
+
# @return [DiagnosticTag[]]
|
85
75
|
def tags
|
86
76
|
attributes.fetch(:tags)
|
87
77
|
end
|
@@ -90,18 +80,17 @@ module LanguageServer
|
|
90
80
|
# An array of related diagnostic information, e.g. when symbol-names within
|
91
81
|
# a scope collide all definitions can be marked via this property.
|
92
82
|
#
|
93
|
-
# @return [DiagnosticRelatedInformation[]
|
83
|
+
# @return [DiagnosticRelatedInformation[]]
|
94
84
|
def related_information
|
95
85
|
attributes.fetch(:relatedInformation)
|
96
86
|
end
|
97
87
|
|
98
88
|
#
|
99
|
-
# A data entry field that is preserved between a
|
100
|
-
#
|
101
|
-
#
|
102
|
-
# @since 3.16.0
|
89
|
+
# A data entry field that is preserved between a
|
90
|
+
# `textDocument/publishDiagnostics` notification and
|
91
|
+
# `textDocument/codeAction` request.
|
103
92
|
#
|
104
|
-
# @return [
|
93
|
+
# @return [unknown]
|
105
94
|
def data
|
106
95
|
attributes.fetch(:data)
|
107
96
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Client capabilities specific to diagnostic pull requests.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class DiagnosticClientCapabilities
|
10
8
|
def initialize(dynamic_registration: nil, related_document_support: nil)
|
11
9
|
@attributes = {}
|
@@ -17,19 +15,21 @@ module LanguageServer
|
|
17
15
|
end
|
18
16
|
|
19
17
|
#
|
20
|
-
# Whether implementation supports dynamic registration. If this is set to
|
21
|
-
# the client supports the new
|
18
|
+
# Whether implementation supports dynamic registration. If this is set to
|
19
|
+
# `true` the client supports the new
|
20
|
+
# `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
22
21
|
# return value for the corresponding server capability as well.
|
23
22
|
#
|
24
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
25
24
|
def dynamic_registration
|
26
25
|
attributes.fetch(:dynamicRegistration)
|
27
26
|
end
|
28
27
|
|
29
28
|
#
|
30
|
-
# Whether the clients supports related documents for document diagnostic
|
29
|
+
# Whether the clients supports related documents for document diagnostic
|
30
|
+
# pulls.
|
31
31
|
#
|
32
|
-
# @return [boolean
|
32
|
+
# @return [boolean]
|
33
33
|
def related_document_support
|
34
34
|
attributes.fetch(:relatedDocumentSupport)
|
35
35
|
end
|
@@ -4,25 +4,28 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Diagnostic options.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class DiagnosticOptions
|
10
|
-
def initialize(identifier: nil, inter_file_dependencies:, workspace_diagnostics
|
8
|
+
def initialize(work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:)
|
11
9
|
@attributes = {}
|
12
10
|
|
11
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
13
12
|
@attributes[:identifier] = identifier if identifier
|
14
13
|
@attributes[:interFileDependencies] = inter_file_dependencies
|
15
14
|
@attributes[:workspaceDiagnostics] = workspace_diagnostics
|
16
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
17
15
|
|
18
16
|
@attributes.freeze
|
19
17
|
end
|
20
18
|
|
19
|
+
# @return [boolean]
|
20
|
+
def work_done_progress
|
21
|
+
attributes.fetch(:workDoneProgress)
|
22
|
+
end
|
23
|
+
|
21
24
|
#
|
22
25
|
# An optional identifier under which the diagnostics are
|
23
26
|
# managed by the client.
|
24
27
|
#
|
25
|
-
# @return [string
|
28
|
+
# @return [string]
|
26
29
|
def identifier
|
27
30
|
attributes.fetch(:identifier)
|
28
31
|
end
|
@@ -46,11 +49,6 @@ module LanguageServer
|
|
46
49
|
attributes.fetch(:workspaceDiagnostics)
|
47
50
|
end
|
48
51
|
|
49
|
-
# @return [boolean | nil]
|
50
|
-
def work_done_progress
|
51
|
-
attributes.fetch(:workDoneProgress)
|
52
|
-
end
|
53
|
-
|
54
52
|
attr_reader :attributes
|
55
53
|
|
56
54
|
def to_hash
|
@@ -4,36 +4,39 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Diagnostic registration options.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class DiagnosticRegistrationOptions
|
10
|
-
def initialize(document_selector:, identifier: nil, inter_file_dependencies:, workspace_diagnostics:,
|
8
|
+
def initialize(document_selector:, work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:, id: nil)
|
11
9
|
@attributes = {}
|
12
10
|
|
13
11
|
@attributes[:documentSelector] = document_selector
|
12
|
+
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
14
13
|
@attributes[:identifier] = identifier if identifier
|
15
14
|
@attributes[:interFileDependencies] = inter_file_dependencies
|
16
15
|
@attributes[:workspaceDiagnostics] = workspace_diagnostics
|
17
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
18
16
|
@attributes[:id] = id if id
|
19
17
|
|
20
18
|
@attributes.freeze
|
21
19
|
end
|
22
20
|
|
23
21
|
#
|
24
|
-
# A document selector to identify the scope of the registration. If set to
|
25
|
-
# the document selector provided on the client side will be used.
|
22
|
+
# A document selector to identify the scope of the registration. If set to
|
23
|
+
# null the document selector provided on the client side will be used.
|
26
24
|
#
|
27
|
-
# @return [DocumentSelector
|
25
|
+
# @return [DocumentSelector]
|
28
26
|
def document_selector
|
29
27
|
attributes.fetch(:documentSelector)
|
30
28
|
end
|
31
29
|
|
30
|
+
# @return [boolean]
|
31
|
+
def work_done_progress
|
32
|
+
attributes.fetch(:workDoneProgress)
|
33
|
+
end
|
34
|
+
|
32
35
|
#
|
33
36
|
# An optional identifier under which the diagnostics are
|
34
37
|
# managed by the client.
|
35
38
|
#
|
36
|
-
# @return [string
|
39
|
+
# @return [string]
|
37
40
|
def identifier
|
38
41
|
attributes.fetch(:identifier)
|
39
42
|
end
|
@@ -57,16 +60,11 @@ module LanguageServer
|
|
57
60
|
attributes.fetch(:workspaceDiagnostics)
|
58
61
|
end
|
59
62
|
|
60
|
-
# @return [boolean | nil]
|
61
|
-
def work_done_progress
|
62
|
-
attributes.fetch(:workDoneProgress)
|
63
|
-
end
|
64
|
-
|
65
63
|
#
|
66
64
|
# The id used to register the request. The id can be used to deregister
|
67
65
|
# the request again. See also Registration#id.
|
68
66
|
#
|
69
|
-
# @return [string
|
67
|
+
# @return [string]
|
70
68
|
def id
|
71
69
|
attributes.fetch(:id)
|
72
70
|
end
|
@@ -2,9 +2,9 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# Represents a related message and source code location for a diagnostic.
|
6
|
-
# used to point to code locations that cause or related to
|
7
|
-
# a symbol in a scope.
|
5
|
+
# Represents a related message and source code location for a diagnostic.
|
6
|
+
# This should be used to point to code locations that cause or are related to
|
7
|
+
# a diagnostics, e.g when duplicating a symbol in a scope.
|
8
8
|
#
|
9
9
|
class DiagnosticRelatedInformation
|
10
10
|
def initialize(location:, message:)
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Workspace client capabilities specific to diagnostic pull requests.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class DiagnosticWorkspaceClientCapabilities
|
10
8
|
def initialize(refresh_support: nil)
|
11
9
|
@attributes = {}
|
@@ -20,11 +18,11 @@ module LanguageServer
|
|
20
18
|
# the server to the client.
|
21
19
|
#
|
22
20
|
# Note that this event is global and will force the client to refresh all
|
23
|
-
# pulled diagnostics currently shown. It should be used with absolute care
|
24
|
-
# is useful for situation where a server for example detects a project
|
25
|
-
# change that requires such a calculation.
|
21
|
+
# pulled diagnostics currently shown. It should be used with absolute care
|
22
|
+
# and is useful for situation where a server for example detects a project
|
23
|
+
# wide change that requires such a calculation.
|
26
24
|
#
|
27
|
-
# @return [boolean
|
25
|
+
# @return [boolean]
|
28
26
|
def refresh_support
|
29
27
|
attributes.fetch(:refreshSupport)
|
30
28
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# The params sent in a change notebook document notification.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class DidChangeNotebookDocumentParams
|
10
8
|
def initialize(notebook_document:, change:)
|
11
9
|
@attributes = {}
|
@@ -18,9 +16,7 @@ module LanguageServer
|
|
18
16
|
|
19
17
|
#
|
20
18
|
# The notebook document that did change. The version number points
|
21
|
-
# to the version after all provided changes have been applied.
|
22
|
-
# only the text document content of a cell changes the notebook version
|
23
|
-
# doesn't necessarily have to change.
|
19
|
+
# to the version after all provided changes have been applied.
|
24
20
|
#
|
25
21
|
# @return [VersionedNotebookDocumentIdentifier]
|
26
22
|
def notebook_document
|
@@ -30,17 +26,15 @@ module LanguageServer
|
|
30
26
|
#
|
31
27
|
# The actual changes to the notebook document.
|
32
28
|
#
|
33
|
-
# The
|
34
|
-
# So
|
35
|
-
#
|
36
|
-
# S to S' and c2 from S' to S''. So c1 is computed on the state S and
|
37
|
-
# c2 is computed on the state S'.
|
29
|
+
# The change describes single state change to the notebook document.
|
30
|
+
# So it moves a notebook document, its cells and its cell text document
|
31
|
+
# contents from state S to S'.
|
38
32
|
#
|
39
|
-
# To mirror the content of a notebook using change events use the
|
33
|
+
# To mirror the content of a notebook using change events use the
|
34
|
+
# following approach:
|
40
35
|
# - start with the same initial content
|
41
|
-
# - apply the 'notebookDocument/didChange' notifications in the order
|
42
|
-
#
|
43
|
-
# you receive them.
|
36
|
+
# - apply the 'notebookDocument/didChange' notifications in the order
|
37
|
+
# you receive them.
|
44
38
|
#
|
45
39
|
# @return [NotebookDocumentChangeEvent]
|
46
40
|
def change
|