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,10 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Represents the connection of two locations. Provides additional metadata over normal [locations](#Location),
|
6
|
-
# including an origin range.
|
7
|
-
#
|
8
4
|
class LocationLink
|
9
5
|
def initialize(origin_selection_range: nil, target_uri:, target_range:, target_selection_range:)
|
10
6
|
@attributes = {}
|
@@ -20,10 +16,10 @@ module LanguageServer
|
|
20
16
|
#
|
21
17
|
# Span of the origin of this link.
|
22
18
|
#
|
23
|
-
# Used as the underlined span for mouse interaction. Defaults to the word
|
24
|
-
# the
|
19
|
+
# Used as the underlined span for mouse interaction. Defaults to the word
|
20
|
+
# range at the mouse position.
|
25
21
|
#
|
26
|
-
# @return [Range
|
22
|
+
# @return [Range]
|
27
23
|
def origin_selection_range
|
28
24
|
attributes.fetch(:originSelectionRange)
|
29
25
|
end
|
@@ -31,15 +27,16 @@ module LanguageServer
|
|
31
27
|
#
|
32
28
|
# The target resource identifier of this link.
|
33
29
|
#
|
34
|
-
# @return [
|
30
|
+
# @return [string]
|
35
31
|
def target_uri
|
36
32
|
attributes.fetch(:targetUri)
|
37
33
|
end
|
38
34
|
|
39
35
|
#
|
40
|
-
# The full target range of this link. If the target for example is a symbol
|
41
|
-
# range enclosing this symbol not including
|
42
|
-
#
|
36
|
+
# The full target range of this link. If the target for example is a symbol
|
37
|
+
# then target range is the range enclosing this symbol not including
|
38
|
+
# leading/trailing whitespace but everything else like comments. This
|
39
|
+
# information is typically used to highlight the range in the editor.
|
43
40
|
#
|
44
41
|
# @return [Range]
|
45
42
|
def target_range
|
@@ -47,8 +44,9 @@ module LanguageServer
|
|
47
44
|
end
|
48
45
|
|
49
46
|
#
|
50
|
-
# The range that should be selected and revealed when this link is being
|
51
|
-
# Must be contained by the
|
47
|
+
# The range that should be selected and revealed when this link is being
|
48
|
+
# followed, e.g the name of a function. Must be contained by the
|
49
|
+
# `targetRange`. See also `DocumentSymbol#range`
|
52
50
|
#
|
53
51
|
# @return [Range]
|
54
52
|
def target_selection_range
|
@@ -1,9 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# The log message parameters.
|
6
|
-
#
|
7
4
|
class LogMessageParams
|
8
5
|
def initialize(type:, message:)
|
9
6
|
@attributes = {}
|
@@ -23,7 +20,7 @@ module LanguageServer
|
|
23
20
|
end
|
24
21
|
|
25
22
|
#
|
26
|
-
# The actual message
|
23
|
+
# The actual message
|
27
24
|
#
|
28
25
|
# @return [string]
|
29
26
|
def message
|
@@ -11,12 +11,19 @@ module LanguageServer
|
|
11
11
|
@attributes.freeze
|
12
12
|
end
|
13
13
|
|
14
|
+
#
|
15
|
+
# The message to be logged.
|
16
|
+
#
|
14
17
|
# @return [string]
|
15
18
|
def message
|
16
19
|
attributes.fetch(:message)
|
17
20
|
end
|
18
21
|
|
19
|
-
#
|
22
|
+
#
|
23
|
+
# Additional information that can be computed if the `trace` configuration
|
24
|
+
# is set to `'verbose'`
|
25
|
+
#
|
26
|
+
# @return [string]
|
20
27
|
def verbose
|
21
28
|
attributes.fetch(:verbose)
|
22
29
|
end
|
@@ -2,28 +2,30 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
4
|
#
|
5
|
-
# A `MarkupContent` literal represents a string value which content is
|
6
|
-
# kind flag. Currently the protocol supports
|
5
|
+
# A `MarkupContent` literal represents a string value which content is
|
6
|
+
# interpreted base on its kind flag. Currently the protocol supports
|
7
|
+
# `plaintext` and `markdown` as markup kinds.
|
7
8
|
#
|
8
|
-
# If the kind is `markdown` then the value can contain fenced code blocks like
|
9
|
-
#
|
9
|
+
# If the kind is `markdown` then the value can contain fenced code blocks like
|
10
|
+
# in GitHub issues.
|
10
11
|
#
|
11
|
-
# Here is an example how such a string can be constructed using
|
12
|
-
#
|
12
|
+
# Here is an example how such a string can be constructed using
|
13
|
+
# JavaScript / TypeScript:
|
14
|
+
# ```typescript
|
13
15
|
# let markdown: MarkdownContent = {
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
17
|
-
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
16
|
+
# kind: MarkupKind.Markdown,
|
17
|
+
# value: [
|
18
|
+
# '# Header',
|
19
|
+
# 'Some text',
|
20
|
+
# '```typescript',
|
21
|
+
# 'someCode();',
|
22
|
+
# '```'
|
23
|
+
# ].join('\n')
|
22
24
|
# };
|
23
25
|
# ```
|
24
26
|
#
|
25
|
-
# *Please Note* that clients might sanitize the return markdown. A client could
|
26
|
-
# remove HTML from the markdown to avoid script execution.
|
27
|
+
# *Please Note* that clients might sanitize the return markdown. A client could
|
28
|
+
# decide to remove HTML from the markdown to avoid script execution.
|
27
29
|
#
|
28
30
|
class MarkupContent
|
29
31
|
def initialize(kind:, value:)
|
@@ -1,18 +1,20 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
|
5
|
-
|
6
|
-
# @since 3.17.0
|
7
|
-
#
|
8
|
-
class LSPObject
|
9
|
-
def initialize()
|
4
|
+
class Message
|
5
|
+
def initialize(jsonrpc:)
|
10
6
|
@attributes = {}
|
11
7
|
|
8
|
+
@attributes[:jsonrpc] = jsonrpc
|
12
9
|
|
13
10
|
@attributes.freeze
|
14
11
|
end
|
15
12
|
|
13
|
+
# @return [string]
|
14
|
+
def jsonrpc
|
15
|
+
attributes.fetch(:jsonrpc)
|
16
|
+
end
|
17
|
+
|
16
18
|
attr_reader :attributes
|
17
19
|
|
18
20
|
def to_hash
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Moniker definition to match LSIF 0.5 moniker definition.
|
6
6
|
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
7
|
class Moniker
|
10
8
|
def initialize(scheme:, identifier:, unique:, kind: nil)
|
11
9
|
@attributes = {}
|
@@ -46,7 +44,7 @@ module LanguageServer
|
|
46
44
|
#
|
47
45
|
# The moniker kind if known.
|
48
46
|
#
|
49
|
-
# @return [MonikerKind
|
47
|
+
# @return [MonikerKind]
|
50
48
|
def kind
|
51
49
|
attributes.fetch(:kind)
|
52
50
|
end
|
@@ -1,11 +1,6 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Interface
|
4
|
-
#
|
5
|
-
# Client capabilities specific to the moniker request.
|
6
|
-
#
|
7
|
-
# @since 3.16.0
|
8
|
-
#
|
9
4
|
class MonikerClientCapabilities
|
10
5
|
def initialize(dynamic_registration: nil)
|
11
6
|
@attributes = {}
|
@@ -16,11 +11,12 @@ module LanguageServer
|
|
16
11
|
end
|
17
12
|
|
18
13
|
#
|
19
|
-
# Whether
|
20
|
-
# the client supports the new `
|
21
|
-
# for the corresponding server
|
14
|
+
# Whether implementation supports dynamic registration. If this is set to
|
15
|
+
# `true` the client supports the new `(TextDocumentRegistrationOptions &
|
16
|
+
# StaticRegistrationOptions)` return value for the corresponding server
|
17
|
+
# capability as well.
|
22
18
|
#
|
23
|
-
# @return [boolean
|
19
|
+
# @return [boolean]
|
24
20
|
def dynamic_registration
|
25
21
|
attributes.fetch(:dynamicRegistration)
|
26
22
|
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,15 +12,15 @@ module LanguageServer
|
|
12
12
|
end
|
13
13
|
|
14
14
|
#
|
15
|
-
# A document selector to identify the scope of the registration. If set to
|
16
|
-
# 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.
|
17
17
|
#
|
18
|
-
# @return [DocumentSelector
|
18
|
+
# @return [DocumentSelector]
|
19
19
|
def document_selector
|
20
20
|
attributes.fetch(:documentSelector)
|
21
21
|
end
|
22
22
|
|
23
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
24
24
|
def work_done_progress
|
25
25
|
attributes.fetch(:workDoneProgress)
|
26
26
|
end
|
@@ -8,8 +8,6 @@ module LanguageServer
|
|
8
8
|
# cells and can therefore be used to uniquely identify a
|
9
9
|
# notebook cell or the cell's text document.
|
10
10
|
#
|
11
|
-
# @since 3.17.0
|
12
|
-
#
|
13
11
|
class NotebookCell
|
14
12
|
def initialize(kind:, document:, metadata: nil, execution_summary: nil)
|
15
13
|
@attributes = {}
|
@@ -25,7 +23,7 @@ module LanguageServer
|
|
25
23
|
#
|
26
24
|
# The cell's kind
|
27
25
|
#
|
28
|
-
# @return [
|
26
|
+
# @return [any]
|
29
27
|
def kind
|
30
28
|
attributes.fetch(:kind)
|
31
29
|
end
|
@@ -34,7 +32,7 @@ module LanguageServer
|
|
34
32
|
# The URI of the cell's text document
|
35
33
|
# content.
|
36
34
|
#
|
37
|
-
# @return [
|
35
|
+
# @return [string]
|
38
36
|
def document
|
39
37
|
attributes.fetch(:document)
|
40
38
|
end
|
@@ -42,9 +40,7 @@ module LanguageServer
|
|
42
40
|
#
|
43
41
|
# Additional metadata stored with the cell.
|
44
42
|
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
# @return [LSPObject | nil]
|
43
|
+
# @return [LSPObject]
|
48
44
|
def metadata
|
49
45
|
attributes.fetch(:metadata)
|
50
46
|
end
|
@@ -53,7 +49,7 @@ module LanguageServer
|
|
53
49
|
# Additional execution summary information
|
54
50
|
# if supported by the client.
|
55
51
|
#
|
56
|
-
# @return [ExecutionSummary
|
52
|
+
# @return [ExecutionSummary]
|
57
53
|
def execution_summary
|
58
54
|
attributes.fetch(:executionSummary)
|
59
55
|
end
|
@@ -5,8 +5,6 @@ module LanguageServer
|
|
5
5
|
# A change describing how to move a `NotebookCell`
|
6
6
|
# array from state S to S'.
|
7
7
|
#
|
8
|
-
# @since 3.17.0
|
9
|
-
#
|
10
8
|
class NotebookCellArrayChange
|
11
9
|
def initialize(start:, delete_count:, cells: nil)
|
12
10
|
@attributes = {}
|
@@ -19,9 +17,9 @@ module LanguageServer
|
|
19
17
|
end
|
20
18
|
|
21
19
|
#
|
22
|
-
# The start
|
20
|
+
# The start offset of the cell that changed.
|
23
21
|
#
|
24
|
-
# @return [
|
22
|
+
# @return [number]
|
25
23
|
def start
|
26
24
|
attributes.fetch(:start)
|
27
25
|
end
|
@@ -29,7 +27,7 @@ module LanguageServer
|
|
29
27
|
#
|
30
28
|
# The deleted cells
|
31
29
|
#
|
32
|
-
# @return [
|
30
|
+
# @return [number]
|
33
31
|
def delete_count
|
34
32
|
attributes.fetch(:deleteCount)
|
35
33
|
end
|
@@ -37,7 +35,7 @@ module LanguageServer
|
|
37
35
|
#
|
38
36
|
# The new cells, if any
|
39
37
|
#
|
40
|
-
# @return [NotebookCell[]
|
38
|
+
# @return [NotebookCell[]]
|
41
39
|
def cells
|
42
40
|
attributes.fetch(:cells)
|
43
41
|
end
|
@@ -5,8 +5,6 @@ module LanguageServer
|
|
5
5
|
# A notebook cell text document filter denotes a cell text
|
6
6
|
# document by different properties.
|
7
7
|
#
|
8
|
-
# @since 3.17.0
|
9
|
-
#
|
10
8
|
class NotebookCellTextDocumentFilter
|
11
9
|
def initialize(notebook:, language: nil)
|
12
10
|
@attributes = {}
|
@@ -34,7 +32,7 @@ module LanguageServer
|
|
34
32
|
# Will be matched against the language id of the
|
35
33
|
# notebook cell document. '*' matches every language.
|
36
34
|
#
|
37
|
-
# @return [string
|
35
|
+
# @return [string]
|
38
36
|
def language
|
39
37
|
attributes.fetch(:language)
|
40
38
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A notebook document.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocument
|
10
8
|
def initialize(uri:, notebook_type:, version:, metadata: nil, cells:)
|
11
9
|
@attributes = {}
|
@@ -20,9 +18,9 @@ module LanguageServer
|
|
20
18
|
end
|
21
19
|
|
22
20
|
#
|
23
|
-
# The notebook document's
|
21
|
+
# The notebook document's URI.
|
24
22
|
#
|
25
|
-
# @return [
|
23
|
+
# @return [string]
|
26
24
|
def uri
|
27
25
|
attributes.fetch(:uri)
|
28
26
|
end
|
@@ -39,7 +37,7 @@ module LanguageServer
|
|
39
37
|
# The version number of this document (it will increase after each
|
40
38
|
# change, including undo/redo).
|
41
39
|
#
|
42
|
-
# @return [
|
40
|
+
# @return [number]
|
43
41
|
def version
|
44
42
|
attributes.fetch(:version)
|
45
43
|
end
|
@@ -48,9 +46,7 @@ module LanguageServer
|
|
48
46
|
# Additional metadata stored with the notebook
|
49
47
|
# document.
|
50
48
|
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# @return [LSPObject | nil]
|
49
|
+
# @return [LSPObject]
|
54
50
|
def metadata
|
55
51
|
attributes.fetch(:metadata)
|
56
52
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A change event for a notebook document.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocumentChangeEvent
|
10
8
|
def initialize(metadata: nil, cells: nil)
|
11
9
|
@attributes = {}
|
@@ -19,9 +17,7 @@ module LanguageServer
|
|
19
17
|
#
|
20
18
|
# The changed meta data if any.
|
21
19
|
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# @return [LSPObject | nil]
|
20
|
+
# @return [LSPObject]
|
25
21
|
def metadata
|
26
22
|
attributes.fetch(:metadata)
|
27
23
|
end
|
@@ -29,7 +25,7 @@ module LanguageServer
|
|
29
25
|
#
|
30
26
|
# Changes to cells
|
31
27
|
#
|
32
|
-
# @return [{ structure
|
28
|
+
# @return [{ structure?: { array: NotebookCellArrayChange; didOpen?: TextDocumentItem[]; didClose?: TextDocumentIdentifier[]; }; data?: NotebookCell[]; textContent?: { ...; }[]; }]
|
33
29
|
def cells
|
34
30
|
attributes.fetch(:cells)
|
35
31
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Capabilities specific to the notebook document support.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocumentClientCapabilities
|
10
8
|
def initialize(synchronization:)
|
11
9
|
@attributes = {}
|
@@ -18,8 +16,6 @@ module LanguageServer
|
|
18
16
|
#
|
19
17
|
# Capabilities specific to notebook document synchronization
|
20
18
|
#
|
21
|
-
# @since 3.17.0
|
22
|
-
#
|
23
19
|
# @return [NotebookDocumentSyncClientCapabilities]
|
24
20
|
def synchronization
|
25
21
|
attributes.fetch(:synchronization)
|
@@ -3,16 +3,13 @@ module LanguageServer
|
|
3
3
|
module Interface
|
4
4
|
#
|
5
5
|
# A notebook document filter denotes a notebook document by
|
6
|
-
# different properties.
|
7
|
-
# against the notebook's URI (same as with documents)
|
8
|
-
#
|
9
|
-
# @since 3.17.0
|
6
|
+
# different properties.
|
10
7
|
#
|
11
8
|
class NotebookDocumentFilter
|
12
|
-
def initialize(notebook_type
|
9
|
+
def initialize(notebook_type: nil, scheme: nil, pattern: nil)
|
13
10
|
@attributes = {}
|
14
11
|
|
15
|
-
@attributes[:notebookType] = notebook_type
|
12
|
+
@attributes[:notebookType] = notebook_type if notebook_type
|
16
13
|
@attributes[:scheme] = scheme if scheme
|
17
14
|
@attributes[:pattern] = pattern if pattern
|
18
15
|
|
@@ -20,7 +17,15 @@ module LanguageServer
|
|
20
17
|
end
|
21
18
|
|
22
19
|
#
|
23
|
-
# The type of the enclosing notebook.
|
20
|
+
# The type of the enclosing notebook.
|
21
|
+
#
|
22
|
+
# --- OR ---
|
23
|
+
#
|
24
|
+
# The type of the enclosing notebook.
|
25
|
+
#
|
26
|
+
# --- OR ---
|
27
|
+
#
|
28
|
+
# The type of the enclosing notebook.
|
24
29
|
#
|
25
30
|
# @return [string]
|
26
31
|
def notebook_type
|
@@ -28,17 +33,33 @@ module LanguageServer
|
|
28
33
|
end
|
29
34
|
|
30
35
|
#
|
31
|
-
# A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
36
|
+
# A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
37
|
+
#
|
38
|
+
# --- OR ---
|
39
|
+
#
|
40
|
+
# A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
41
|
+
#
|
42
|
+
# --- OR ---
|
32
43
|
#
|
33
|
-
#
|
44
|
+
# A Uri [scheme](#Uri.scheme), like `file` or `untitled`.
|
45
|
+
#
|
46
|
+
# @return [string]
|
34
47
|
def scheme
|
35
48
|
attributes.fetch(:scheme)
|
36
49
|
end
|
37
50
|
|
38
51
|
#
|
39
|
-
# A glob pattern.
|
52
|
+
# A glob pattern.
|
53
|
+
#
|
54
|
+
# --- OR ---
|
55
|
+
#
|
56
|
+
# A glob pattern.
|
40
57
|
#
|
41
|
-
#
|
58
|
+
# --- OR ---
|
59
|
+
#
|
60
|
+
# A glob pattern.
|
61
|
+
#
|
62
|
+
# @return [string]
|
42
63
|
def pattern
|
43
64
|
attributes.fetch(:pattern)
|
44
65
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# A literal to identify a notebook document in the client.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocumentIdentifier
|
10
8
|
def initialize(uri:)
|
11
9
|
@attributes = {}
|
@@ -16,9 +14,9 @@ module LanguageServer
|
|
16
14
|
end
|
17
15
|
|
18
16
|
#
|
19
|
-
# The notebook document's
|
17
|
+
# The notebook document's URI.
|
20
18
|
#
|
21
|
-
# @return [
|
19
|
+
# @return [string]
|
22
20
|
def uri
|
23
21
|
attributes.fetch(:uri)
|
24
22
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Notebook specific client capabilities.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocumentSyncClientCapabilities
|
10
8
|
def initialize(dynamic_registration: nil, execution_summary_support: nil)
|
11
9
|
@attributes = {}
|
@@ -22,7 +20,7 @@ module LanguageServer
|
|
22
20
|
# `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
23
21
|
# return value for the corresponding server capability as well.
|
24
22
|
#
|
25
|
-
# @return [boolean
|
23
|
+
# @return [boolean]
|
26
24
|
def dynamic_registration
|
27
25
|
attributes.fetch(:dynamicRegistration)
|
28
26
|
end
|
@@ -30,7 +28,7 @@ module LanguageServer
|
|
30
28
|
#
|
31
29
|
# The client supports sending execution summary data per cell.
|
32
30
|
#
|
33
|
-
# @return [boolean
|
31
|
+
# @return [boolean]
|
34
32
|
def execution_summary_support
|
35
33
|
attributes.fetch(:executionSummarySupport)
|
36
34
|
end
|
@@ -11,11 +11,9 @@ module LanguageServer
|
|
11
11
|
#
|
12
12
|
# If a selector provides no notebook document
|
13
13
|
# filter but only a cell selector all notebook
|
14
|
-
#
|
14
|
+
# documents that contain at least one matching
|
15
15
|
# cell will be synced.
|
16
16
|
#
|
17
|
-
# @since 3.17.0
|
18
|
-
#
|
19
17
|
class NotebookDocumentSyncOptions
|
20
18
|
def initialize(notebook_selector:, save: nil)
|
21
19
|
@attributes = {}
|
@@ -29,7 +27,7 @@ module LanguageServer
|
|
29
27
|
#
|
30
28
|
# The notebooks to be synced
|
31
29
|
#
|
32
|
-
# @return [{ notebook:string | NotebookDocumentFilter
|
30
|
+
# @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]]
|
33
31
|
def notebook_selector
|
34
32
|
attributes.fetch(:notebookSelector)
|
35
33
|
end
|
@@ -38,7 +36,7 @@ module LanguageServer
|
|
38
36
|
# Whether save notification should be forwarded to
|
39
37
|
# the server. Will only be honored if mode === `notebook`.
|
40
38
|
#
|
41
|
-
# @return [boolean
|
39
|
+
# @return [boolean]
|
42
40
|
def save
|
43
41
|
attributes.fetch(:save)
|
44
42
|
end
|
@@ -4,8 +4,6 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# Registration options specific to a notebook.
|
6
6
|
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
7
|
class NotebookDocumentSyncRegistrationOptions
|
10
8
|
def initialize(notebook_selector:, save: nil, id: nil)
|
11
9
|
@attributes = {}
|
@@ -20,7 +18,7 @@ module LanguageServer
|
|
20
18
|
#
|
21
19
|
# The notebooks to be synced
|
22
20
|
#
|
23
|
-
# @return [{ notebook:string | NotebookDocumentFilter
|
21
|
+
# @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]]
|
24
22
|
def notebook_selector
|
25
23
|
attributes.fetch(:notebookSelector)
|
26
24
|
end
|
@@ -29,7 +27,7 @@ module LanguageServer
|
|
29
27
|
# Whether save notification should be forwarded to
|
30
28
|
# the server. Will only be honored if mode === `notebook`.
|
31
29
|
#
|
32
|
-
# @return [boolean
|
30
|
+
# @return [boolean]
|
33
31
|
def save
|
34
32
|
attributes.fetch(:save)
|
35
33
|
end
|
@@ -38,7 +36,7 @@ module LanguageServer
|
|
38
36
|
# The id used to register the request. The id can be used to deregister
|
39
37
|
# the request again. See also Registration#id.
|
40
38
|
#
|
41
|
-
# @return [string
|
39
|
+
# @return [string]
|
42
40
|
def id
|
43
41
|
attributes.fetch(:id)
|
44
42
|
end
|