language_server-protocol-3.17.0.5/0000755000004100000410000000000015144416405017011 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/language_server-protocol.gemspec0000644000004100000410000007036215144416405025376 0ustar www-datawww-data######################################################### # This file has been automatically generated by gem2tgz # ######################################################### # -*- encoding: utf-8 -*- # stub: language_server-protocol 3.17.0.5 ruby lib Gem::Specification.new do |s| s.name = "language_server-protocol".freeze s.version = "3.17.0.5".freeze s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version= s.require_paths = ["lib".freeze] s.authors = ["Fumiaki MATSUSHIMA".freeze] s.bindir = "exe".freeze s.date = "1980-01-02" s.description = "A Language Server Protocol SDK".freeze s.email = ["mtsmfm@gmail.com".freeze] s.files = ["LICENSE.txt".freeze, "README.md".freeze, "lib/language_server-protocol.rb".freeze, "lib/language_server/protocol.rb".freeze, "lib/language_server/protocol/constant.rb".freeze, "lib/language_server/protocol/constant/code_action_kind.rb".freeze, "lib/language_server/protocol/constant/code_action_trigger_kind.rb".freeze, "lib/language_server/protocol/constant/completion_item_kind.rb".freeze, "lib/language_server/protocol/constant/completion_item_tag.rb".freeze, "lib/language_server/protocol/constant/completion_trigger_kind.rb".freeze, "lib/language_server/protocol/constant/diagnostic_severity.rb".freeze, "lib/language_server/protocol/constant/diagnostic_tag.rb".freeze, "lib/language_server/protocol/constant/document_diagnostic_report_kind.rb".freeze, "lib/language_server/protocol/constant/document_highlight_kind.rb".freeze, "lib/language_server/protocol/constant/error_codes.rb".freeze, "lib/language_server/protocol/constant/failure_handling_kind.rb".freeze, "lib/language_server/protocol/constant/file_change_type.rb".freeze, "lib/language_server/protocol/constant/file_operation_pattern_kind.rb".freeze, "lib/language_server/protocol/constant/folding_range_kind.rb".freeze, "lib/language_server/protocol/constant/initialize_error_codes.rb".freeze, "lib/language_server/protocol/constant/inlay_hint_kind.rb".freeze, "lib/language_server/protocol/constant/insert_text_format.rb".freeze, "lib/language_server/protocol/constant/insert_text_mode.rb".freeze, "lib/language_server/protocol/constant/markup_kind.rb".freeze, "lib/language_server/protocol/constant/message_type.rb".freeze, "lib/language_server/protocol/constant/moniker_kind.rb".freeze, "lib/language_server/protocol/constant/notebook_cell_kind.rb".freeze, "lib/language_server/protocol/constant/position_encoding_kind.rb".freeze, "lib/language_server/protocol/constant/prepare_support_default_behavior.rb".freeze, "lib/language_server/protocol/constant/resource_operation_kind.rb".freeze, "lib/language_server/protocol/constant/semantic_token_modifiers.rb".freeze, "lib/language_server/protocol/constant/semantic_token_types.rb".freeze, "lib/language_server/protocol/constant/signature_help_trigger_kind.rb".freeze, "lib/language_server/protocol/constant/symbol_kind.rb".freeze, "lib/language_server/protocol/constant/symbol_tag.rb".freeze, "lib/language_server/protocol/constant/text_document_save_reason.rb".freeze, "lib/language_server/protocol/constant/text_document_sync_kind.rb".freeze, "lib/language_server/protocol/constant/token_format.rb".freeze, "lib/language_server/protocol/constant/uniqueness_level.rb".freeze, "lib/language_server/protocol/constant/watch_kind.rb".freeze, "lib/language_server/protocol/interface.rb".freeze, "lib/language_server/protocol/interface/annotated_text_edit.rb".freeze, "lib/language_server/protocol/interface/apply_workspace_edit_params.rb".freeze, "lib/language_server/protocol/interface/apply_workspace_edit_result.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_item.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_options.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb".freeze, "lib/language_server/protocol/interface/call_hierarchy_registration_options.rb".freeze, "lib/language_server/protocol/interface/cancel_params.rb".freeze, "lib/language_server/protocol/interface/change_annotation.rb".freeze, "lib/language_server/protocol/interface/client_capabilities.rb".freeze, "lib/language_server/protocol/interface/code_action.rb".freeze, "lib/language_server/protocol/interface/code_action_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/code_action_context.rb".freeze, "lib/language_server/protocol/interface/code_action_options.rb".freeze, "lib/language_server/protocol/interface/code_action_params.rb".freeze, "lib/language_server/protocol/interface/code_action_registration_options.rb".freeze, "lib/language_server/protocol/interface/code_description.rb".freeze, "lib/language_server/protocol/interface/code_lens.rb".freeze, "lib/language_server/protocol/interface/code_lens_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/code_lens_options.rb".freeze, "lib/language_server/protocol/interface/code_lens_params.rb".freeze, "lib/language_server/protocol/interface/code_lens_registration_options.rb".freeze, "lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/color.rb".freeze, "lib/language_server/protocol/interface/color_information.rb".freeze, "lib/language_server/protocol/interface/color_presentation.rb".freeze, "lib/language_server/protocol/interface/color_presentation_params.rb".freeze, "lib/language_server/protocol/interface/command.rb".freeze, "lib/language_server/protocol/interface/completion_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/completion_context.rb".freeze, "lib/language_server/protocol/interface/completion_item.rb".freeze, "lib/language_server/protocol/interface/completion_item_label_details.rb".freeze, "lib/language_server/protocol/interface/completion_list.rb".freeze, "lib/language_server/protocol/interface/completion_options.rb".freeze, "lib/language_server/protocol/interface/completion_params.rb".freeze, "lib/language_server/protocol/interface/completion_registration_options.rb".freeze, "lib/language_server/protocol/interface/configuration_item.rb".freeze, "lib/language_server/protocol/interface/configuration_params.rb".freeze, "lib/language_server/protocol/interface/create_file.rb".freeze, "lib/language_server/protocol/interface/create_file_options.rb".freeze, "lib/language_server/protocol/interface/create_files_params.rb".freeze, "lib/language_server/protocol/interface/declaration_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/declaration_options.rb".freeze, "lib/language_server/protocol/interface/declaration_params.rb".freeze, "lib/language_server/protocol/interface/declaration_registration_options.rb".freeze, "lib/language_server/protocol/interface/definition_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/definition_options.rb".freeze, "lib/language_server/protocol/interface/definition_params.rb".freeze, "lib/language_server/protocol/interface/definition_registration_options.rb".freeze, "lib/language_server/protocol/interface/delete_file.rb".freeze, "lib/language_server/protocol/interface/delete_file_options.rb".freeze, "lib/language_server/protocol/interface/delete_files_params.rb".freeze, "lib/language_server/protocol/interface/diagnostic.rb".freeze, "lib/language_server/protocol/interface/diagnostic_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/diagnostic_options.rb".freeze, "lib/language_server/protocol/interface/diagnostic_registration_options.rb".freeze, "lib/language_server/protocol/interface/diagnostic_related_information.rb".freeze, "lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb".freeze, "lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/did_change_configuration_params.rb".freeze, "lib/language_server/protocol/interface/did_change_notebook_document_params.rb".freeze, "lib/language_server/protocol/interface/did_change_text_document_params.rb".freeze, "lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/did_change_watched_files_params.rb".freeze, "lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb".freeze, "lib/language_server/protocol/interface/did_change_workspace_folders_params.rb".freeze, "lib/language_server/protocol/interface/did_close_notebook_document_params.rb".freeze, "lib/language_server/protocol/interface/did_close_text_document_params.rb".freeze, "lib/language_server/protocol/interface/did_open_notebook_document_params.rb".freeze, "lib/language_server/protocol/interface/did_open_text_document_params.rb".freeze, "lib/language_server/protocol/interface/did_save_notebook_document_params.rb".freeze, "lib/language_server/protocol/interface/did_save_text_document_params.rb".freeze, "lib/language_server/protocol/interface/document_color_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_color_options.rb".freeze, "lib/language_server/protocol/interface/document_color_params.rb".freeze, "lib/language_server/protocol/interface/document_color_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_diagnostic_params.rb".freeze, "lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb".freeze, "lib/language_server/protocol/interface/document_filter.rb".freeze, "lib/language_server/protocol/interface/document_formatting_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_formatting_options.rb".freeze, "lib/language_server/protocol/interface/document_formatting_params.rb".freeze, "lib/language_server/protocol/interface/document_formatting_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_highlight.rb".freeze, "lib/language_server/protocol/interface/document_highlight_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_highlight_options.rb".freeze, "lib/language_server/protocol/interface/document_highlight_params.rb".freeze, "lib/language_server/protocol/interface/document_highlight_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_link.rb".freeze, "lib/language_server/protocol/interface/document_link_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_link_options.rb".freeze, "lib/language_server/protocol/interface/document_link_params.rb".freeze, "lib/language_server/protocol/interface/document_link_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_on_type_formatting_options.rb".freeze, "lib/language_server/protocol/interface/document_on_type_formatting_params.rb".freeze, "lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_range_formatting_options.rb".freeze, "lib/language_server/protocol/interface/document_range_formatting_params.rb".freeze, "lib/language_server/protocol/interface/document_range_formatting_registration_options.rb".freeze, "lib/language_server/protocol/interface/document_symbol.rb".freeze, "lib/language_server/protocol/interface/document_symbol_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/document_symbol_options.rb".freeze, "lib/language_server/protocol/interface/document_symbol_params.rb".freeze, "lib/language_server/protocol/interface/document_symbol_registration_options.rb".freeze, "lib/language_server/protocol/interface/execute_command_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/execute_command_options.rb".freeze, "lib/language_server/protocol/interface/execute_command_params.rb".freeze, "lib/language_server/protocol/interface/execute_command_registration_options.rb".freeze, "lib/language_server/protocol/interface/execution_summary.rb".freeze, "lib/language_server/protocol/interface/file_create.rb".freeze, "lib/language_server/protocol/interface/file_delete.rb".freeze, "lib/language_server/protocol/interface/file_event.rb".freeze, "lib/language_server/protocol/interface/file_operation_filter.rb".freeze, "lib/language_server/protocol/interface/file_operation_pattern.rb".freeze, "lib/language_server/protocol/interface/file_operation_pattern_options.rb".freeze, "lib/language_server/protocol/interface/file_operation_registration_options.rb".freeze, "lib/language_server/protocol/interface/file_rename.rb".freeze, "lib/language_server/protocol/interface/file_system_watcher.rb".freeze, "lib/language_server/protocol/interface/folding_range.rb".freeze, "lib/language_server/protocol/interface/folding_range_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/folding_range_options.rb".freeze, "lib/language_server/protocol/interface/folding_range_params.rb".freeze, "lib/language_server/protocol/interface/folding_range_registration_options.rb".freeze, "lib/language_server/protocol/interface/formatting_options.rb".freeze, "lib/language_server/protocol/interface/full_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/hover.rb".freeze, "lib/language_server/protocol/interface/hover_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/hover_options.rb".freeze, "lib/language_server/protocol/interface/hover_params.rb".freeze, "lib/language_server/protocol/interface/hover_registration_options.rb".freeze, "lib/language_server/protocol/interface/hover_result.rb".freeze, "lib/language_server/protocol/interface/implementation_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/implementation_options.rb".freeze, "lib/language_server/protocol/interface/implementation_params.rb".freeze, "lib/language_server/protocol/interface/implementation_registration_options.rb".freeze, "lib/language_server/protocol/interface/initialize_error.rb".freeze, "lib/language_server/protocol/interface/initialize_params.rb".freeze, "lib/language_server/protocol/interface/initialize_result.rb".freeze, "lib/language_server/protocol/interface/initialized_params.rb".freeze, "lib/language_server/protocol/interface/inlay_hint.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_label_part.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_options.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_params.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_registration_options.rb".freeze, "lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/inline_value_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/inline_value_context.rb".freeze, "lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb".freeze, "lib/language_server/protocol/interface/inline_value_options.rb".freeze, "lib/language_server/protocol/interface/inline_value_params.rb".freeze, "lib/language_server/protocol/interface/inline_value_registration_options.rb".freeze, "lib/language_server/protocol/interface/inline_value_text.rb".freeze, "lib/language_server/protocol/interface/inline_value_variable_lookup.rb".freeze, "lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/insert_replace_edit.rb".freeze, "lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/linked_editing_range_options.rb".freeze, "lib/language_server/protocol/interface/linked_editing_range_params.rb".freeze, "lib/language_server/protocol/interface/linked_editing_range_registration_options.rb".freeze, "lib/language_server/protocol/interface/linked_editing_ranges.rb".freeze, "lib/language_server/protocol/interface/location.rb".freeze, "lib/language_server/protocol/interface/location_link.rb".freeze, "lib/language_server/protocol/interface/log_message_params.rb".freeze, "lib/language_server/protocol/interface/log_trace_params.rb".freeze, "lib/language_server/protocol/interface/markup_content.rb".freeze, "lib/language_server/protocol/interface/message.rb".freeze, "lib/language_server/protocol/interface/message_action_item.rb".freeze, "lib/language_server/protocol/interface/moniker.rb".freeze, "lib/language_server/protocol/interface/moniker_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/moniker_options.rb".freeze, "lib/language_server/protocol/interface/moniker_params.rb".freeze, "lib/language_server/protocol/interface/moniker_registration_options.rb".freeze, "lib/language_server/protocol/interface/notebook_cell.rb".freeze, "lib/language_server/protocol/interface/notebook_cell_array_change.rb".freeze, "lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb".freeze, "lib/language_server/protocol/interface/notebook_document.rb".freeze, "lib/language_server/protocol/interface/notebook_document_change_event.rb".freeze, "lib/language_server/protocol/interface/notebook_document_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/notebook_document_filter.rb".freeze, "lib/language_server/protocol/interface/notebook_document_identifier.rb".freeze, "lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/notebook_document_sync_options.rb".freeze, "lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb".freeze, "lib/language_server/protocol/interface/notification_message.rb".freeze, "lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb".freeze, "lib/language_server/protocol/interface/parameter_information.rb".freeze, "lib/language_server/protocol/interface/partial_result_params.rb".freeze, "lib/language_server/protocol/interface/position.rb".freeze, "lib/language_server/protocol/interface/prepare_rename_params.rb".freeze, "lib/language_server/protocol/interface/previous_result_id.rb".freeze, "lib/language_server/protocol/interface/progress_params.rb".freeze, "lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/publish_diagnostics_params.rb".freeze, "lib/language_server/protocol/interface/range.rb".freeze, "lib/language_server/protocol/interface/reference_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/reference_context.rb".freeze, "lib/language_server/protocol/interface/reference_options.rb".freeze, "lib/language_server/protocol/interface/reference_params.rb".freeze, "lib/language_server/protocol/interface/reference_registration_options.rb".freeze, "lib/language_server/protocol/interface/registration.rb".freeze, "lib/language_server/protocol/interface/registration_params.rb".freeze, "lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/relative_pattern.rb".freeze, "lib/language_server/protocol/interface/rename_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/rename_file.rb".freeze, "lib/language_server/protocol/interface/rename_file_options.rb".freeze, "lib/language_server/protocol/interface/rename_files_params.rb".freeze, "lib/language_server/protocol/interface/rename_options.rb".freeze, "lib/language_server/protocol/interface/rename_params.rb".freeze, "lib/language_server/protocol/interface/rename_registration_options.rb".freeze, "lib/language_server/protocol/interface/request_message.rb".freeze, "lib/language_server/protocol/interface/response_error.rb".freeze, "lib/language_server/protocol/interface/response_message.rb".freeze, "lib/language_server/protocol/interface/save_options.rb".freeze, "lib/language_server/protocol/interface/selection_range.rb".freeze, "lib/language_server/protocol/interface/selection_range_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/selection_range_options.rb".freeze, "lib/language_server/protocol/interface/selection_range_params.rb".freeze, "lib/language_server/protocol/interface/selection_range_registration_options.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_delta.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_delta_params.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_edit.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_legend.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_options.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_params.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_partial_result.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_range_params.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_registration_options.rb".freeze, "lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/server_capabilities.rb".freeze, "lib/language_server/protocol/interface/set_trace_params.rb".freeze, "lib/language_server/protocol/interface/show_document_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/show_document_params.rb".freeze, "lib/language_server/protocol/interface/show_document_result.rb".freeze, "lib/language_server/protocol/interface/show_message_params.rb".freeze, "lib/language_server/protocol/interface/show_message_request_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/show_message_request_params.rb".freeze, "lib/language_server/protocol/interface/signature_help.rb".freeze, "lib/language_server/protocol/interface/signature_help_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/signature_help_context.rb".freeze, "lib/language_server/protocol/interface/signature_help_options.rb".freeze, "lib/language_server/protocol/interface/signature_help_params.rb".freeze, "lib/language_server/protocol/interface/signature_help_registration_options.rb".freeze, "lib/language_server/protocol/interface/signature_information.rb".freeze, "lib/language_server/protocol/interface/static_registration_options.rb".freeze, "lib/language_server/protocol/interface/symbol_information.rb".freeze, "lib/language_server/protocol/interface/text_document_change_registration_options.rb".freeze, "lib/language_server/protocol/interface/text_document_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/text_document_content_change_event.rb".freeze, "lib/language_server/protocol/interface/text_document_edit.rb".freeze, "lib/language_server/protocol/interface/text_document_identifier.rb".freeze, "lib/language_server/protocol/interface/text_document_item.rb".freeze, "lib/language_server/protocol/interface/text_document_position_params.rb".freeze, "lib/language_server/protocol/interface/text_document_registration_options.rb".freeze, "lib/language_server/protocol/interface/text_document_save_registration_options.rb".freeze, "lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/text_document_sync_options.rb".freeze, "lib/language_server/protocol/interface/text_edit.rb".freeze, "lib/language_server/protocol/interface/type_definition_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/type_definition_options.rb".freeze, "lib/language_server/protocol/interface/type_definition_params.rb".freeze, "lib/language_server/protocol/interface/type_definition_registration_options.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_item.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_options.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_registration_options.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb".freeze, "lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb".freeze, "lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/unregistration.rb".freeze, "lib/language_server/protocol/interface/unregistration_params.rb".freeze, "lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb".freeze, "lib/language_server/protocol/interface/versioned_text_document_identifier.rb".freeze, "lib/language_server/protocol/interface/will_save_text_document_params.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_begin.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_cancel_params.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_create_params.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_end.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_options.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_params.rb".freeze, "lib/language_server/protocol/interface/work_done_progress_report.rb".freeze, "lib/language_server/protocol/interface/workspace_diagnostic_params.rb".freeze, "lib/language_server/protocol/interface/workspace_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb".freeze, "lib/language_server/protocol/interface/workspace_edit.rb".freeze, "lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/workspace_folder.rb".freeze, "lib/language_server/protocol/interface/workspace_folders_change_event.rb".freeze, "lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb".freeze, "lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/interface/workspace_symbol.rb".freeze, "lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb".freeze, "lib/language_server/protocol/interface/workspace_symbol_options.rb".freeze, "lib/language_server/protocol/interface/workspace_symbol_params.rb".freeze, "lib/language_server/protocol/interface/workspace_symbol_registration_options.rb".freeze, "lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb".freeze, "lib/language_server/protocol/transport.rb".freeze, "lib/language_server/protocol/transport/io.rb".freeze, "lib/language_server/protocol/transport/io/reader.rb".freeze, "lib/language_server/protocol/transport/io/writer.rb".freeze, "lib/language_server/protocol/transport/stdio.rb".freeze, "lib/language_server/protocol/transport/stdio/reader.rb".freeze, "lib/language_server/protocol/transport/stdio/writer.rb".freeze, "lib/language_server/protocol/version.rb".freeze] s.homepage = "https://github.com/mtsmfm/language_server-protocol-ruby".freeze s.licenses = ["MIT".freeze] s.required_ruby_version = Gem::Requirement.new(">= 2.5.0".freeze) s.rubygems_version = "3.6.8".freeze s.summary = "A Language Server Protocol SDK".freeze s.specification_version = 4 s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 2.0.0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, ["~> 5.0".freeze]) s.add_development_dependency(%q.freeze, [">= 0".freeze]) s.add_development_dependency(%q.freeze, [">= 12.3.3".freeze]) end language_server-protocol-3.17.0.5/lib/0000755000004100000410000000000015144416405017557 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server-protocol.rb0000644000004100000410000000005415144416405025113 0ustar www-datawww-datarequire_relative "language_server/protocol" language_server-protocol-3.17.0.5/lib/language_server/0000755000004100000410000000000015144416405022730 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/0000755000004100000410000000000015144416405024571 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/transport.rb0000644000004100000410000000010315144416405027144 0ustar www-datawww-datarequire_relative "transport/io" require_relative "transport/stdio" language_server-protocol-3.17.0.5/lib/language_server/protocol/interface.rb0000644000004100000410000014505515144416405027070 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface autoload :AnnotatedTextEdit, "language_server/protocol/interface/annotated_text_edit" autoload :ApplyWorkspaceEditParams, "language_server/protocol/interface/apply_workspace_edit_params" autoload :ApplyWorkspaceEditResult, "language_server/protocol/interface/apply_workspace_edit_result" autoload :CallHierarchyClientCapabilities, "language_server/protocol/interface/call_hierarchy_client_capabilities" autoload :CallHierarchyIncomingCall, "language_server/protocol/interface/call_hierarchy_incoming_call" autoload :CallHierarchyIncomingCallsParams, "language_server/protocol/interface/call_hierarchy_incoming_calls_params" autoload :CallHierarchyItem, "language_server/protocol/interface/call_hierarchy_item" autoload :CallHierarchyOptions, "language_server/protocol/interface/call_hierarchy_options" autoload :CallHierarchyOutgoingCall, "language_server/protocol/interface/call_hierarchy_outgoing_call" autoload :CallHierarchyOutgoingCallsParams, "language_server/protocol/interface/call_hierarchy_outgoing_calls_params" autoload :CallHierarchyPrepareParams, "language_server/protocol/interface/call_hierarchy_prepare_params" autoload :CallHierarchyRegistrationOptions, "language_server/protocol/interface/call_hierarchy_registration_options" autoload :CancelParams, "language_server/protocol/interface/cancel_params" autoload :ChangeAnnotation, "language_server/protocol/interface/change_annotation" autoload :ClientCapabilities, "language_server/protocol/interface/client_capabilities" autoload :CodeAction, "language_server/protocol/interface/code_action" autoload :CodeActionClientCapabilities, "language_server/protocol/interface/code_action_client_capabilities" autoload :CodeActionContext, "language_server/protocol/interface/code_action_context" autoload :CodeActionOptions, "language_server/protocol/interface/code_action_options" autoload :CodeActionParams, "language_server/protocol/interface/code_action_params" autoload :CodeActionRegistrationOptions, "language_server/protocol/interface/code_action_registration_options" autoload :CodeDescription, "language_server/protocol/interface/code_description" autoload :CodeLens, "language_server/protocol/interface/code_lens" autoload :CodeLensClientCapabilities, "language_server/protocol/interface/code_lens_client_capabilities" autoload :CodeLensOptions, "language_server/protocol/interface/code_lens_options" autoload :CodeLensParams, "language_server/protocol/interface/code_lens_params" autoload :CodeLensRegistrationOptions, "language_server/protocol/interface/code_lens_registration_options" autoload :CodeLensWorkspaceClientCapabilities, "language_server/protocol/interface/code_lens_workspace_client_capabilities" autoload :Color, "language_server/protocol/interface/color" autoload :ColorInformation, "language_server/protocol/interface/color_information" autoload :ColorPresentation, "language_server/protocol/interface/color_presentation" autoload :ColorPresentationParams, "language_server/protocol/interface/color_presentation_params" autoload :Command, "language_server/protocol/interface/command" autoload :CompletionClientCapabilities, "language_server/protocol/interface/completion_client_capabilities" autoload :CompletionContext, "language_server/protocol/interface/completion_context" autoload :CompletionItem, "language_server/protocol/interface/completion_item" autoload :CompletionItemLabelDetails, "language_server/protocol/interface/completion_item_label_details" autoload :CompletionList, "language_server/protocol/interface/completion_list" autoload :CompletionOptions, "language_server/protocol/interface/completion_options" autoload :CompletionParams, "language_server/protocol/interface/completion_params" autoload :CompletionRegistrationOptions, "language_server/protocol/interface/completion_registration_options" autoload :ConfigurationItem, "language_server/protocol/interface/configuration_item" autoload :ConfigurationParams, "language_server/protocol/interface/configuration_params" autoload :CreateFile, "language_server/protocol/interface/create_file" autoload :CreateFileOptions, "language_server/protocol/interface/create_file_options" autoload :CreateFilesParams, "language_server/protocol/interface/create_files_params" autoload :DeclarationClientCapabilities, "language_server/protocol/interface/declaration_client_capabilities" autoload :DeclarationOptions, "language_server/protocol/interface/declaration_options" autoload :DeclarationParams, "language_server/protocol/interface/declaration_params" autoload :DeclarationRegistrationOptions, "language_server/protocol/interface/declaration_registration_options" autoload :DefinitionClientCapabilities, "language_server/protocol/interface/definition_client_capabilities" autoload :DefinitionOptions, "language_server/protocol/interface/definition_options" autoload :DefinitionParams, "language_server/protocol/interface/definition_params" autoload :DefinitionRegistrationOptions, "language_server/protocol/interface/definition_registration_options" autoload :DeleteFile, "language_server/protocol/interface/delete_file" autoload :DeleteFileOptions, "language_server/protocol/interface/delete_file_options" autoload :DeleteFilesParams, "language_server/protocol/interface/delete_files_params" autoload :Diagnostic, "language_server/protocol/interface/diagnostic" autoload :DiagnosticClientCapabilities, "language_server/protocol/interface/diagnostic_client_capabilities" autoload :DiagnosticOptions, "language_server/protocol/interface/diagnostic_options" autoload :DiagnosticRegistrationOptions, "language_server/protocol/interface/diagnostic_registration_options" autoload :DiagnosticRelatedInformation, "language_server/protocol/interface/diagnostic_related_information" autoload :DiagnosticServerCancellationData, "language_server/protocol/interface/diagnostic_server_cancellation_data" autoload :DiagnosticWorkspaceClientCapabilities, "language_server/protocol/interface/diagnostic_workspace_client_capabilities" autoload :DidChangeConfigurationClientCapabilities, "language_server/protocol/interface/did_change_configuration_client_capabilities" autoload :DidChangeConfigurationParams, "language_server/protocol/interface/did_change_configuration_params" autoload :DidChangeNotebookDocumentParams, "language_server/protocol/interface/did_change_notebook_document_params" autoload :DidChangeTextDocumentParams, "language_server/protocol/interface/did_change_text_document_params" autoload :DidChangeWatchedFilesClientCapabilities, "language_server/protocol/interface/did_change_watched_files_client_capabilities" autoload :DidChangeWatchedFilesParams, "language_server/protocol/interface/did_change_watched_files_params" autoload :DidChangeWatchedFilesRegistrationOptions, "language_server/protocol/interface/did_change_watched_files_registration_options" autoload :DidChangeWorkspaceFoldersParams, "language_server/protocol/interface/did_change_workspace_folders_params" autoload :DidCloseNotebookDocumentParams, "language_server/protocol/interface/did_close_notebook_document_params" autoload :DidCloseTextDocumentParams, "language_server/protocol/interface/did_close_text_document_params" autoload :DidOpenNotebookDocumentParams, "language_server/protocol/interface/did_open_notebook_document_params" autoload :DidOpenTextDocumentParams, "language_server/protocol/interface/did_open_text_document_params" autoload :DidSaveNotebookDocumentParams, "language_server/protocol/interface/did_save_notebook_document_params" autoload :DidSaveTextDocumentParams, "language_server/protocol/interface/did_save_text_document_params" autoload :DocumentColorClientCapabilities, "language_server/protocol/interface/document_color_client_capabilities" autoload :DocumentColorOptions, "language_server/protocol/interface/document_color_options" autoload :DocumentColorParams, "language_server/protocol/interface/document_color_params" autoload :DocumentColorRegistrationOptions, "language_server/protocol/interface/document_color_registration_options" autoload :DocumentDiagnosticParams, "language_server/protocol/interface/document_diagnostic_params" autoload :DocumentDiagnosticReportPartialResult, "language_server/protocol/interface/document_diagnostic_report_partial_result" autoload :DocumentFilter, "language_server/protocol/interface/document_filter" autoload :DocumentFormattingClientCapabilities, "language_server/protocol/interface/document_formatting_client_capabilities" autoload :DocumentFormattingOptions, "language_server/protocol/interface/document_formatting_options" autoload :DocumentFormattingParams, "language_server/protocol/interface/document_formatting_params" autoload :DocumentFormattingRegistrationOptions, "language_server/protocol/interface/document_formatting_registration_options" autoload :DocumentHighlight, "language_server/protocol/interface/document_highlight" autoload :DocumentHighlightClientCapabilities, "language_server/protocol/interface/document_highlight_client_capabilities" autoload :DocumentHighlightOptions, "language_server/protocol/interface/document_highlight_options" autoload :DocumentHighlightParams, "language_server/protocol/interface/document_highlight_params" autoload :DocumentHighlightRegistrationOptions, "language_server/protocol/interface/document_highlight_registration_options" autoload :DocumentLink, "language_server/protocol/interface/document_link" autoload :DocumentLinkClientCapabilities, "language_server/protocol/interface/document_link_client_capabilities" autoload :DocumentLinkOptions, "language_server/protocol/interface/document_link_options" autoload :DocumentLinkParams, "language_server/protocol/interface/document_link_params" autoload :DocumentLinkRegistrationOptions, "language_server/protocol/interface/document_link_registration_options" autoload :DocumentOnTypeFormattingClientCapabilities, "language_server/protocol/interface/document_on_type_formatting_client_capabilities" autoload :DocumentOnTypeFormattingOptions, "language_server/protocol/interface/document_on_type_formatting_options" autoload :DocumentOnTypeFormattingParams, "language_server/protocol/interface/document_on_type_formatting_params" autoload :DocumentOnTypeFormattingRegistrationOptions, "language_server/protocol/interface/document_on_type_formatting_registration_options" autoload :DocumentRangeFormattingClientCapabilities, "language_server/protocol/interface/document_range_formatting_client_capabilities" autoload :DocumentRangeFormattingOptions, "language_server/protocol/interface/document_range_formatting_options" autoload :DocumentRangeFormattingParams, "language_server/protocol/interface/document_range_formatting_params" autoload :DocumentRangeFormattingRegistrationOptions, "language_server/protocol/interface/document_range_formatting_registration_options" autoload :DocumentSymbol, "language_server/protocol/interface/document_symbol" autoload :DocumentSymbolClientCapabilities, "language_server/protocol/interface/document_symbol_client_capabilities" autoload :DocumentSymbolOptions, "language_server/protocol/interface/document_symbol_options" autoload :DocumentSymbolParams, "language_server/protocol/interface/document_symbol_params" autoload :DocumentSymbolRegistrationOptions, "language_server/protocol/interface/document_symbol_registration_options" autoload :ExecuteCommandClientCapabilities, "language_server/protocol/interface/execute_command_client_capabilities" autoload :ExecuteCommandOptions, "language_server/protocol/interface/execute_command_options" autoload :ExecuteCommandParams, "language_server/protocol/interface/execute_command_params" autoload :ExecuteCommandRegistrationOptions, "language_server/protocol/interface/execute_command_registration_options" autoload :ExecutionSummary, "language_server/protocol/interface/execution_summary" autoload :FileCreate, "language_server/protocol/interface/file_create" autoload :FileDelete, "language_server/protocol/interface/file_delete" autoload :FileEvent, "language_server/protocol/interface/file_event" autoload :FileOperationFilter, "language_server/protocol/interface/file_operation_filter" autoload :FileOperationPattern, "language_server/protocol/interface/file_operation_pattern" autoload :FileOperationPatternOptions, "language_server/protocol/interface/file_operation_pattern_options" autoload :FileOperationRegistrationOptions, "language_server/protocol/interface/file_operation_registration_options" autoload :FileRename, "language_server/protocol/interface/file_rename" autoload :FileSystemWatcher, "language_server/protocol/interface/file_system_watcher" autoload :FoldingRange, "language_server/protocol/interface/folding_range" autoload :FoldingRangeClientCapabilities, "language_server/protocol/interface/folding_range_client_capabilities" autoload :FoldingRangeOptions, "language_server/protocol/interface/folding_range_options" autoload :FoldingRangeParams, "language_server/protocol/interface/folding_range_params" autoload :FoldingRangeRegistrationOptions, "language_server/protocol/interface/folding_range_registration_options" autoload :FormattingOptions, "language_server/protocol/interface/formatting_options" autoload :FullDocumentDiagnosticReport, "language_server/protocol/interface/full_document_diagnostic_report" autoload :Hover, "language_server/protocol/interface/hover" autoload :HoverClientCapabilities, "language_server/protocol/interface/hover_client_capabilities" autoload :HoverOptions, "language_server/protocol/interface/hover_options" autoload :HoverParams, "language_server/protocol/interface/hover_params" autoload :HoverParams, "language_server/protocol/interface/hover_params" autoload :HoverRegistrationOptions, "language_server/protocol/interface/hover_registration_options" autoload :HoverResult, "language_server/protocol/interface/hover_result" autoload :ImplementationClientCapabilities, "language_server/protocol/interface/implementation_client_capabilities" autoload :ImplementationOptions, "language_server/protocol/interface/implementation_options" autoload :ImplementationParams, "language_server/protocol/interface/implementation_params" autoload :ImplementationRegistrationOptions, "language_server/protocol/interface/implementation_registration_options" autoload :InitializeError, "language_server/protocol/interface/initialize_error" autoload :InitializeParams, "language_server/protocol/interface/initialize_params" autoload :InitializeResult, "language_server/protocol/interface/initialize_result" autoload :InitializedParams, "language_server/protocol/interface/initialized_params" autoload :InlayHint, "language_server/protocol/interface/inlay_hint" autoload :InlayHintClientCapabilities, "language_server/protocol/interface/inlay_hint_client_capabilities" autoload :InlayHintLabelPart, "language_server/protocol/interface/inlay_hint_label_part" autoload :InlayHintOptions, "language_server/protocol/interface/inlay_hint_options" autoload :InlayHintParams, "language_server/protocol/interface/inlay_hint_params" autoload :InlayHintRegistrationOptions, "language_server/protocol/interface/inlay_hint_registration_options" autoload :InlayHintWorkspaceClientCapabilities, "language_server/protocol/interface/inlay_hint_workspace_client_capabilities" autoload :InlineValueClientCapabilities, "language_server/protocol/interface/inline_value_client_capabilities" autoload :InlineValueContext, "language_server/protocol/interface/inline_value_context" autoload :InlineValueEvaluatableExpression, "language_server/protocol/interface/inline_value_evaluatable_expression" autoload :InlineValueOptions, "language_server/protocol/interface/inline_value_options" autoload :InlineValueParams, "language_server/protocol/interface/inline_value_params" autoload :InlineValueRegistrationOptions, "language_server/protocol/interface/inline_value_registration_options" autoload :InlineValueText, "language_server/protocol/interface/inline_value_text" autoload :InlineValueVariableLookup, "language_server/protocol/interface/inline_value_variable_lookup" autoload :InlineValueWorkspaceClientCapabilities, "language_server/protocol/interface/inline_value_workspace_client_capabilities" autoload :InsertReplaceEdit, "language_server/protocol/interface/insert_replace_edit" autoload :LinkedEditingRangeClientCapabilities, "language_server/protocol/interface/linked_editing_range_client_capabilities" autoload :LinkedEditingRangeOptions, "language_server/protocol/interface/linked_editing_range_options" autoload :LinkedEditingRangeParams, "language_server/protocol/interface/linked_editing_range_params" autoload :LinkedEditingRangeRegistrationOptions, "language_server/protocol/interface/linked_editing_range_registration_options" autoload :LinkedEditingRanges, "language_server/protocol/interface/linked_editing_ranges" autoload :Location, "language_server/protocol/interface/location" autoload :LocationLink, "language_server/protocol/interface/location_link" autoload :LogMessageParams, "language_server/protocol/interface/log_message_params" autoload :LogTraceParams, "language_server/protocol/interface/log_trace_params" autoload :MarkupContent, "language_server/protocol/interface/markup_content" autoload :Message, "language_server/protocol/interface/message" autoload :MessageActionItem, "language_server/protocol/interface/message_action_item" autoload :Moniker, "language_server/protocol/interface/moniker" autoload :MonikerClientCapabilities, "language_server/protocol/interface/moniker_client_capabilities" autoload :MonikerOptions, "language_server/protocol/interface/moniker_options" autoload :MonikerParams, "language_server/protocol/interface/moniker_params" autoload :MonikerRegistrationOptions, "language_server/protocol/interface/moniker_registration_options" autoload :NotebookCell, "language_server/protocol/interface/notebook_cell" autoload :NotebookCellArrayChange, "language_server/protocol/interface/notebook_cell_array_change" autoload :NotebookCellTextDocumentFilter, "language_server/protocol/interface/notebook_cell_text_document_filter" autoload :NotebookDocument, "language_server/protocol/interface/notebook_document" autoload :NotebookDocumentChangeEvent, "language_server/protocol/interface/notebook_document_change_event" autoload :NotebookDocumentClientCapabilities, "language_server/protocol/interface/notebook_document_client_capabilities" autoload :NotebookDocumentFilter, "language_server/protocol/interface/notebook_document_filter" autoload :NotebookDocumentIdentifier, "language_server/protocol/interface/notebook_document_identifier" autoload :NotebookDocumentSyncClientCapabilities, "language_server/protocol/interface/notebook_document_sync_client_capabilities" autoload :NotebookDocumentSyncOptions, "language_server/protocol/interface/notebook_document_sync_options" autoload :NotebookDocumentSyncRegistrationOptions, "language_server/protocol/interface/notebook_document_sync_registration_options" autoload :NotificationMessage, "language_server/protocol/interface/notification_message" autoload :OptionalVersionedTextDocumentIdentifier, "language_server/protocol/interface/optional_versioned_text_document_identifier" autoload :ParameterInformation, "language_server/protocol/interface/parameter_information" autoload :PartialResultParams, "language_server/protocol/interface/partial_result_params" autoload :Position, "language_server/protocol/interface/position" autoload :PrepareRenameParams, "language_server/protocol/interface/prepare_rename_params" autoload :PreviousResultId, "language_server/protocol/interface/previous_result_id" autoload :ProgressParams, "language_server/protocol/interface/progress_params" autoload :PublishDiagnosticsClientCapabilities, "language_server/protocol/interface/publish_diagnostics_client_capabilities" autoload :PublishDiagnosticsParams, "language_server/protocol/interface/publish_diagnostics_params" autoload :Range, "language_server/protocol/interface/range" autoload :ReferenceClientCapabilities, "language_server/protocol/interface/reference_client_capabilities" autoload :ReferenceContext, "language_server/protocol/interface/reference_context" autoload :ReferenceOptions, "language_server/protocol/interface/reference_options" autoload :ReferenceParams, "language_server/protocol/interface/reference_params" autoload :ReferenceRegistrationOptions, "language_server/protocol/interface/reference_registration_options" autoload :Registration, "language_server/protocol/interface/registration" autoload :RegistrationParams, "language_server/protocol/interface/registration_params" autoload :RegularExpressionsClientCapabilities, "language_server/protocol/interface/regular_expressions_client_capabilities" autoload :RelatedFullDocumentDiagnosticReport, "language_server/protocol/interface/related_full_document_diagnostic_report" autoload :RelatedUnchangedDocumentDiagnosticReport, "language_server/protocol/interface/related_unchanged_document_diagnostic_report" autoload :RelativePattern, "language_server/protocol/interface/relative_pattern" autoload :RenameClientCapabilities, "language_server/protocol/interface/rename_client_capabilities" autoload :RenameFile, "language_server/protocol/interface/rename_file" autoload :RenameFileOptions, "language_server/protocol/interface/rename_file_options" autoload :RenameFilesParams, "language_server/protocol/interface/rename_files_params" autoload :RenameOptions, "language_server/protocol/interface/rename_options" autoload :RenameParams, "language_server/protocol/interface/rename_params" autoload :RenameRegistrationOptions, "language_server/protocol/interface/rename_registration_options" autoload :RequestMessage, "language_server/protocol/interface/request_message" autoload :ResponseError, "language_server/protocol/interface/response_error" autoload :ResponseMessage, "language_server/protocol/interface/response_message" autoload :SaveOptions, "language_server/protocol/interface/save_options" autoload :SelectionRange, "language_server/protocol/interface/selection_range" autoload :SelectionRangeClientCapabilities, "language_server/protocol/interface/selection_range_client_capabilities" autoload :SelectionRangeOptions, "language_server/protocol/interface/selection_range_options" autoload :SelectionRangeParams, "language_server/protocol/interface/selection_range_params" autoload :SelectionRangeRegistrationOptions, "language_server/protocol/interface/selection_range_registration_options" autoload :SemanticTokens, "language_server/protocol/interface/semantic_tokens" autoload :SemanticTokensClientCapabilities, "language_server/protocol/interface/semantic_tokens_client_capabilities" autoload :SemanticTokensDelta, "language_server/protocol/interface/semantic_tokens_delta" autoload :SemanticTokensDeltaParams, "language_server/protocol/interface/semantic_tokens_delta_params" autoload :SemanticTokensDeltaPartialResult, "language_server/protocol/interface/semantic_tokens_delta_partial_result" autoload :SemanticTokensEdit, "language_server/protocol/interface/semantic_tokens_edit" autoload :SemanticTokensLegend, "language_server/protocol/interface/semantic_tokens_legend" autoload :SemanticTokensOptions, "language_server/protocol/interface/semantic_tokens_options" autoload :SemanticTokensParams, "language_server/protocol/interface/semantic_tokens_params" autoload :SemanticTokensPartialResult, "language_server/protocol/interface/semantic_tokens_partial_result" autoload :SemanticTokensRangeParams, "language_server/protocol/interface/semantic_tokens_range_params" autoload :SemanticTokensRegistrationOptions, "language_server/protocol/interface/semantic_tokens_registration_options" autoload :SemanticTokensWorkspaceClientCapabilities, "language_server/protocol/interface/semantic_tokens_workspace_client_capabilities" autoload :ServerCapabilities, "language_server/protocol/interface/server_capabilities" autoload :SetTraceParams, "language_server/protocol/interface/set_trace_params" autoload :ShowDocumentClientCapabilities, "language_server/protocol/interface/show_document_client_capabilities" autoload :ShowDocumentParams, "language_server/protocol/interface/show_document_params" autoload :ShowDocumentResult, "language_server/protocol/interface/show_document_result" autoload :ShowMessageParams, "language_server/protocol/interface/show_message_params" autoload :ShowMessageRequestClientCapabilities, "language_server/protocol/interface/show_message_request_client_capabilities" autoload :ShowMessageRequestParams, "language_server/protocol/interface/show_message_request_params" autoload :SignatureHelp, "language_server/protocol/interface/signature_help" autoload :SignatureHelpClientCapabilities, "language_server/protocol/interface/signature_help_client_capabilities" autoload :SignatureHelpContext, "language_server/protocol/interface/signature_help_context" autoload :SignatureHelpOptions, "language_server/protocol/interface/signature_help_options" autoload :SignatureHelpParams, "language_server/protocol/interface/signature_help_params" autoload :SignatureHelpRegistrationOptions, "language_server/protocol/interface/signature_help_registration_options" autoload :SignatureInformation, "language_server/protocol/interface/signature_information" autoload :StaticRegistrationOptions, "language_server/protocol/interface/static_registration_options" autoload :SymbolInformation, "language_server/protocol/interface/symbol_information" autoload :TextDocumentChangeRegistrationOptions, "language_server/protocol/interface/text_document_change_registration_options" autoload :TextDocumentClientCapabilities, "language_server/protocol/interface/text_document_client_capabilities" autoload :TextDocumentContentChangeEvent, "language_server/protocol/interface/text_document_content_change_event" autoload :TextDocumentEdit, "language_server/protocol/interface/text_document_edit" autoload :TextDocumentIdentifier, "language_server/protocol/interface/text_document_identifier" autoload :TextDocumentItem, "language_server/protocol/interface/text_document_item" autoload :TextDocumentPositionParams, "language_server/protocol/interface/text_document_position_params" autoload :TextDocumentRegistrationOptions, "language_server/protocol/interface/text_document_registration_options" autoload :TextDocumentSaveRegistrationOptions, "language_server/protocol/interface/text_document_save_registration_options" autoload :TextDocumentSyncClientCapabilities, "language_server/protocol/interface/text_document_sync_client_capabilities" autoload :TextDocumentSyncOptions, "language_server/protocol/interface/text_document_sync_options" autoload :TextDocumentSyncOptions, "language_server/protocol/interface/text_document_sync_options" autoload :TextEdit, "language_server/protocol/interface/text_edit" autoload :TypeDefinitionClientCapabilities, "language_server/protocol/interface/type_definition_client_capabilities" autoload :TypeDefinitionOptions, "language_server/protocol/interface/type_definition_options" autoload :TypeDefinitionParams, "language_server/protocol/interface/type_definition_params" autoload :TypeDefinitionRegistrationOptions, "language_server/protocol/interface/type_definition_registration_options" autoload :TypeHierarchyItem, "language_server/protocol/interface/type_hierarchy_item" autoload :TypeHierarchyOptions, "language_server/protocol/interface/type_hierarchy_options" autoload :TypeHierarchyPrepareParams, "language_server/protocol/interface/type_hierarchy_prepare_params" autoload :TypeHierarchyRegistrationOptions, "language_server/protocol/interface/type_hierarchy_registration_options" autoload :TypeHierarchySubtypesParams, "language_server/protocol/interface/type_hierarchy_subtypes_params" autoload :TypeHierarchySupertypesParams, "language_server/protocol/interface/type_hierarchy_supertypes_params" autoload :UnchangedDocumentDiagnosticReport, "language_server/protocol/interface/unchanged_document_diagnostic_report" autoload :Unregistration, "language_server/protocol/interface/unregistration" autoload :UnregistrationParams, "language_server/protocol/interface/unregistration_params" autoload :VersionedNotebookDocumentIdentifier, "language_server/protocol/interface/versioned_notebook_document_identifier" autoload :VersionedTextDocumentIdentifier, "language_server/protocol/interface/versioned_text_document_identifier" autoload :WillSaveTextDocumentParams, "language_server/protocol/interface/will_save_text_document_params" autoload :WorkDoneProgressBegin, "language_server/protocol/interface/work_done_progress_begin" autoload :WorkDoneProgressCancelParams, "language_server/protocol/interface/work_done_progress_cancel_params" autoload :WorkDoneProgressCreateParams, "language_server/protocol/interface/work_done_progress_create_params" autoload :WorkDoneProgressEnd, "language_server/protocol/interface/work_done_progress_end" autoload :WorkDoneProgressOptions, "language_server/protocol/interface/work_done_progress_options" autoload :WorkDoneProgressParams, "language_server/protocol/interface/work_done_progress_params" autoload :WorkDoneProgressReport, "language_server/protocol/interface/work_done_progress_report" autoload :WorkspaceDiagnosticParams, "language_server/protocol/interface/workspace_diagnostic_params" autoload :WorkspaceDiagnosticReport, "language_server/protocol/interface/workspace_diagnostic_report" autoload :WorkspaceDiagnosticReportPartialResult, "language_server/protocol/interface/workspace_diagnostic_report_partial_result" autoload :WorkspaceEdit, "language_server/protocol/interface/workspace_edit" autoload :WorkspaceEditClientCapabilities, "language_server/protocol/interface/workspace_edit_client_capabilities" autoload :WorkspaceFolder, "language_server/protocol/interface/workspace_folder" autoload :WorkspaceFoldersChangeEvent, "language_server/protocol/interface/workspace_folders_change_event" autoload :WorkspaceFoldersServerCapabilities, "language_server/protocol/interface/workspace_folders_server_capabilities" autoload :WorkspaceFullDocumentDiagnosticReport, "language_server/protocol/interface/workspace_full_document_diagnostic_report" autoload :WorkspaceSymbol, "language_server/protocol/interface/workspace_symbol" autoload :WorkspaceSymbolClientCapabilities, "language_server/protocol/interface/workspace_symbol_client_capabilities" autoload :WorkspaceSymbolOptions, "language_server/protocol/interface/workspace_symbol_options" autoload :WorkspaceSymbolParams, "language_server/protocol/interface/workspace_symbol_params" autoload :WorkspaceSymbolRegistrationOptions, "language_server/protocol/interface/workspace_symbol_registration_options" autoload :WorkspaceUnchangedDocumentDiagnosticReport, "language_server/protocol/interface/workspace_unchanged_document_diagnostic_report" require_relative "interface/annotated_text_edit" require_relative "interface/apply_workspace_edit_params" require_relative "interface/apply_workspace_edit_result" require_relative "interface/call_hierarchy_client_capabilities" require_relative "interface/call_hierarchy_incoming_call" require_relative "interface/call_hierarchy_incoming_calls_params" require_relative "interface/call_hierarchy_item" require_relative "interface/call_hierarchy_options" require_relative "interface/call_hierarchy_outgoing_call" require_relative "interface/call_hierarchy_outgoing_calls_params" require_relative "interface/call_hierarchy_prepare_params" require_relative "interface/call_hierarchy_registration_options" require_relative "interface/cancel_params" require_relative "interface/change_annotation" require_relative "interface/client_capabilities" require_relative "interface/code_action" require_relative "interface/code_action_client_capabilities" require_relative "interface/code_action_context" require_relative "interface/code_action_options" require_relative "interface/code_action_params" require_relative "interface/code_action_registration_options" require_relative "interface/code_description" require_relative "interface/code_lens" require_relative "interface/code_lens_client_capabilities" require_relative "interface/code_lens_options" require_relative "interface/code_lens_params" require_relative "interface/code_lens_registration_options" require_relative "interface/code_lens_workspace_client_capabilities" require_relative "interface/color" require_relative "interface/color_information" require_relative "interface/color_presentation" require_relative "interface/color_presentation_params" require_relative "interface/command" require_relative "interface/completion_client_capabilities" require_relative "interface/completion_context" require_relative "interface/completion_item" require_relative "interface/completion_item_label_details" require_relative "interface/completion_list" require_relative "interface/completion_options" require_relative "interface/completion_params" require_relative "interface/completion_registration_options" require_relative "interface/configuration_item" require_relative "interface/configuration_params" require_relative "interface/create_file" require_relative "interface/create_file_options" require_relative "interface/create_files_params" require_relative "interface/declaration_client_capabilities" require_relative "interface/declaration_options" require_relative "interface/declaration_params" require_relative "interface/declaration_registration_options" require_relative "interface/definition_client_capabilities" require_relative "interface/definition_options" require_relative "interface/definition_params" require_relative "interface/definition_registration_options" require_relative "interface/delete_file" require_relative "interface/delete_file_options" require_relative "interface/delete_files_params" require_relative "interface/diagnostic" require_relative "interface/diagnostic_client_capabilities" require_relative "interface/diagnostic_options" require_relative "interface/diagnostic_registration_options" require_relative "interface/diagnostic_related_information" require_relative "interface/diagnostic_server_cancellation_data" require_relative "interface/diagnostic_workspace_client_capabilities" require_relative "interface/did_change_configuration_client_capabilities" require_relative "interface/did_change_configuration_params" require_relative "interface/did_change_notebook_document_params" require_relative "interface/did_change_text_document_params" require_relative "interface/did_change_watched_files_client_capabilities" require_relative "interface/did_change_watched_files_params" require_relative "interface/did_change_watched_files_registration_options" require_relative "interface/did_change_workspace_folders_params" require_relative "interface/did_close_notebook_document_params" require_relative "interface/did_close_text_document_params" require_relative "interface/did_open_notebook_document_params" require_relative "interface/did_open_text_document_params" require_relative "interface/did_save_notebook_document_params" require_relative "interface/did_save_text_document_params" require_relative "interface/document_color_client_capabilities" require_relative "interface/document_color_options" require_relative "interface/document_color_params" require_relative "interface/document_color_registration_options" require_relative "interface/document_diagnostic_params" require_relative "interface/document_diagnostic_report_partial_result" require_relative "interface/document_filter" require_relative "interface/document_formatting_client_capabilities" require_relative "interface/document_formatting_options" require_relative "interface/document_formatting_params" require_relative "interface/document_formatting_registration_options" require_relative "interface/document_highlight" require_relative "interface/document_highlight_client_capabilities" require_relative "interface/document_highlight_options" require_relative "interface/document_highlight_params" require_relative "interface/document_highlight_registration_options" require_relative "interface/document_link" require_relative "interface/document_link_client_capabilities" require_relative "interface/document_link_options" require_relative "interface/document_link_params" require_relative "interface/document_link_registration_options" require_relative "interface/document_on_type_formatting_client_capabilities" require_relative "interface/document_on_type_formatting_options" require_relative "interface/document_on_type_formatting_params" require_relative "interface/document_on_type_formatting_registration_options" require_relative "interface/document_range_formatting_client_capabilities" require_relative "interface/document_range_formatting_options" require_relative "interface/document_range_formatting_params" require_relative "interface/document_range_formatting_registration_options" require_relative "interface/document_symbol" require_relative "interface/document_symbol_client_capabilities" require_relative "interface/document_symbol_options" require_relative "interface/document_symbol_params" require_relative "interface/document_symbol_registration_options" require_relative "interface/execute_command_client_capabilities" require_relative "interface/execute_command_options" require_relative "interface/execute_command_params" require_relative "interface/execute_command_registration_options" require_relative "interface/execution_summary" require_relative "interface/file_create" require_relative "interface/file_delete" require_relative "interface/file_event" require_relative "interface/file_operation_filter" require_relative "interface/file_operation_pattern" require_relative "interface/file_operation_pattern_options" require_relative "interface/file_operation_registration_options" require_relative "interface/file_rename" require_relative "interface/file_system_watcher" require_relative "interface/folding_range" require_relative "interface/folding_range_client_capabilities" require_relative "interface/folding_range_options" require_relative "interface/folding_range_params" require_relative "interface/folding_range_registration_options" require_relative "interface/formatting_options" require_relative "interface/full_document_diagnostic_report" require_relative "interface/hover" require_relative "interface/hover_client_capabilities" require_relative "interface/hover_options" require_relative "interface/hover_params" require_relative "interface/hover_params" require_relative "interface/hover_registration_options" require_relative "interface/hover_result" require_relative "interface/implementation_client_capabilities" require_relative "interface/implementation_options" require_relative "interface/implementation_params" require_relative "interface/implementation_registration_options" require_relative "interface/initialize_error" require_relative "interface/initialize_params" require_relative "interface/initialize_result" require_relative "interface/initialized_params" require_relative "interface/inlay_hint" require_relative "interface/inlay_hint_client_capabilities" require_relative "interface/inlay_hint_label_part" require_relative "interface/inlay_hint_options" require_relative "interface/inlay_hint_params" require_relative "interface/inlay_hint_registration_options" require_relative "interface/inlay_hint_workspace_client_capabilities" require_relative "interface/inline_value_client_capabilities" require_relative "interface/inline_value_context" require_relative "interface/inline_value_evaluatable_expression" require_relative "interface/inline_value_options" require_relative "interface/inline_value_params" require_relative "interface/inline_value_registration_options" require_relative "interface/inline_value_text" require_relative "interface/inline_value_variable_lookup" require_relative "interface/inline_value_workspace_client_capabilities" require_relative "interface/insert_replace_edit" require_relative "interface/linked_editing_range_client_capabilities" require_relative "interface/linked_editing_range_options" require_relative "interface/linked_editing_range_params" require_relative "interface/linked_editing_range_registration_options" require_relative "interface/linked_editing_ranges" require_relative "interface/location" require_relative "interface/location_link" require_relative "interface/log_message_params" require_relative "interface/log_trace_params" require_relative "interface/markup_content" require_relative "interface/message" require_relative "interface/message_action_item" require_relative "interface/moniker" require_relative "interface/moniker_client_capabilities" require_relative "interface/moniker_options" require_relative "interface/moniker_params" require_relative "interface/moniker_registration_options" require_relative "interface/notebook_cell" require_relative "interface/notebook_cell_array_change" require_relative "interface/notebook_cell_text_document_filter" require_relative "interface/notebook_document" require_relative "interface/notebook_document_change_event" require_relative "interface/notebook_document_client_capabilities" require_relative "interface/notebook_document_filter" require_relative "interface/notebook_document_identifier" require_relative "interface/notebook_document_sync_client_capabilities" require_relative "interface/notebook_document_sync_options" require_relative "interface/notebook_document_sync_registration_options" require_relative "interface/notification_message" require_relative "interface/optional_versioned_text_document_identifier" require_relative "interface/parameter_information" require_relative "interface/partial_result_params" require_relative "interface/position" require_relative "interface/prepare_rename_params" require_relative "interface/previous_result_id" require_relative "interface/progress_params" require_relative "interface/publish_diagnostics_client_capabilities" require_relative "interface/publish_diagnostics_params" require_relative "interface/range" require_relative "interface/reference_client_capabilities" require_relative "interface/reference_context" require_relative "interface/reference_options" require_relative "interface/reference_params" require_relative "interface/reference_registration_options" require_relative "interface/registration" require_relative "interface/registration_params" require_relative "interface/regular_expressions_client_capabilities" require_relative "interface/related_full_document_diagnostic_report" require_relative "interface/related_unchanged_document_diagnostic_report" require_relative "interface/relative_pattern" require_relative "interface/rename_client_capabilities" require_relative "interface/rename_file" require_relative "interface/rename_file_options" require_relative "interface/rename_files_params" require_relative "interface/rename_options" require_relative "interface/rename_params" require_relative "interface/rename_registration_options" require_relative "interface/request_message" require_relative "interface/response_error" require_relative "interface/response_message" require_relative "interface/save_options" require_relative "interface/selection_range" require_relative "interface/selection_range_client_capabilities" require_relative "interface/selection_range_options" require_relative "interface/selection_range_params" require_relative "interface/selection_range_registration_options" require_relative "interface/semantic_tokens" require_relative "interface/semantic_tokens_client_capabilities" require_relative "interface/semantic_tokens_delta" require_relative "interface/semantic_tokens_delta_params" require_relative "interface/semantic_tokens_delta_partial_result" require_relative "interface/semantic_tokens_edit" require_relative "interface/semantic_tokens_legend" require_relative "interface/semantic_tokens_options" require_relative "interface/semantic_tokens_params" require_relative "interface/semantic_tokens_partial_result" require_relative "interface/semantic_tokens_range_params" require_relative "interface/semantic_tokens_registration_options" require_relative "interface/semantic_tokens_workspace_client_capabilities" require_relative "interface/server_capabilities" require_relative "interface/set_trace_params" require_relative "interface/show_document_client_capabilities" require_relative "interface/show_document_params" require_relative "interface/show_document_result" require_relative "interface/show_message_params" require_relative "interface/show_message_request_client_capabilities" require_relative "interface/show_message_request_params" require_relative "interface/signature_help" require_relative "interface/signature_help_client_capabilities" require_relative "interface/signature_help_context" require_relative "interface/signature_help_options" require_relative "interface/signature_help_params" require_relative "interface/signature_help_registration_options" require_relative "interface/signature_information" require_relative "interface/static_registration_options" require_relative "interface/symbol_information" require_relative "interface/text_document_change_registration_options" require_relative "interface/text_document_client_capabilities" require_relative "interface/text_document_content_change_event" require_relative "interface/text_document_edit" require_relative "interface/text_document_identifier" require_relative "interface/text_document_item" require_relative "interface/text_document_position_params" require_relative "interface/text_document_registration_options" require_relative "interface/text_document_save_registration_options" require_relative "interface/text_document_sync_client_capabilities" require_relative "interface/text_document_sync_options" require_relative "interface/text_document_sync_options" require_relative "interface/text_edit" require_relative "interface/type_definition_client_capabilities" require_relative "interface/type_definition_options" require_relative "interface/type_definition_params" require_relative "interface/type_definition_registration_options" require_relative "interface/type_hierarchy_item" require_relative "interface/type_hierarchy_options" require_relative "interface/type_hierarchy_prepare_params" require_relative "interface/type_hierarchy_registration_options" require_relative "interface/type_hierarchy_subtypes_params" require_relative "interface/type_hierarchy_supertypes_params" require_relative "interface/unchanged_document_diagnostic_report" require_relative "interface/unregistration" require_relative "interface/unregistration_params" require_relative "interface/versioned_notebook_document_identifier" require_relative "interface/versioned_text_document_identifier" require_relative "interface/will_save_text_document_params" require_relative "interface/work_done_progress_begin" require_relative "interface/work_done_progress_cancel_params" require_relative "interface/work_done_progress_create_params" require_relative "interface/work_done_progress_end" require_relative "interface/work_done_progress_options" require_relative "interface/work_done_progress_params" require_relative "interface/work_done_progress_report" require_relative "interface/workspace_diagnostic_params" require_relative "interface/workspace_diagnostic_report" require_relative "interface/workspace_diagnostic_report_partial_result" require_relative "interface/workspace_edit" require_relative "interface/workspace_edit_client_capabilities" require_relative "interface/workspace_folder" require_relative "interface/workspace_folders_change_event" require_relative "interface/workspace_folders_server_capabilities" require_relative "interface/workspace_full_document_diagnostic_report" require_relative "interface/workspace_symbol" require_relative "interface/workspace_symbol_client_capabilities" require_relative "interface/workspace_symbol_options" require_relative "interface/workspace_symbol_params" require_relative "interface/workspace_symbol_registration_options" require_relative "interface/workspace_unchanged_document_diagnostic_report" end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/0000755000004100000410000000000015144416405026422 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/inlay_hint_kind.rb0000644000004100000410000000052115144416405032110 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Inlay hint kinds. # module InlayHintKind # # An inlay hint that for a type annotation. # TYPE = 1 # # An inlay hint that is for a parameter. # PARAMETER = 2 end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/file_operation_pattern_kind.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/file_operation_pattern_kind.0000644000004100000410000000063315144416405034166 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A pattern kind describing if a glob pattern matches a file a folder or # both. # module FileOperationPatternKind # # The pattern matches a file only. # FILE = 'file' # # The pattern matches a folder only. # FOLDER = 'folder' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/document_highlight_kind.rb0000644000004100000410000000067215144416405033626 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A document highlight kind. # module DocumentHighlightKind # # A textual occurrence. # TEXT = 1 # # Read-access of a symbol, like reading a variable. # READ = 2 # # Write-access of a symbol, like writing to a variable. # WRITE = 3 end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/prepare_support_default_behavior.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/prepare_support_default_beha0000644000004100000410000000044515144416405034265 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module PrepareSupportDefaultBehavior # # The client's default behavior is to select the identifier # according to the language's syntax rule. # IDENTIFIER = 1 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/text_document_save_reason.rb0000644000004100000410000000077515144416405034227 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Represents reasons why a text document is saved. # module TextDocumentSaveReason # # Manually triggered, e.g. by the user pressing save, by starting # debugging, or by an API call. # MANUAL = 1 # # Automatic after a delay. # AFTER_DELAY = 2 # # When the editor lost focus. # FOCUS_OUT = 3 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/uniqueness_level.rb0000644000004100000410000000134515144416405032340 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Moniker uniqueness level to define scope of the moniker. # module UniquenessLevel # # The moniker is only unique inside a document # DOCUMENT = 'document' # # The moniker is unique inside a project for which a dump got created # PROJECT = 'project' # # The moniker is unique inside the group to which a project belongs # GROUP = 'group' # # The moniker is unique inside the moniker scheme. # SCHEME = 'scheme' # # The moniker is globally unique # GLOBAL = 'global' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/insert_text_format.rb0000644000004100000410000000140315144416405032665 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Defines whether the insert text in a completion item should be interpreted as # plain text or a snippet. # module InsertTextFormat # # The primary text to be inserted is treated as a plain string. # PLAIN_TEXT = 1 # # The primary text to be inserted is treated as a snippet. # # A snippet can define tab stops and placeholders with `$1`, `$2` # and `${3:foo}`. `$0` defines the final tab stop, it defaults to # the end of the snippet. Placeholders with equal identifiers are linked, # that is typing in one will update others too. # SNIPPET = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/token_format.rb0000644000004100000410000000021715144416405031437 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module TokenFormat RELATIVE = 'relative' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/folding_range_kind.rb0000644000004100000410000000101015144416405032542 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A set of predefined range kinds. # The type is a string since the value set is extensible # module FoldingRangeKind # # Folding range for a comment # COMMENT = 'comment' # # Folding range for imports or includes # IMPORTS = 'imports' # # Folding range for a region (e.g. `#region`) # REGION = 'region' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/failure_handling_kind.rb0000644000004100000410000000202215144416405033243 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module FailureHandlingKind # # Applying the workspace change is simply aborted if one of the changes # provided fails. All operations executed before the failing operation # stay executed. # ABORT = 'abort' # # All operations are executed transactional. That means they either all # succeed or no changes at all are applied to the workspace. # TRANSACTIONAL = 'transactional' # # If the workspace edit contains only textual file changes they are # executed transactional. If resource changes (create, rename or delete # file) are part of the change the failure handling strategy is abort. # TEXT_ONLY_TRANSACTIONAL = 'textOnlyTransactional' # # The client tries to undo the operations already executed. But there is no # guarantee that this is succeeding. # UNDO = 'undo' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/symbol_tag.rb0000644000004100000410000000047515144416405031115 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Symbol tags are extra annotations that tweak the rendering of a symbol. # module SymbolTag # # Render a symbol as obsolete, usually using a strike-out. # DEPRECATED = 1 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/semantic_token_modifiers.rb0000644000004100000410000000071315144416405034014 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module SemanticTokenModifiers DECLARATION = 'declaration' DEFINITION = 'definition' READONLY = 'readonly' STATIC = 'static' DEPRECATED = 'deprecated' ABSTRACT = 'abstract' ASYNC = 'async' MODIFICATION = 'modification' DOCUMENTATION = 'documentation' DEFAULT_LIBRARY = 'defaultLibrary' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/completion_trigger_kind.rb0000644000004100000410000000132315144416405033647 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # How a completion was triggered # module CompletionTriggerKind # # Completion was triggered by typing an identifier (24x7 code # complete), manual invocation (e.g Ctrl+Space) or via API. # INVOKED = 1 # # Completion was triggered by a trigger character specified by # the `triggerCharacters` properties of the # `CompletionRegistrationOptions`. # TRIGGER_CHARACTER = 2 # # Completion was re-triggered as the current completion list is incomplete. # TRIGGER_FOR_INCOMPLETE_COMPLETIONS = 3 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/notebook_cell_kind.rb0000644000004100000410000000053415144416405032575 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A notebook cell kind. # module NotebookCellKind # # A markup-cell is formatted source that is used for display. # MARKUP = 1 # # A code-cell is source code. # CODE = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/moniker_kind.rb0000644000004100000410000000113115144416405031414 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The moniker kind. # module MonikerKind # # The moniker represent a symbol that is imported into a project # IMPORT = 'import' # # The moniker represents a symbol that is exported from a project # EXPORT = 'export' # # The moniker represents a symbol that is local to a project (e.g. a local # variable of a function, a class not visible outside the project, ...) # LOCAL = 'local' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/insert_text_mode.rb0000644000004100000410000000176115144416405032330 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # How whitespace and indentation is handled during completion # item insertion. # module InsertTextMode # # The insertion or replace strings is taken as it is. If the # value is multi line the lines below the cursor will be # inserted using the indentation defined in the string value. # The client will not apply any kind of adjustments to the # string. # AS_IS = 1 # # The editor adjusts leading whitespace of new lines so that # they match the indentation up to the cursor of the line for # which the item is accepted. # # Consider a line like this: <2tabs><3tabs>foo. Accepting a # multi line completion item is indented using 2 tabs and all # following lines inserted will be indented using 2 tabs as well. # ADJUST_INDENTATION = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/symbol_kind.rb0000644000004100000410000000125515144416405031264 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A symbol kind. # module SymbolKind FILE = 1 MODULE = 2 NAMESPACE = 3 PACKAGE = 4 CLASS = 5 METHOD = 6 PROPERTY = 7 FIELD = 8 CONSTRUCTOR = 9 ENUM = 10 INTERFACE = 11 FUNCTION = 12 VARIABLE = 13 CONSTANT = 14 STRING = 15 NUMBER = 16 BOOLEAN = 17 ARRAY = 18 OBJECT = 19 KEY = 20 NULL = 21 ENUM_MEMBER = 22 STRUCT = 23 EVENT = 24 OPERATOR = 25 TYPE_PARAMETER = 26 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/code_action_kind.rb0000644000004100000410000000464415144416405032233 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The kind of a code action. # # Kinds are a hierarchical list of identifiers separated by `.`, # e.g. `"refactor.extract.function"`. # # The set of kinds is open and client needs to announce the kinds it supports # to the server during initialization. # A set of predefined code action kinds. # module CodeActionKind # # Empty kind. # EMPTY = '' # # Base kind for quickfix actions: 'quickfix'. # QUICK_FIX = 'quickfix' # # Base kind for refactoring actions: 'refactor'. # REFACTOR = 'refactor' # # Base kind for refactoring extraction actions: 'refactor.extract'. # # Example extract actions: # # - Extract method # - Extract function # - Extract variable # - Extract interface from class # - ... # REFACTOR_EXTRACT = 'refactor.extract' # # Base kind for refactoring inline actions: 'refactor.inline'. # # Example inline actions: # # - Inline function # - Inline variable # - Inline constant # - ... # REFACTOR_INLINE = 'refactor.inline' # # Base kind for refactoring rewrite actions: 'refactor.rewrite'. # # Example rewrite actions: # # - Convert JavaScript function to class # - Add or remove parameter # - Encapsulate field # - Make method static # - Move method to base class # - ... # REFACTOR_REWRITE = 'refactor.rewrite' # # Base kind for source actions: `source`. # # Source code actions apply to the entire file. # SOURCE = 'source' # # Base kind for an organize imports source action: # `source.organizeImports`. # SOURCE_ORGANIZE_IMPORTS = 'source.organizeImports' # # Base kind for a 'fix all' source action: `source.fixAll`. # # 'Fix all' actions automatically fix errors that have a clear fix that # do not require user input. They should not suppress errors or perform # unsafe fixes such as generating new types or classes. # SOURCE_FIX_ALL = 'source.fixAll' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/initialize_error_codes.rb0000644000004100000410000000053715144416405033503 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Known error codes for an `InitializeErrorCodes`; # module InitializeErrorCodes # # If the protocol version provided by the client can't be handled by # the server. # UNKNOWN_PROTOCOL_VERSION = 1 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/watch_kind.rb0000644000004100000410000000052715144416405031066 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module WatchKind # # Interested in create events. # CREATE = 1 # # Interested in change events # CHANGE = 2 # # Interested in delete events # DELETE = 4 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/code_action_trigger_kind.rb0000644000004100000410000000105315144416405033745 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The reason why code actions were requested. # module CodeActionTriggerKind # # Code actions were explicitly requested by the user or by an extension. # INVOKED = 1 # # Code actions were requested automatically. # # This typically happens when current selection in a file changes, but can # also be triggered when file content changes. # AUTOMATIC = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/completion_item_kind.rb0000644000004100000410000000126215144416405033144 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The kind of a completion entry. # module CompletionItemKind TEXT = 1 METHOD = 2 FUNCTION = 3 CONSTRUCTOR = 4 FIELD = 5 VARIABLE = 6 CLASS = 7 INTERFACE = 8 MODULE = 9 PROPERTY = 10 UNIT = 11 VALUE = 12 ENUM = 13 KEYWORD = 14 SNIPPET = 15 COLOR = 16 FILE = 17 REFERENCE = 18 FOLDER = 19 ENUM_MEMBER = 20 CONSTANT = 21 STRUCT = 22 EVENT = 23 OPERATOR = 24 TYPE_PARAMETER = 25 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/resource_operation_kind.rb0000644000004100000410000000077115144416405033670 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The kind of resource operations supported by the client. # module ResourceOperationKind # # Supports creating new files and folders. # CREATE = 'create' # # Supports renaming existing files and folders. # RENAME = 'rename' # # Supports deleting existing files and folders. # DELETE = 'delete' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/semantic_token_types.rb0000644000004100000410000000164515144416405033204 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module SemanticTokenTypes NAMESPACE = 'namespace' # # Represents a generic type. Acts as a fallback for types which # can't be mapped to a specific type like class or enum. # TYPE = 'type' CLASS = 'class' ENUM = 'enum' INTERFACE = 'interface' STRUCT = 'struct' TYPE_PARAMETER = 'typeParameter' PARAMETER = 'parameter' VARIABLE = 'variable' PROPERTY = 'property' ENUM_MEMBER = 'enumMember' EVENT = 'event' FUNCTION = 'function' METHOD = 'method' MACRO = 'macro' KEYWORD = 'keyword' MODIFIER = 'modifier' COMMENT = 'comment' STRING = 'string' NUMBER = 'number' REGEXP = 'regexp' OPERATOR = 'operator' DECORATOR = 'decorator' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/message_type.rb0000644000004100000410000000057415144416405031442 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module MessageType # # An error message. # ERROR = 1 # # A warning message. # WARNING = 2 # # An information message. # INFO = 3 # # A log message. # LOG = 4 end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/document_diagnostic_report_kind.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/document_diagnostic_report_k0000644000004100000410000000067415144416405034303 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The document diagnostic report kinds. # module DocumentDiagnosticReportKind # # A diagnostic report with a full # set of problems. # FULL = 'full' # # A report indicating that the last # returned report is still accurate. # UNCHANGED = 'unchanged' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/diagnostic_tag.rb0000644000004100000410000000104715144416405031730 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The diagnostic tags. # module DiagnosticTag # # Unused or unnecessary code. # # Clients are allowed to render diagnostics with this tag faded out # instead of having an error squiggle. # UNNECESSARY = 1 # # Deprecated or obsolete code. # # Clients are allowed to rendered diagnostics with this tag strike through. # DEPRECATED = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/position_encoding_kind.rb0000644000004100000410000000160215144416405033465 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # A type indicating how positions are encoded, # specifically what column offsets mean. # A set of predefined position encoding kinds. # module PositionEncodingKind # # Character offsets count UTF-8 code units (e.g bytes). # UTF8 = 'utf-8' # # Character offsets count UTF-16 code units. # # This is the default and must always be supported # by servers # UTF16 = 'utf-16' # # Character offsets count UTF-32 code units. # # Implementation note: these are the same as Unicode code points, # so this `PositionEncodingKind` may also be used for an # encoding-agnostic representation of character offsets. # UTF32 = 'utf-32' end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/signature_help_trigger_kind.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/constant/signature_help_trigger_kind.0000644000004100000410000000107015144416405034162 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # How a signature help was triggered. # module SignatureHelpTriggerKind # # Signature help was invoked manually by the user or by a command. # INVOKED = 1 # # Signature help was triggered by a trigger character. # TRIGGER_CHARACTER = 2 # # Signature help was triggered by the cursor moving or by the document # content changing. # CONTENT_CHANGE = 3 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/markup_kind.rb0000644000004100000410000000113715144416405031255 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Describes the content type that a client supports in various # result literals like `Hover`, `ParameterInfo` or `CompletionItem`. # # Please note that `MarkupKinds` must not start with a `$`. This kinds # are reserved for internal usage. # module MarkupKind # # Plain text is supported as a content format # PLAIN_TEXT = 'plaintext' # # Markdown is supported as a content format # MARKDOWN = 'markdown' end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/error_codes.rb0000644000004100000410000000525015144416405031257 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module ErrorCodes PARSE_ERROR = -32700 INVALID_REQUEST = -32600 METHOD_NOT_FOUND = -32601 INVALID_PARAMS = -32602 INTERNAL_ERROR = -32603 # # This is the start range of JSON-RPC reserved error codes. # It doesn't denote a real error code. No LSP error codes should # be defined between the start and end range. For backwards # compatibility the `ServerNotInitialized` and the `UnknownErrorCode` # are left in the range. # JSONRPC_RESERVED_ERROR_RANGE_START = -32099 SERVER_ERROR_START = JSONRPC_RESERVED_ERROR_RANGE_START # # Error code indicating that a server received a notification or # request before the server has received the `initialize` request. # SERVER_NOT_INITIALIZED = -32002 UNKNOWN_ERROR_CODE = -32001 # # This is the end range of JSON-RPC reserved error codes. # It doesn't denote a real error code. # JSONRPC_RESERVED_ERROR_RANGE_END = -32000 SERVER_ERROR_END = JSONRPC_RESERVED_ERROR_RANGE_END # # This is the start range of LSP reserved error codes. # It doesn't denote a real error code. # LSP_RESERVED_ERROR_RANGE_START = -32899 # # A request failed but it was syntactically correct, e.g the # method name was known and the parameters were valid. The error # message should contain human readable information about why # the request failed. # REQUEST_FAILED = -32803 # # The server cancelled the request. This error code should # only be used for requests that explicitly support being # server cancellable. # SERVER_CANCELLED = -32802 # # The server detected that the content of a document got # modified outside normal conditions. A server should # NOT send this error code if it detects a content change # in it unprocessed messages. The result even computed # on an older state might still be useful for the client. # # If a client decides that a result is not of any use anymore # the client should cancel the request. # CONTENT_MODIFIED = -32801 # # The client has canceled a request and a server as detected # the cancel. # REQUEST_CANCELLED = -32800 # # This is the end range of LSP reserved error codes. # It doesn't denote a real error code. # LSP_RESERVED_ERROR_RANGE_END = -32800 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/file_change_type.rb0000644000004100000410000000057115144416405032237 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # The file event type. # module FileChangeType # # The file got created. # CREATED = 1 # # The file got changed. # CHANGED = 2 # # The file got deleted. # DELETED = 3 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/diagnostic_severity.rb0000644000004100000410000000061415144416405033026 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant module DiagnosticSeverity # # Reports an error. # ERROR = 1 # # Reports a warning. # WARNING = 2 # # Reports an information. # INFORMATION = 3 # # Reports a hint. # HINT = 4 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/text_document_sync_kind.rb0000644000004100000410000000120715144416405033672 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Defines how the host (editor) should sync document changes to the language # server. # module TextDocumentSyncKind # # Documents should not be synced at all. # NONE = 0 # # Documents are synced by always sending the full content # of the document. # FULL = 1 # # Documents are synced by sending the full content on open. # After that only incremental updates to the document are # sent. # INCREMENTAL = 2 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/constant/completion_item_tag.rb0000644000004100000410000000054315144416405032773 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant # # Completion item tags are extra annotations that tweak the rendering of a # completion item. # module CompletionItemTag # # Render a completion as obsolete, usually using a strike-out. # DEPRECATED = 1 end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/version.rb0000644000004100000410000000011315144416405026576 0ustar www-datawww-datamodule LanguageServer module Protocol VERSION = "3.17.0.5" end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/0000755000004100000410000000000015144416405026531 5ustar www-datawww-data././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_registratio0000644000004100000410000000241515144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeDefinitionRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/delete_file.rb0000644000004100000410000000237215144416405031323 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Delete file operation # class DeleteFile def initialize(kind:, uri:, options: nil, annotation_id: nil) @attributes = {} @attributes[:kind] = kind @attributes[:uri] = uri @attributes[:options] = options if options @attributes[:annotationId] = annotation_id if annotation_id @attributes.freeze end # # A delete # # @return ["delete"] def kind attributes.fetch(:kind) end # # The file to delete. # # @return [string] def uri attributes.fetch(:uri) end # # Delete options. # # @return [DeleteFileOptions] def options attributes.fetch(:options) end # # An optional annotation identifier describing the operation. # # @return [string] def annotation_id attributes.fetch(:annotationId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_save_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_save_registra0000644000004100000410000000204115144416405034251 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentSaveRegistrationOptions def initialize(document_selector:, include_text: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:includeText] = include_text if include_text @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The client is supposed to include the content on save. # # @return [boolean] def include_text attributes.fetch(:includeText) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_related_information.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_related_informat0000644000004100000410000000211215144416405034173 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents a related message and source code location for a diagnostic. # This should be used to point to code locations that cause or are related to # a diagnostics, e.g when duplicating a symbol in a scope. # class DiagnosticRelatedInformation def initialize(location:, message:) @attributes = {} @attributes[:location] = location @attributes[:message] = message @attributes.freeze end # # The location of this related diagnostic information. # # @return [Location] def location attributes.fetch(:location) end # # The message of this related diagnostic information. # # @return [string] def message attributes.fetch(:message) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/change_annotation.rb0000644000004100000410000000257115144416405032542 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Additional information that describes document changes. # class ChangeAnnotation def initialize(label:, needs_confirmation: nil, description: nil) @attributes = {} @attributes[:label] = label @attributes[:needsConfirmation] = needs_confirmation if needs_confirmation @attributes[:description] = description if description @attributes.freeze end # # A human-readable string describing the actual change. The string # is rendered prominent in the user interface. # # @return [string] def label attributes.fetch(:label) end # # A flag which indicates that user confirmation is needed # before applying the change. # # @return [boolean] def needs_confirmation attributes.fetch(:needsConfirmation) end # # A human-readable string which is rendered less prominent in # the user interface. # # @return [string] def description attributes.fetch(:description) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_registrati0000644000004100000410000000167715144416405034307 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceSymbolRegistrationOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The server provides support to resolve additional # information for a workspace symbol. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/unregistration.rb0000644000004100000410000000164015144416405032134 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # General parameters to unregister a capability. # class Unregistration def initialize(id:, method:) @attributes = {} @attributes[:id] = id @attributes[:method] = method @attributes.freeze end # # The id used to unregister the request or notification. Usually an id # provided during the register request. # # @return [string] def id attributes.fetch(:id) end # # The method / capability to unregister for. # # @return [string] def method attributes.fetch(:method) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_c0000644000004100000410000000131515144416405034202 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentRangeFormattingClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether formatting supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/color.rb0000644000004100000410000000241415144416405030175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents a color in RGBA space. # class Color def initialize(red:, green:, blue:, alpha:) @attributes = {} @attributes[:red] = red @attributes[:green] = green @attributes[:blue] = blue @attributes[:alpha] = alpha @attributes.freeze end # # The red component of this color in the range [0-1]. # # @return [number] def red attributes.fetch(:red) end # # The green component of this color in the range [0-1]. # # @return [number] def green attributes.fetch(:green) end # # The blue component of this color in the range [0-1]. # # @return [number] def blue attributes.fetch(:blue) end # # The alpha component of this color in the range [0-1]. # # @return [number] def alpha attributes.fetch(:alpha) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_document_params.rb0000644000004100000410000000340115144416405033275 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Params to show a resource. # class ShowDocumentParams def initialize(uri:, external: nil, take_focus: nil, selection: nil) @attributes = {} @attributes[:uri] = uri @attributes[:external] = external if external @attributes[:takeFocus] = take_focus if take_focus @attributes[:selection] = selection if selection @attributes.freeze end # # The uri to show. # # @return [string] def uri attributes.fetch(:uri) end # # Indicates to show the resource in an external program. # To show, for example, `https://code.visualstudio.com/` # in the default WEB browser set `external` to `true`. # # @return [boolean] def external attributes.fetch(:external) end # # An optional property to indicate whether the editor # showing the document should take focus or not. # Clients might ignore this property if an external # program is started. # # @return [boolean] def take_focus attributes.fetch(:takeFocus) end # # An optional selection range if the document is a text # document. Clients might ignore the property if an # external program is started or the file is not a text # file. # # @return [Range] def selection attributes.fetch(:selection) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_prepare_para0000644000004100000410000000221315144416405034144 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyPrepareParams def initialize(text_document:, position:, work_done_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_pattern.rb0000644000004100000410000000370115144416405033613 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A pattern to describe in which file operation requests or notifications # the server is interested in. # class FileOperationPattern def initialize(glob:, matches: nil, options: nil) @attributes = {} @attributes[:glob] = glob @attributes[:matches] = matches if matches @attributes[:options] = options if options @attributes.freeze end # # The glob pattern to match. Glob patterns can have the following syntax: # - `*` to match one or more characters in a path segment # - `?` to match on one character in a path segment # - `**` to match any number of path segments, including none # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` # matches all TypeScript and JavaScript files) # - `[]` to declare a range of characters to match in a path segment # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) # - `[!...]` to negate a range of characters to match in a path segment # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but # not `example.0`) # # @return [string] def glob attributes.fetch(:glob) end # # Whether to match files or folders with this pattern. # # Matches both if undefined. # # @return [FileOperationPatternKind] def matches attributes.fetch(:matches) end # # Additional options used during matching. # # @return [FileOperationPatternOptions] def options attributes.fetch(:options) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_file_options.rb0000644000004100000410000000170115144416405033076 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Rename file options # class RenameFileOptions def initialize(overwrite: nil, ignore_if_exists: nil) @attributes = {} @attributes[:overwrite] = overwrite if overwrite @attributes[:ignoreIfExists] = ignore_if_exists if ignore_if_exists @attributes.freeze end # # Overwrite target if existing. Overwrite wins over `ignoreIfExists` # # @return [boolean] def overwrite attributes.fetch(:overwrite) end # # Ignores if target exists. # # @return [boolean] def ignore_if_exists attributes.fetch(:ignoreIfExists) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_folders_change_event.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_folders_change_ev0000644000004100000410000000157315144416405034175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The workspace folder change event. # class WorkspaceFoldersChangeEvent def initialize(added:, removed:) @attributes = {} @attributes[:added] = added @attributes[:removed] = removed @attributes.freeze end # # The array of added workspace folders # # @return [WorkspaceFolder[]] def added attributes.fetch(:added) end # # The array of the removed workspace folders # # @return [WorkspaceFolder[]] def removed attributes.fetch(:removed) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/log_message_params.rb0000644000004100000410000000141415144416405032706 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LogMessageParams def initialize(type:, message:) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes.freeze end # # The message type. See {@link MessageType} # # @return [MessageType] def type attributes.fetch(:type) end # # The actual message # # @return [string] def message attributes.fetch(:message) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_legend.rb0000644000004100000410000000153315144416405033564 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensLegend def initialize(token_types:, token_modifiers:) @attributes = {} @attributes[:tokenTypes] = token_types @attributes[:tokenModifiers] = token_modifiers @attributes.freeze end # # The token types a server uses. # # @return [string[]] def token_types attributes.fetch(:tokenTypes) end # # The token modifiers a server uses. # # @return [string[]] def token_modifiers attributes.fetch(:tokenModifiers) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_params.rb0000644000004100000410000000217415144416405031550 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class HoverParams def initialize(text_document:, position:, work_done_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_registration_opti0000644000004100000410000000240715144416405034237 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeLensRegistrationOptions def initialize(document_selector:, work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Code lens has a resolve provider as well. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker.rb0000644000004100000410000000263315144416405030526 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Moniker definition to match LSIF 0.5 moniker definition. # class Moniker def initialize(scheme:, identifier:, unique:, kind: nil) @attributes = {} @attributes[:scheme] = scheme @attributes[:identifier] = identifier @attributes[:unique] = unique @attributes[:kind] = kind if kind @attributes.freeze end # # The scheme of the moniker. For example tsc or .Net # # @return [string] def scheme attributes.fetch(:scheme) end # # The identifier of the moniker. The value is opaque in LSIF however # schema owners are allowed to define the structure if they want. # # @return [string] def identifier attributes.fetch(:identifier) end # # The scope in which the moniker is unique # # @return [UniquenessLevel] def unique attributes.fetch(:unique) end # # The moniker kind if known. # # @return [MonikerKind] def kind attributes.fetch(:kind) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/apply_workspace_edit_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/apply_workspace_edit_params0000644000004100000410000000162415144416405034232 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ApplyWorkspaceEditParams def initialize(label: nil, edit:) @attributes = {} @attributes[:label] = label if label @attributes[:edit] = edit @attributes.freeze end # # An optional label of the workspace edit. This label is # presented in the user interface for example on an undo # stack to undo the workspace edit. # # @return [string] def label attributes.fetch(:label) end # # The edits to apply. # # @return [WorkspaceEdit] def edit attributes.fetch(:edit) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_client_capab0000644000004100000410000000322415144416405034152 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SignatureHelpClientCapabilities def initialize(dynamic_registration: nil, signature_information: nil, context_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:signatureInformation] = signature_information if signature_information @attributes[:contextSupport] = context_support if context_support @attributes.freeze end # # Whether signature help supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports the following `SignatureInformation` # specific properties. # # @return [{ documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }] def signature_information attributes.fetch(:signatureInformation) end # # The client supports to send additional context information for a # `textDocument/signatureHelp` request. A client that opts into # contextSupport will also support the `retriggerCharacters` on # `SignatureHelpOptions`. # # @return [boolean] def context_support attributes.fetch(:contextSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_workspace_client0000644000004100000410000000217215144416405034216 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Workspace client capabilities specific to diagnostic pull requests. # class DiagnosticWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # Whether the client implementation supports a refresh request sent from # the server to the client. # # Note that this event is global and will force the client to refresh all # pulled diagnostics currently shown. It should be used with absolute care # and is useful for situation where a server for example detects a project # wide change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_params.rb0000644000004100000410000000222615144416405033563 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ExecuteCommandParams def initialize(work_done_token: nil, command:, arguments: nil) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:command] = command @attributes[:arguments] = arguments if arguments @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The identifier of the actual command handler. # # @return [string] def command attributes.fetch(:command) end # # Arguments that the command should be invoked with. # # @return [LSPAny[]] def arguments attributes.fetch(:arguments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_params.r0000644000004100000410000000300715144416405034124 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentHighlightParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_registration_option0000644000004100000410000000174515144416405034311 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class MonikerRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/color_information.rb0000644000004100000410000000144415144416405032604 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ColorInformation def initialize(range:, color:) @attributes = {} @attributes[:range] = range @attributes[:color] = color @attributes.freeze end # # The range in the document where this color appears. # # @return [Range] def range attributes.fetch(:range) end # # The actual color value for this color range. # # @return [Color] def color attributes.fetch(:color) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_client_capabilit0000644000004100000410000000513615144416405034200 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CompletionClientCapabilities def initialize(dynamic_registration: nil, completion_item: nil, completion_item_kind: nil, context_support: nil, insert_text_mode: nil, completion_list: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:completionItem] = completion_item if completion_item @attributes[:completionItemKind] = completion_item_kind if completion_item_kind @attributes[:contextSupport] = context_support if context_support @attributes[:insertTextMode] = insert_text_mode if insert_text_mode @attributes[:completionList] = completion_list if completion_list @attributes.freeze end # # Whether completion supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports the following `CompletionItem` specific # capabilities. # # @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]; deprecatedSupport?: boolean; preselectSupport?: boolean; tagSupport?: { valueSet: 1[]; }; insertReplaceSupport?: boolean; resolveSupport?: { ...; }; insertTextModeSupport?: { ...; }; labelDetailsSupport?: boolean; }] def completion_item attributes.fetch(:completionItem) end # @return [{ valueSet?: CompletionItemKind[]; }] def completion_item_kind attributes.fetch(:completionItemKind) end # # The client supports to send additional context information for a # `textDocument/completion` request. # # @return [boolean] def context_support attributes.fetch(:contextSupport) end # # The client's default when the completion item doesn't provide a # `insertTextMode` property. # # @return [InsertTextMode] def insert_text_mode attributes.fetch(:insertTextMode) end # # The client supports the following `CompletionList` specific # capabilities. # # @return [{ itemDefaults?: string[]; }] def completion_list attributes.fetch(:completionList) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_client_capabili0000644000004100000410000000222315144416405034122 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DeclarationClientCapabilities def initialize(dynamic_registration: nil, link_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:linkSupport] = link_support if link_support @attributes.freeze end # # Whether declaration supports dynamic registration. If this is set to # `true` the client supports the new `DeclarationRegistrationOptions` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports additional metadata in the form of declaration links. # # @return [boolean] def link_support attributes.fetch(:linkSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting0000644000004100000410000000317115144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentOnTypeFormattingParams def initialize(text_document:, position:, ch:, options:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:ch] = ch @attributes[:options] = options @attributes.freeze end # # The document to format. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position around which the on type formatting should happen. # This is not necessarily the exact position where the character denoted # by the property `ch` got typed. # # @return [Position] def position attributes.fetch(:position) end # # The character that has been typed that triggered the formatting # on type request. That is not necessarily the last character that # got inserted into the document since the client could auto insert # characters as well (e.g. like automatic brace completion). # # @return [string] def ch attributes.fetch(:ch) end # # The formatting options. # # @return [FormattingOptions] def options attributes.fetch(:options) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/delete_file_options.rb0000644000004100000410000000174115144416405033075 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Delete file options # class DeleteFileOptions def initialize(recursive: nil, ignore_if_not_exists: nil) @attributes = {} @attributes[:recursive] = recursive if recursive @attributes[:ignoreIfNotExists] = ignore_if_not_exists if ignore_if_not_exists @attributes.freeze end # # Delete the content recursively if a folder is denoted. # # @return [boolean] def recursive attributes.fetch(:recursive) end # # Ignore the operation if the file doesn't exist. # # @return [boolean] def ignore_if_not_exists attributes.fetch(:ignoreIfNotExists) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/formatting_options.rb0000644000004100000410000000355015144416405033006 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Value-object describing what options formatting should use. # class FormattingOptions def initialize(tab_size:, insert_spaces:, trim_trailing_whitespace: nil, insert_final_newline: nil, trim_final_newlines: nil) @attributes = {} @attributes[:tabSize] = tab_size @attributes[:insertSpaces] = insert_spaces @attributes[:trimTrailingWhitespace] = trim_trailing_whitespace if trim_trailing_whitespace @attributes[:insertFinalNewline] = insert_final_newline if insert_final_newline @attributes[:trimFinalNewlines] = trim_final_newlines if trim_final_newlines @attributes.freeze end # # Size of a tab in spaces. # # @return [number] def tab_size attributes.fetch(:tabSize) end # # Prefer spaces over tabs. # # @return [boolean] def insert_spaces attributes.fetch(:insertSpaces) end # # Trim trailing whitespace on a line. # # @return [boolean] def trim_trailing_whitespace attributes.fetch(:trimTrailingWhitespace) end # # Insert a newline character at the end of the file if one does not exist. # # @return [boolean] def insert_final_newline attributes.fetch(:insertFinalNewline) end # # Trim all newlines after the final newline at the end of the file. # # @return [boolean] def trim_final_newlines attributes.fetch(:trimFinalNewlines) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_re0000644000004100000410000000131615144416405034071 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Describe options to be used when registering for file system change events. # class DidChangeWatchedFilesRegistrationOptions def initialize(watchers:) @attributes = {} @attributes[:watchers] = watchers @attributes.freeze end # # The watchers to register. # # @return [FileSystemWatcher[]] def watchers attributes.fetch(:watchers) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_options.rb0000644000004100000410000000113215144416405033642 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentColorOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_registration_options0000644000004100000410000000242715144416405034275 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RenameRegistrationOptions def initialize(document_selector:, work_done_progress: nil, prepare_provider: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:prepareProvider] = prepare_provider if prepare_provider @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Renames should be checked and tested before being executed. # # @return [boolean] def prepare_provider attributes.fetch(:prepareProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_client_capabiliti0000644000004100000410000000127715144416405034140 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ReferenceClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether references supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_save_text_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_save_text_document_para0000644000004100000410000000163615144416405034205 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidSaveTextDocumentParams def initialize(text_document:, text: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:text] = text if text @attributes.freeze end # # The document that was saved. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # Optional the content when saved. Depends on the includeText value # when the save notification was requested. # # @return [string] def text attributes.fetch(:text) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/set_trace_params.rb0000644000004100000410000000113215144416405032367 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SetTraceParams def initialize(value:) @attributes = {} @attributes[:value] = value @attributes.freeze end # # The new value that should be assigned to the trace setting. # # @return [TraceValue] def value attributes.fetch(:value) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_params.rb0000644000004100000410000000301415144416405033560 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SelectionRangeParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, positions:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:positions] = positions @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The positions inside the text document. # # @return [Position[]] def positions attributes.fetch(:positions) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/response_error.rb0000644000004100000410000000211315144416405032122 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ResponseError def initialize(code:, message:, data: nil) @attributes = {} @attributes[:code] = code @attributes[:message] = message @attributes[:data] = data if data @attributes.freeze end # # A number indicating the error type that occurred. # # @return [number] def code attributes.fetch(:code) end # # A string providing a short description of the error. # # @return [string] def message attributes.fetch(:message) end # # A primitive or structured value that contains additional # information about the error. Can be omitted. # # @return [any] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_options.rb0000644000004100000410000000156615144416405032574 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeLensOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Code lens has a resolve provider as well. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_options.rb0000644000004100000410000000124615144416405033306 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inline value options used during static registration. # class InlineValueOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/color_presentation.rb0000644000004100000410000000313115144416405032765 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ColorPresentation def initialize(label:, text_edit: nil, additional_text_edits: nil) @attributes = {} @attributes[:label] = label @attributes[:textEdit] = text_edit if text_edit @attributes[:additionalTextEdits] = additional_text_edits if additional_text_edits @attributes.freeze end # # The label of this color presentation. It will be shown on the color # picker header. By default this is also the text that is inserted when # selecting this color presentation. # # @return [string] def label attributes.fetch(:label) end # # An [edit](#TextEdit) which is applied to a document when selecting # this presentation for the color. When omitted the # [label](#ColorPresentation.label) is used. # # @return [TextEdit] def text_edit attributes.fetch(:textEdit) end # # An optional array of additional [text edits](#TextEdit) that are applied # when selecting this color presentation. Edits must not overlap with the # main [edit](#ColorPresentation.textEdit) nor with themselves. # # @return [TextEdit[]] def additional_text_edits attributes.fetch(:additionalTextEdits) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_regist0000644000004100000410000000242115144416405034155 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LinkedEditingRangeRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_report0000644000004100000410000000113315144416405034247 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A workspace diagnostic report. # class WorkspaceDiagnosticReport def initialize(items:) @attributes = {} @attributes[:items] = items @attributes.freeze end # @return [WorkspaceDocumentDiagnosticReport[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_configuration_cl0000644000004100000410000000133715144416405034132 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeConfigurationClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Did change configuration notification supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_client_ca0000644000004100000410000000141315144416405034172 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Capabilities specific to the notebook document support. # class NotebookDocumentClientCapabilities def initialize(synchronization:) @attributes = {} @attributes[:synchronization] = synchronization @attributes.freeze end # # Capabilities specific to notebook document synchronization # # @return [NotebookDocumentSyncClientCapabilities] def synchronization attributes.fetch(:synchronization) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_options.rb0000644000004100000410000000177115144416405032775 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inlay hint options used during static registration. # class InlayHintOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The server provides support to resolve additional # information for an inlay hint item. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_save_notebook_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_save_notebook_document_0000644000004100000410000000135715144416405034175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The params sent in a save notebook document notification. # class DidSaveNotebookDocumentParams def initialize(notebook_document:) @attributes = {} @attributes[:notebookDocument] = notebook_document @attributes.freeze end # # The notebook document that got saved. # # @return [NotebookDocumentIdentifier] def notebook_document attributes.fetch(:notebookDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_client_capabi0000644000004100000410000000177415144416405034155 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentLinkClientCapabilities def initialize(dynamic_registration: nil, tooltip_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:tooltipSupport] = tooltip_support if tooltip_support @attributes.freeze end # # Whether document link supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Whether the client supports the `tooltip` property on `DocumentLink`. # # @return [boolean] def tooltip_support attributes.fetch(:tooltipSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/regular_expressions_client_0000644000004100000410000000155515144416405034262 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client capabilities specific to regular expressions. # class RegularExpressionsClientCapabilities def initialize(engine:, version: nil) @attributes = {} @attributes[:engine] = engine @attributes[:version] = version if version @attributes.freeze end # # The engine's name. # # @return [string] def engine attributes.fetch(:engine) end # # The engine's version. # # @return [string] def version attributes.fetch(:version) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_text.rb0000644000004100000410000000151115144416405032572 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Provide inline value as text. # class InlineValueText def initialize(range:, text:) @attributes = {} @attributes[:range] = range @attributes[:text] = text @attributes.freeze end # # The document range for which the inline value applies. # # @return [Range] def range attributes.fetch(:range) end # # The text of the inline value. # # @return [string] def text attributes.fetch(:text) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_context.rb0000644000004100000410000000122015144416405032553 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ReferenceContext def initialize(include_declaration:) @attributes = {} @attributes[:includeDeclaration] = include_declaration @attributes.freeze end # # Include the declaration of the current symbol. # # @return [boolean] def include_declaration attributes.fetch(:includeDeclaration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/initialize_error.rb0000644000004100000410000000146715144416405032440 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class InitializeError def initialize(retry:) @attributes = {} @attributes[:retry] = binding.local_variable_get(:retry) @attributes.freeze end # # Indicates whether the client execute the following retry logic: # (1) show the message provided by the ResponseError to the user # (2) user selects retry or cancel # (3) if user selected retry the initialize method is sent again. # # @return [boolean] def retry attributes.fetch(:retry) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_params.rb0000644000004100000410000000273515144416405031677 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RenameParams def initialize(text_document:, position:, work_done_token: nil, new_name:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:newName] = new_name @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The new name of the symbol. If the given name is not valid the # request must return a [ResponseError](#ResponseError) with an # appropriate message set. # # @return [string] def new_name attributes.fetch(:newName) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_create.rb0000644000004100000410000000122515144416405031320 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents information on a file/folder create. # class FileCreate def initialize(uri:) @attributes = {} @attributes[:uri] = uri @attributes.freeze end # # A file:// URI for the location of the file/folder being created. # # @return [string] def uri attributes.fetch(:uri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_registration0000644000004100000410000000346115144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SignatureHelpRegistrationOptions def initialize(document_selector:, work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The characters that trigger signature help # automatically. # # @return [string[]] def trigger_characters attributes.fetch(:triggerCharacters) end # # List of characters that re-trigger signature help. # # These trigger characters are only active when signature help is already # showing. All trigger characters are also counted as re-trigger # characters. # # @return [string[]] def retrigger_characters attributes.fetch(:retriggerCharacters) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_change_event.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_change_ev0000644000004100000410000000202015144416405034163 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A change event for a notebook document. # class NotebookDocumentChangeEvent def initialize(metadata: nil, cells: nil) @attributes = {} @attributes[:metadata] = metadata if metadata @attributes[:cells] = cells if cells @attributes.freeze end # # The changed meta data if any. # # @return [LSPObject] def metadata attributes.fetch(:metadata) end # # Changes to cells # # @return [{ structure?: { array: NotebookCellArrayChange; didOpen?: TextDocumentItem[]; didClose?: TextDocumentIdentifier[]; }; data?: NotebookCell[]; textContent?: { ...; }[]; }] def cells attributes.fetch(:cells) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_notebook_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_notebook_documen0000644000004100000410000000305015144416405034131 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The params sent in a change notebook document notification. # class DidChangeNotebookDocumentParams def initialize(notebook_document:, change:) @attributes = {} @attributes[:notebookDocument] = notebook_document @attributes[:change] = change @attributes.freeze end # # The notebook document that did change. The version number points # to the version after all provided changes have been applied. # # @return [VersionedNotebookDocumentIdentifier] def notebook_document attributes.fetch(:notebookDocument) end # # The actual changes to the notebook document. # # The change describes single state change to the notebook document. # So it moves a notebook document, its cells and its cell text document # contents from state S to S'. # # To mirror the content of a notebook using change events use the # following approach: # - start with the same initial content # - apply the 'notebookDocument/didChange' notifications in the order # you receive them. # # @return [NotebookDocumentChangeEvent] def change attributes.fetch(:change) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_registration_opt0000644000004100000410000000175015144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DefinitionRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens.rb0000644000004100000410000000177215144416405032253 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokens def initialize(result_id: nil, data:) @attributes = {} @attributes[:resultId] = result_id if result_id @attributes[:data] = data @attributes.freeze end # # An optional result id. If provided and clients support delta updating # the client will include the result id in the next semantic token request. # A server can then instead of computing all semantic tokens again simply # send a delta. # # @return [string] def result_id attributes.fetch(:resultId) end # # The actual tokens. # # @return [number[]] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_client_capab0000644000004100000410000000130715144416405034155 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentColorClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether document color supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_outgoing_cal0000644000004100000410000000163215144416405034161 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyOutgoingCall def initialize(to:, from_ranges:) @attributes = {} @attributes[:to] = to @attributes[:fromRanges] = from_ranges @attributes.freeze end # # The item that is called. # # @return [CallHierarchyItem] def to attributes.fetch(:to) end # # The range at which this item is called. This is the range relative to # the caller, e.g the item passed to `callHierarchy/outgoingCalls` request. # # @return [Range[]] def from_ranges attributes.fetch(:fromRanges) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_options.rb0000644000004100000410000000252015144416405034016 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensOptions def initialize(work_done_progress: nil, legend:, range: nil, full: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:legend] = legend @attributes[:range] = range if range @attributes[:full] = full if full @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The legend used by the server # # @return [SemanticTokensLegend] def legend attributes.fetch(:legend) end # # Server supports providing semantic tokens for a specific range # of a document. # # @return [boolean | {}] def range attributes.fetch(:range) end # # Server supports providing semantic tokens for a full document. # # @return [boolean | { delta?: boolean; }] def full attributes.fetch(:full) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic.rb0000644000004100000410000000564615144416405031215 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Diagnostic def initialize(range:, severity: nil, code: nil, code_description: nil, source: nil, message:, tags: nil, related_information: nil, data: nil) @attributes = {} @attributes[:range] = range @attributes[:severity] = severity if severity @attributes[:code] = code if code @attributes[:codeDescription] = code_description if code_description @attributes[:source] = source if source @attributes[:message] = message @attributes[:tags] = tags if tags @attributes[:relatedInformation] = related_information if related_information @attributes[:data] = data if data @attributes.freeze end # # The range at which the message applies. # # @return [Range] def range attributes.fetch(:range) end # # The diagnostic's severity. Can be omitted. If omitted it is up to the # client to interpret diagnostics as error, warning, info or hint. # # @return [DiagnosticSeverity] def severity attributes.fetch(:severity) end # # The diagnostic's code, which might appear in the user interface. # # @return [string | number] def code attributes.fetch(:code) end # # An optional property to describe the error code. # # @return [CodeDescription] def code_description attributes.fetch(:codeDescription) end # # A human-readable string describing the source of this # diagnostic, e.g. 'typescript' or 'super lint'. # # @return [string] def source attributes.fetch(:source) end # # The diagnostic's message. # # @return [string] def message attributes.fetch(:message) end # # Additional metadata about the diagnostic. # # @return [DiagnosticTag[]] def tags attributes.fetch(:tags) end # # An array of related diagnostic information, e.g. when symbol-names within # a scope collide all definitions can be marked via this property. # # @return [DiagnosticRelatedInformation[]] def related_information attributes.fetch(:relatedInformation) end # # A data entry field that is preserved between a # `textDocument/publishDiagnostics` notification and # `textDocument/codeAction` request. # # @return [unknown] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_params.rb0000644000004100000410000000244215144416405033437 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentColorParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/registration_params.rb0000644000004100000410000000106015144416405033130 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RegistrationParams def initialize(registrations:) @attributes = {} @attributes[:registrations] = registrations @attributes.freeze end # @return [Registration[]] def registrations attributes.fetch(:registrations) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_configuration_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_configuration_pa0000644000004100000410000000112315144416405034125 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeConfigurationParams def initialize(settings:) @attributes = {} @attributes[:settings] = settings @attributes.freeze end # # The actual changed settings # # @return [LSPAny] def settings attributes.fetch(:settings) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016700000000000011607 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_report0000644000004100000410000000117515144416405034255 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A partial result for a workspace diagnostic report. # class WorkspaceDiagnosticReportPartialResult def initialize(items:) @attributes = {} @attributes[:items] = items @attributes.freeze end # @return [WorkspaceDocumentDiagnosticReport[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_registration_opt0000644000004100000410000000467215144416405034265 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Diagnostic registration options. # class DiagnosticRegistrationOptions def initialize(document_selector:, work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:identifier] = identifier if identifier @attributes[:interFileDependencies] = inter_file_dependencies @attributes[:workspaceDiagnostics] = workspace_diagnostics @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # An optional identifier under which the diagnostics are # managed by the client. # # @return [string] def identifier attributes.fetch(:identifier) end # # Whether the language has inter file dependencies meaning that # editing code in one file can result in a different diagnostic # set in another file. Inter file dependencies are common for # most programming languages and typically uncommon for linters. # # @return [boolean] def inter_file_dependencies attributes.fetch(:interFileDependencies) end # # The server provides support for workspace diagnostics as well. # # @return [boolean] def workspace_diagnostics attributes.fetch(:workspaceDiagnostics) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_prepare_para0000644000004100000410000000221315144416405034212 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchyPrepareParams def initialize(text_document:, position:, work_done_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_options.rb0000644000004100000410000000157715144416405034046 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentSymbolOptions def initialize(work_done_progress: nil, label: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:label] = label if label @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A human-readable string that is shown when multiple outlines trees # are shown for the same document. # # @return [string] def label attributes.fetch(:label) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_client_capa0000644000004100000410000000432715144416405034207 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentSymbolClientCapabilities def initialize(dynamic_registration: nil, symbol_kind: nil, hierarchical_document_symbol_support: nil, tag_support: nil, label_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:symbolKind] = symbol_kind if symbol_kind @attributes[:hierarchicalDocumentSymbolSupport] = hierarchical_document_symbol_support if hierarchical_document_symbol_support @attributes[:tagSupport] = tag_support if tag_support @attributes[:labelSupport] = label_support if label_support @attributes.freeze end # # Whether document symbol supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Specific capabilities for the `SymbolKind` in the # `textDocument/documentSymbol` request. # # @return [{ valueSet?: SymbolKind[]; }] def symbol_kind attributes.fetch(:symbolKind) end # # The client supports hierarchical document symbols. # # @return [boolean] def hierarchical_document_symbol_support attributes.fetch(:hierarchicalDocumentSymbolSupport) end # # The client supports tags on `SymbolInformation`. Tags are supported on # `DocumentSymbol` if `hierarchicalDocumentSymbolSupport` is set to true. # Clients supporting tags have to handle unknown tags gracefully. # # @return [{ valueSet: 1[]; }] def tag_support attributes.fetch(:tagSupport) end # # The client supports an additional label presented in the UI when # registering a document symbol provider. # # @return [boolean] def label_support attributes.fetch(:labelSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_rename.rb0000644000004100000410000000164615144416405031333 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents information on a file/folder rename. # class FileRename def initialize(old_uri:, new_uri:) @attributes = {} @attributes[:oldUri] = old_uri @attributes[:newUri] = new_uri @attributes.freeze end # # A file:// URI for the original location of the file/folder being renamed. # # @return [string] def old_uri attributes.fetch(:oldUri) end # # A file:// URI for the new location of the file/folder being renamed. # # @return [string] def new_uri attributes.fetch(:newUri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_client_capabili0000644000004100000410000000606615144416405034115 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeActionClientCapabilities def initialize(dynamic_registration: nil, code_action_literal_support: nil, is_preferred_support: nil, disabled_support: nil, data_support: nil, resolve_support: nil, honors_change_annotations: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:codeActionLiteralSupport] = code_action_literal_support if code_action_literal_support @attributes[:isPreferredSupport] = is_preferred_support if is_preferred_support @attributes[:disabledSupport] = disabled_support if disabled_support @attributes[:dataSupport] = data_support if data_support @attributes[:resolveSupport] = resolve_support if resolve_support @attributes[:honorsChangeAnnotations] = honors_change_annotations if honors_change_annotations @attributes.freeze end # # Whether code action supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports code action literals as a valid # response of the `textDocument/codeAction` request. # # @return [{ codeActionKind: { valueSet: string[]; }; }] def code_action_literal_support attributes.fetch(:codeActionLiteralSupport) end # # Whether code action supports the `isPreferred` property. # # @return [boolean] def is_preferred_support attributes.fetch(:isPreferredSupport) end # # Whether code action supports the `disabled` property. # # @return [boolean] def disabled_support attributes.fetch(:disabledSupport) end # # Whether code action supports the `data` property which is # preserved between a `textDocument/codeAction` and a # `codeAction/resolve` request. # # @return [boolean] def data_support attributes.fetch(:dataSupport) end # # Whether the client supports resolving additional code action # properties via a separate `codeAction/resolve` request. # # @return [{ properties: string[]; }] def resolve_support attributes.fetch(:resolveSupport) end # # Whether the client honors the change annotations in # text edits and resource operations returned via the # `CodeAction#edit` property by for example presenting # the workspace edit in the user interface and asking # for confirmation. # # @return [boolean] def honors_change_annotations attributes.fetch(:honorsChangeAnnotations) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_diagnostic_report_0000644000004100000410000000134615144416405034234 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A partial result for a document diagnostic report. # class DocumentDiagnosticReportPartialResult def initialize(related_documents:) @attributes = {} @attributes[:relatedDocuments] = related_documents @attributes.freeze end # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] def related_documents attributes.fetch(:relatedDocuments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_params.rb0000644000004100000410000000247215144416405033261 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentLinkParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The document to provide document links for. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/color_presentation_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/color_presentation_params.r0000644000004100000410000000335415144416405034175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ColorPresentationParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, color:, range:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:color] = color @attributes[:range] = range @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The color information to request presentations for. # # @return [Color] def color attributes.fetch(:color) end # # The range where the color would be inserted. Serves as a context. # # @return [Range] def range attributes.fetch(:range) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_options.rb0000644000004100000410000000113315144416405033654 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ImplementationOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_delta_parti0000644000004100000410000000103415144416405034210 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensDeltaPartialResult def initialize(edits:) @attributes = {} @attributes[:edits] = edits @attributes.freeze end # @return [SemanticTokensEdit[]] def edits attributes.fetch(:edits) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_delta.rb0000644000004100000410000000146015144416405033416 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensDelta def initialize(result_id: nil, edits:) @attributes = {} @attributes[:resultId] = result_id if result_id @attributes[:edits] = edits @attributes.freeze end # @return [string] def result_id attributes.fetch(:resultId) end # # The semantic token edits to transform a previous result into a new # result. # # @return [SemanticTokensEdit[]] def edits attributes.fetch(:edits) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight.rb0000644000004100000410000000202615144416405032723 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A document highlight is a range inside a text document which deserves # special attention. Usually a document highlight is visualized by changing # the background color of its range. # class DocumentHighlight def initialize(range:, kind: nil) @attributes = {} @attributes[:range] = range @attributes[:kind] = kind if kind @attributes.freeze end # # The range this highlight applies to. # # @return [Range] def range attributes.fetch(:range) end # # The highlight kind, default is DocumentHighlightKind.Text. # # @return [DocumentHighlightKind] def kind attributes.fetch(:kind) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_event.rb0000644000004100000410000000141315144416405031175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # An event describing a file change. # class FileEvent def initialize(uri:, type:) @attributes = {} @attributes[:uri] = uri @attributes[:type] = type @attributes.freeze end # # The file's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The change type. # # @return [number] def type attributes.fetch(:type) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_params.rb0000644000004100000410000000300015144416405032542 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DefinitionParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_supertypes_p0000644000004100000410000000231315144416405034314 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchySupertypesParams def initialize(work_done_token: nil, partial_result_token: nil, item:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:item] = item @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # @return [TypeHierarchyItem] def item attributes.fetch(:item) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_client_capa0000644000004100000410000000130115144416405034131 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ExecuteCommandClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Execute command supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_options.rb0000644000004100000410000000160615144416405032103 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RenameOptions def initialize(work_done_progress: nil, prepare_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:prepareProvider] = prepare_provider if prepare_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Renames should be checked and tested before being executed. # # @return [boolean] def prepare_provider attributes.fetch(:prepareProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_options.rb0000644000004100000410000000166315144416405034222 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceSymbolOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The server provides support to resolve additional # information for a workspace symbol. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_server_cancellat0000644000004100000410000000122715144416405034176 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Cancellation data returned from a diagnostic request. # class DiagnosticServerCancellationData def initialize(retrigger_request:) @attributes = {} @attributes[:retriggerRequest] = retrigger_request @attributes.freeze end # @return [boolean] def retrigger_request attributes.fetch(:retriggerRequest) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_workspace_client0000644000004100000410000000214515144416405034230 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client workspace capabilities specific to inlay hints. # class InlayHintWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # Whether the client implementation supports a refresh request sent from # the server to the client. # # Note that this event is global and will force the client to refresh all # inlay hints currently shown. It should be used with absolute care and # is useful for situation where a server for example detects a project wide # change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_params.rb0000644000004100000410000000346015144416405032673 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Params for the CodeActionRequest # class CodeActionParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, range:, context:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes[:context] = context @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The document in which the command was invoked. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The range for which the command was invoked. # # @return [Range] def range attributes.fetch(:range) end # # Context carrying additional information. # # @return [CodeActionContext] def context attributes.fetch(:context) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_incoming_cal0000644000004100000410000000163115144416405034130 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyIncomingCall def initialize(from:, from_ranges:) @attributes = {} @attributes[:from] = from @attributes[:fromRanges] = from_ranges @attributes.freeze end # # The item that makes the call. # # @return [CallHierarchyItem] def from attributes.fetch(:from) end # # The ranges at which the calls appear. This is relative to the caller # denoted by [`this.from`](#CallHierarchyIncomingCall.from). # # @return [Range[]] def from_ranges attributes.fetch(:fromRanges) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_message_params.rb0000644000004100000410000000141715144416405033110 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ShowMessageParams def initialize(type:, message:) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes.freeze end # # The message type. See {@link MessageType}. # # @return [MessageType] def type attributes.fetch(:type) end # # The actual message. # # @return [string] def message attributes.fetch(:message) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_options0000644000004100000410000000113715144416405034301 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentFormattingOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_registration_opti0000644000004100000410000000174715144416405034250 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ReferenceRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_p0000644000004100000410000000247715144416405034231 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentRangeFormattingParams def initialize(work_done_token: nil, text_document:, range:, options:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes[:options] = options @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The document to format. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The range to format # # @return [Range] def range attributes.fetch(:range) end # # The format options # # @return [FormattingOptions] def options attributes.fetch(:options) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/location_link.rb0000644000004100000410000000372515144416405031712 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LocationLink def initialize(origin_selection_range: nil, target_uri:, target_range:, target_selection_range:) @attributes = {} @attributes[:originSelectionRange] = origin_selection_range if origin_selection_range @attributes[:targetUri] = target_uri @attributes[:targetRange] = target_range @attributes[:targetSelectionRange] = target_selection_range @attributes.freeze end # # Span of the origin of this link. # # Used as the underlined span for mouse interaction. Defaults to the word # range at the mouse position. # # @return [Range] def origin_selection_range attributes.fetch(:originSelectionRange) end # # The target resource identifier of this link. # # @return [string] def target_uri attributes.fetch(:targetUri) end # # The full target range of this link. If the target for example is a symbol # then target range is the range enclosing this symbol not including # leading/trailing whitespace but everything else like comments. This # information is typically used to highlight the range in the editor. # # @return [Range] def target_range attributes.fetch(:targetRange) end # # The range that should be selected and revealed when this link is being # followed, e.g the name of a function. Must be contained by the # `targetRange`. See also `DocumentSymbol#range` # # @return [Range] def target_selection_range attributes.fetch(:targetSelectionRange) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_registration_0000644000004100000410000000242115144416405034237 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentLinkRegistrationOptions def initialize(document_selector:, work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Document links have a resolve provider as well. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_regi0000644000004100000410000000264515144416405034243 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Registration options specific to a notebook. # class NotebookDocumentSyncRegistrationOptions def initialize(notebook_selector:, save: nil, id: nil) @attributes = {} @attributes[:notebookSelector] = notebook_selector @attributes[:save] = save if save @attributes[:id] = id if id @attributes.freeze end # # The notebooks to be synced # # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] def notebook_selector attributes.fetch(:notebookSelector) end # # Whether save notification should be forwarded to # the server. Will only be honored if mode === `notebook`. # # @return [boolean] def save attributes.fetch(:save) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016700000000000011607 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_workspace_clie0000644000004100000410000000215215144416405034200 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client workspace capabilities specific to inline values. # class InlineValueWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # Whether the client implementation supports a refresh request sent from # the server to the client. # # Note that this event is global and will force the client to refresh all # inline values currently shown. It should be used with absolute care and # is useful for situation where a server for example detect a project wide # change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_context.rb0000644000004100000410000000336215144416405033075 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Contains additional diagnostic information about the context in which # a code action is run. # class CodeActionContext def initialize(diagnostics:, only: nil, trigger_kind: nil) @attributes = {} @attributes[:diagnostics] = diagnostics @attributes[:only] = only if only @attributes[:triggerKind] = trigger_kind if trigger_kind @attributes.freeze end # # An array of diagnostics known on the client side overlapping the range # provided to the `textDocument/codeAction` request. They are provided so # that the server knows which errors are currently presented to the user # for the given range. There is no guarantee that these accurately reflect # the error state of the resource. The primary parameter # to compute code actions is the provided range. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) end # # Requested kind of actions to return. # # Actions not of this kind are filtered out by the client before being # shown. So servers can omit computing them. # # @return [string[]] def only attributes.fetch(:only) end # # The reason why code actions were requested. # # @return [CodeActionTriggerKind] def trigger_kind attributes.fetch(:triggerKind) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/prepare_rename_params.rb0000644000004100000410000000220415144416405033404 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class PrepareRenameParams def initialize(text_document:, position:, work_done_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_registra0000644000004100000410000000175715144416405034233 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentHighlightRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/symbol_information.rb0000644000004100000410000000501415144416405032770 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents information about programming constructs like variables, classes, # interfaces etc. # class SymbolInformation def initialize(name:, kind:, tags: nil, deprecated: nil, location:, container_name: nil) @attributes = {} @attributes[:name] = name @attributes[:kind] = kind @attributes[:tags] = tags if tags @attributes[:deprecated] = deprecated if deprecated @attributes[:location] = location @attributes[:containerName] = container_name if container_name @attributes.freeze end # # The name of this symbol. # # @return [string] def name attributes.fetch(:name) end # # The kind of this symbol. # # @return [SymbolKind] def kind attributes.fetch(:kind) end # # Tags for this symbol. # # @return [1[]] def tags attributes.fetch(:tags) end # # Indicates if this symbol is deprecated. # # @return [boolean] def deprecated attributes.fetch(:deprecated) end # # The location of this symbol. The location's range is used by a tool # to reveal the location in the editor. If the symbol is selected in the # tool the range's start information is used to position the cursor. So # the range usually spans more then the actual symbol's name and does # normally include things like visibility modifiers. # # The range doesn't have to denote a node range in the sense of an abstract # syntax tree. It can therefore not be used to re-construct a hierarchy of # the symbols. # # @return [Location] def location attributes.fetch(:location) end # # The name of the symbol containing this symbol. This information is for # user interface purposes (e.g. to render a qualifier in the user interface # if necessary). It can't be used to re-infer a hierarchy for the document # symbols. # # @return [string] def container_name attributes.fetch(:containerName) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link_options.rb0000644000004100000410000000160015144416405033461 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentLinkOptions def initialize(work_done_progress: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # Document links have a resolve provider as well. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_evaluatable_ex0000644000004100000410000000240015144416405034163 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Provide an inline value through an expression evaluation. # # If only a range is specified, the expression will be extracted from the # underlying document. # # An optional expression can be used to override the extracted expression. # class InlineValueEvaluatableExpression def initialize(range:, expression: nil) @attributes = {} @attributes[:range] = range @attributes[:expression] = expression if expression @attributes.freeze end # # The document range for which the inline value applies. # The range is used to extract the evaluatable expression from the # underlying document. # # @return [Range] def range attributes.fetch(:range) end # # If specified the expression overrides the extracted expression. # # @return [string] def expression attributes.fetch(:expression) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/server_capabilities.rb0000644000004100000410000003273715144416405033111 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ServerCapabilities def initialize(position_encoding: nil, text_document_sync: nil, notebook_document_sync: nil, completion_provider: nil, hover_provider: nil, signature_help_provider: nil, declaration_provider: nil, definition_provider: nil, type_definition_provider: nil, implementation_provider: nil, references_provider: nil, document_highlight_provider: nil, document_symbol_provider: nil, code_action_provider: nil, code_lens_provider: nil, document_link_provider: nil, color_provider: nil, document_formatting_provider: nil, document_range_formatting_provider: nil, document_on_type_formatting_provider: nil, rename_provider: nil, folding_range_provider: nil, execute_command_provider: nil, selection_range_provider: nil, linked_editing_range_provider: nil, call_hierarchy_provider: nil, semantic_tokens_provider: nil, moniker_provider: nil, type_hierarchy_provider: nil, inline_value_provider: nil, inlay_hint_provider: nil, diagnostic_provider: nil, workspace_symbol_provider: nil, workspace: nil, experimental: nil) @attributes = {} @attributes[:positionEncoding] = position_encoding if position_encoding @attributes[:textDocumentSync] = text_document_sync if text_document_sync @attributes[:notebookDocumentSync] = notebook_document_sync if notebook_document_sync @attributes[:completionProvider] = completion_provider if completion_provider @attributes[:hoverProvider] = hover_provider if hover_provider @attributes[:signatureHelpProvider] = signature_help_provider if signature_help_provider @attributes[:declarationProvider] = declaration_provider if declaration_provider @attributes[:definitionProvider] = definition_provider if definition_provider @attributes[:typeDefinitionProvider] = type_definition_provider if type_definition_provider @attributes[:implementationProvider] = implementation_provider if implementation_provider @attributes[:referencesProvider] = references_provider if references_provider @attributes[:documentHighlightProvider] = document_highlight_provider if document_highlight_provider @attributes[:documentSymbolProvider] = document_symbol_provider if document_symbol_provider @attributes[:codeActionProvider] = code_action_provider if code_action_provider @attributes[:codeLensProvider] = code_lens_provider if code_lens_provider @attributes[:documentLinkProvider] = document_link_provider if document_link_provider @attributes[:colorProvider] = color_provider if color_provider @attributes[:documentFormattingProvider] = document_formatting_provider if document_formatting_provider @attributes[:documentRangeFormattingProvider] = document_range_formatting_provider if document_range_formatting_provider @attributes[:documentOnTypeFormattingProvider] = document_on_type_formatting_provider if document_on_type_formatting_provider @attributes[:renameProvider] = rename_provider if rename_provider @attributes[:foldingRangeProvider] = folding_range_provider if folding_range_provider @attributes[:executeCommandProvider] = execute_command_provider if execute_command_provider @attributes[:selectionRangeProvider] = selection_range_provider if selection_range_provider @attributes[:linkedEditingRangeProvider] = linked_editing_range_provider if linked_editing_range_provider @attributes[:callHierarchyProvider] = call_hierarchy_provider if call_hierarchy_provider @attributes[:semanticTokensProvider] = semantic_tokens_provider if semantic_tokens_provider @attributes[:monikerProvider] = moniker_provider if moniker_provider @attributes[:typeHierarchyProvider] = type_hierarchy_provider if type_hierarchy_provider @attributes[:inlineValueProvider] = inline_value_provider if inline_value_provider @attributes[:inlayHintProvider] = inlay_hint_provider if inlay_hint_provider @attributes[:diagnosticProvider] = diagnostic_provider if diagnostic_provider @attributes[:workspaceSymbolProvider] = workspace_symbol_provider if workspace_symbol_provider @attributes[:workspace] = workspace if workspace @attributes[:experimental] = experimental if experimental @attributes.freeze end # # The position encoding the server picked from the encodings offered # by the client via the client capability `general.positionEncodings`. # # If the client didn't provide any position encodings the only valid # value that a server can return is 'utf-16'. # # If omitted it defaults to 'utf-16'. # # @return [string] def position_encoding attributes.fetch(:positionEncoding) end # # Defines how text documents are synced. Is either a detailed structure # defining each notification or for backwards compatibility the # TextDocumentSyncKind number. If omitted it defaults to # `TextDocumentSyncKind.None`. # # @return [TextDocumentSyncOptions | TextDocumentSyncKind] def text_document_sync attributes.fetch(:textDocumentSync) end # # Defines how notebook documents are synced. # # @return [NotebookDocumentSyncOptions | NotebookDocumentSyncRegistrationOptions] def notebook_document_sync attributes.fetch(:notebookDocumentSync) end # # The server provides completion support. # # @return [CompletionOptions] def completion_provider attributes.fetch(:completionProvider) end # # The server provides hover support. # # @return [boolean | HoverOptions] def hover_provider attributes.fetch(:hoverProvider) end # # The server provides signature help support. # # @return [SignatureHelpOptions] def signature_help_provider attributes.fetch(:signatureHelpProvider) end # # The server provides go to declaration support. # # @return [boolean | DeclarationOptions | DeclarationRegistrationOptions] def declaration_provider attributes.fetch(:declarationProvider) end # # The server provides goto definition support. # # @return [boolean | DefinitionOptions] def definition_provider attributes.fetch(:definitionProvider) end # # The server provides goto type definition support. # # @return [boolean | TypeDefinitionOptions | TypeDefinitionRegistrationOptions] def type_definition_provider attributes.fetch(:typeDefinitionProvider) end # # The server provides goto implementation support. # # @return [boolean | ImplementationOptions | ImplementationRegistrationOptions] def implementation_provider attributes.fetch(:implementationProvider) end # # The server provides find references support. # # @return [boolean | ReferenceOptions] def references_provider attributes.fetch(:referencesProvider) end # # The server provides document highlight support. # # @return [boolean | DocumentHighlightOptions] def document_highlight_provider attributes.fetch(:documentHighlightProvider) end # # The server provides document symbol support. # # @return [boolean | DocumentSymbolOptions] def document_symbol_provider attributes.fetch(:documentSymbolProvider) end # # The server provides code actions. The `CodeActionOptions` return type is # only valid if the client signals code action literal support via the # property `textDocument.codeAction.codeActionLiteralSupport`. # # @return [boolean | CodeActionOptions] def code_action_provider attributes.fetch(:codeActionProvider) end # # The server provides code lens. # # @return [CodeLensOptions] def code_lens_provider attributes.fetch(:codeLensProvider) end # # The server provides document link support. # # @return [DocumentLinkOptions] def document_link_provider attributes.fetch(:documentLinkProvider) end # # The server provides color provider support. # # @return [boolean | DocumentColorOptions | DocumentColorRegistrationOptions] def color_provider attributes.fetch(:colorProvider) end # # The server provides document formatting. # # @return [boolean | DocumentFormattingOptions] def document_formatting_provider attributes.fetch(:documentFormattingProvider) end # # The server provides document range formatting. # # @return [boolean | DocumentRangeFormattingOptions] def document_range_formatting_provider attributes.fetch(:documentRangeFormattingProvider) end # # The server provides document formatting on typing. # # @return [DocumentOnTypeFormattingOptions] def document_on_type_formatting_provider attributes.fetch(:documentOnTypeFormattingProvider) end # # The server provides rename support. RenameOptions may only be # specified if the client states that it supports # `prepareSupport` in its initial `initialize` request. # # @return [boolean | RenameOptions] def rename_provider attributes.fetch(:renameProvider) end # # The server provides folding provider support. # # @return [boolean | FoldingRangeOptions | FoldingRangeRegistrationOptions] def folding_range_provider attributes.fetch(:foldingRangeProvider) end # # The server provides execute command support. # # @return [ExecuteCommandOptions] def execute_command_provider attributes.fetch(:executeCommandProvider) end # # The server provides selection range support. # # @return [boolean | SelectionRangeOptions | SelectionRangeRegistrationOptions] def selection_range_provider attributes.fetch(:selectionRangeProvider) end # # The server provides linked editing range support. # # @return [boolean | LinkedEditingRangeOptions | LinkedEditingRangeRegistrationOptions] def linked_editing_range_provider attributes.fetch(:linkedEditingRangeProvider) end # # The server provides call hierarchy support. # # @return [boolean | CallHierarchyOptions | CallHierarchyRegistrationOptions] def call_hierarchy_provider attributes.fetch(:callHierarchyProvider) end # # The server provides semantic tokens support. # # @return [SemanticTokensOptions | SemanticTokensRegistrationOptions] def semantic_tokens_provider attributes.fetch(:semanticTokensProvider) end # # Whether server provides moniker support. # # @return [boolean | MonikerOptions | MonikerRegistrationOptions] def moniker_provider attributes.fetch(:monikerProvider) end # # The server provides type hierarchy support. # # @return [boolean | TypeHierarchyOptions | TypeHierarchyRegistrationOptions] def type_hierarchy_provider attributes.fetch(:typeHierarchyProvider) end # # The server provides inline values. # # @return [boolean | InlineValueOptions | InlineValueRegistrationOptions] def inline_value_provider attributes.fetch(:inlineValueProvider) end # # The server provides inlay hints. # # @return [boolean | InlayHintOptions | InlayHintRegistrationOptions] def inlay_hint_provider attributes.fetch(:inlayHintProvider) end # # The server has support for pull model diagnostics. # # @return [DiagnosticOptions | DiagnosticRegistrationOptions] def diagnostic_provider attributes.fetch(:diagnosticProvider) end # # The server provides workspace symbol support. # # @return [boolean | WorkspaceSymbolOptions] def workspace_symbol_provider attributes.fetch(:workspaceSymbolProvider) end # # Workspace specific server capabilities # # @return [{ workspaceFolders?: WorkspaceFoldersServerCapabilities; fileOperations?: { didCreate?: FileOperationRegistrationOptions; ... 4 more ...; willDelete?: FileOperationRegistrationOptions; }; }] def workspace attributes.fetch(:workspace) end # # Experimental server capabilities. # # @return [LSPAny] def experimental attributes.fetch(:experimental) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016700000000000011607 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_clie0000644000004100000410000000250615144416405034225 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Notebook specific client capabilities. # class NotebookDocumentSyncClientCapabilities def initialize(dynamic_registration: nil, execution_summary_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:executionSummarySupport] = execution_summary_support if execution_summary_support @attributes.freeze end # # Whether implementation supports dynamic registration. If this is # set to `true` the client supports the new # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports sending execution summary data per cell. # # @return [boolean] def execution_summary_support attributes.fetch(:executionSummarySupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_client_capabiliti0000644000004100000410000000127515144416405034133 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeLensClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether code lens supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_params.rb0000644000004100000410000000302115144416405033426 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SignatureHelpParams def initialize(text_document:, position:, work_done_token: nil, context: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:context] = context if context @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The signature help context. This is only available if the client # specifies to send this using the client capability # `textDocument.signatureHelp.contextSupport === true` # # @return [SignatureHelpContext] def context attributes.fetch(:context) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_registration_0000644000004100000410000000241315144416405034203 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class FoldingRangeRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_range_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_range_param0000644000004100000410000000300115144416405034170 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensRangeParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, range:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The range the semantic tokens are requested for. # # @return [Range] def range attributes.fetch(:range) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_params.rb0000644000004100000410000000244315144416405033627 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentSymbolParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range.rb0000644000004100000410000000567515144416405031671 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents a folding range. To be valid, start and end line must be bigger # than zero and smaller than the number of lines in the document. Clients # are free to ignore invalid ranges. # class FoldingRange def initialize(start_line:, start_character: nil, end_line:, end_character: nil, kind: nil, collapsed_text: nil) @attributes = {} @attributes[:startLine] = start_line @attributes[:startCharacter] = start_character if start_character @attributes[:endLine] = end_line @attributes[:endCharacter] = end_character if end_character @attributes[:kind] = kind if kind @attributes[:collapsedText] = collapsed_text if collapsed_text @attributes.freeze end # # The zero-based start line of the range to fold. The folded area starts # after the line's last character. To be valid, the end must be zero or # larger and smaller than the number of lines in the document. # # @return [number] def start_line attributes.fetch(:startLine) end # # The zero-based character offset from where the folded range starts. If # not defined, defaults to the length of the start line. # # @return [number] def start_character attributes.fetch(:startCharacter) end # # The zero-based end line of the range to fold. The folded area ends with # the line's last character. To be valid, the end must be zero or larger # and smaller than the number of lines in the document. # # @return [number] def end_line attributes.fetch(:endLine) end # # The zero-based character offset before the folded range ends. If not # defined, defaults to the length of the end line. # # @return [number] def end_character attributes.fetch(:endCharacter) end # # Describes the kind of the folding range such as `comment` or `region`. # The kind is used to categorize folding ranges and used by commands like # 'Fold all comments'. See [FoldingRangeKind](#FoldingRangeKind) for an # enumeration of standardized kinds. # # @return [string] def kind attributes.fetch(:kind) end # # The text that the client should show when the specified range is # collapsed. If not defined or not supported by the client, a default # will be chosen by the client. # # @return [string] def collapsed_text attributes.fetch(:collapsedText) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document.rb0000644000004100000410000000306715144416405032602 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A notebook document. # class NotebookDocument def initialize(uri:, notebook_type:, version:, metadata: nil, cells:) @attributes = {} @attributes[:uri] = uri @attributes[:notebookType] = notebook_type @attributes[:version] = version @attributes[:metadata] = metadata if metadata @attributes[:cells] = cells @attributes.freeze end # # The notebook document's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The type of the notebook. # # @return [string] def notebook_type attributes.fetch(:notebookType) end # # The version number of this document (it will increase after each # change, including undo/redo). # # @return [number] def version attributes.fetch(:version) end # # Additional metadata stored with the notebook # document. # # @return [LSPObject] def metadata attributes.fetch(:metadata) end # # The cells of a notebook. # # @return [NotebookCell[]] def cells attributes.fetch(:cells) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_item.rb0000644000004100000410000000240215144416405032754 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentItem def initialize(uri:, language_id:, version:, text:) @attributes = {} @attributes[:uri] = uri @attributes[:languageId] = language_id @attributes[:version] = version @attributes[:text] = text @attributes.freeze end # # The text document's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The text document's language identifier. # # @return [string] def language_id attributes.fetch(:languageId) end # # The version number of this document (it will increase after each # change, including undo/redo). # # @return [number] def version attributes.fetch(:version) end # # The content of the opened text document. # # @return [string] def text attributes.fetch(:text) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notification_message.rb0000644000004100000410000000164715144416405033260 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class NotificationMessage def initialize(jsonrpc:, method:, params: nil) @attributes = {} @attributes[:jsonrpc] = jsonrpc @attributes[:method] = method @attributes[:params] = params if params @attributes.freeze end # @return [string] def jsonrpc attributes.fetch(:jsonrpc) end # # The method to be invoked. # # @return [string] def method attributes.fetch(:method) end # # The notification's params. # # @return [any] def params attributes.fetch(:params) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_options.0000644000004100000410000000113515144416405034220 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/insert_replace_edit.rb0000644000004100000410000000211215144416405033056 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A special text edit to provide an insert and a replace operation. # class InsertReplaceEdit def initialize(new_text:, insert:, replace:) @attributes = {} @attributes[:newText] = new_text @attributes[:insert] = insert @attributes[:replace] = replace @attributes.freeze end # # The string to be inserted. # # @return [string] def new_text attributes.fetch(:newText) end # # The range if the insert is requested # # @return [Range] def insert attributes.fetch(:insert) end # # The range if the replace is requested. # # @return [Range] def replace attributes.fetch(:replace) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_registration_opt0000644000004100000410000000662715144416405034314 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CompletionRegistrationOptions def initialize(document_selector:, work_done_progress: nil, trigger_characters: nil, all_commit_characters: nil, resolve_provider: nil, completion_item: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:allCommitCharacters] = all_commit_characters if all_commit_characters @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes[:completionItem] = completion_item if completion_item @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The additional characters, beyond the defaults provided by the client (typically # [a-zA-Z]), that should automatically trigger a completion request. For example # `.` in JavaScript represents the beginning of an object property or method and is # thus a good candidate for triggering a completion request. # # Most tools trigger a completion request automatically without explicitly # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they # do so when the user starts to type an identifier. For example if the user # types `c` in a JavaScript file code complete will automatically pop up # present `console` besides others as a completion item. Characters that # make up identifiers don't need to be listed here. # # @return [string[]] def trigger_characters attributes.fetch(:triggerCharacters) end # # The list of all possible characters that commit a completion. This field # can be used if clients don't support individual commit characters per # completion item. See client capability # `completion.completionItem.commitCharactersSupport`. # # If a server provides both `allCommitCharacters` and commit characters on # an individual completion item the ones on the completion item win. # # @return [string[]] def all_commit_characters attributes.fetch(:allCommitCharacters) end # # The server provides support to resolve additional # information for a completion item. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end # # The server supports the following `CompletionItem` specific # capabilities. # # @return [{ labelDetailsSupport?: boolean; }] def completion_item attributes.fetch(:completionItem) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_options.rb0000644000004100000410000000337315144416405032763 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Diagnostic options. # class DiagnosticOptions def initialize(work_done_progress: nil, identifier: nil, inter_file_dependencies:, workspace_diagnostics:) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:identifier] = identifier if identifier @attributes[:interFileDependencies] = inter_file_dependencies @attributes[:workspaceDiagnostics] = workspace_diagnostics @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # An optional identifier under which the diagnostics are # managed by the client. # # @return [string] def identifier attributes.fetch(:identifier) end # # Whether the language has inter file dependencies meaning that # editing code in one file can result in a different diagnostic # set in another file. Inter file dependencies are common for # most programming languages and typically uncommon for linters. # # @return [boolean] def inter_file_dependencies attributes.fetch(:interFileDependencies) end # # The server provides support for workspace diagnostics as well. # # @return [boolean] def workspace_diagnostics attributes.fetch(:workspaceDiagnostics) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_registratio0000644000004100000410000000241515144416405034233 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SelectionRangeRegistrationOptions def initialize(work_done_progress: nil, document_selector:, id: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:documentSelector] = document_selector @attributes[:id] = id if id @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_close_text_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_close_text_document_par0000644000004100000410000000117215144416405034206 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidCloseTextDocumentParams def initialize(text_document:) @attributes = {} @attributes[:textDocument] = text_document @attributes.freeze end # # The document that was closed. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_options.rb0000644000004100000410000000112615144416405032567 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ReferenceOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_r0000644000004100000410000000176515144416405034232 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentRangeFormattingRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_item_label_details.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_item_label_detai0000644000004100000410000000233315144416405034151 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Additional details for a completion item label. # class CompletionItemLabelDetails def initialize(detail: nil, description: nil) @attributes = {} @attributes[:detail] = detail if detail @attributes[:description] = description if description @attributes.freeze end # # An optional string which is rendered less prominently directly after # {@link CompletionItem.label label}, without any spacing. Should be # used for function signatures or type annotations. # # @return [string] def detail attributes.fetch(:detail) end # # An optional string which is rendered less prominently after # {@link CompletionItemLabelDetails.detail}. Should be used for fully qualified # names or file path. # # @return [string] def description attributes.fetch(:description) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/initialize_result.rb0000644000004100000410000000161515144416405032620 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class InitializeResult def initialize(capabilities:, server_info: nil) @attributes = {} @attributes[:capabilities] = capabilities @attributes[:serverInfo] = server_info if server_info @attributes.freeze end # # The capabilities the language server provides. # # @return [ServerCapabilities] def capabilities attributes.fetch(:capabilities) end # # Information about the server. # # @return [{ name: string; version?: string; }] def server_info attributes.fetch(:serverInfo) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_client_cap0000644000004100000410000000345415144416405034226 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceSymbolClientCapabilities def initialize(dynamic_registration: nil, symbol_kind: nil, tag_support: nil, resolve_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:symbolKind] = symbol_kind if symbol_kind @attributes[:tagSupport] = tag_support if tag_support @attributes[:resolveSupport] = resolve_support if resolve_support @attributes.freeze end # # Symbol request supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Specific capabilities for the `SymbolKind` in the `workspace/symbol` # request. # # @return [{ valueSet?: SymbolKind[]; }] def symbol_kind attributes.fetch(:symbolKind) end # # The client supports tags on `SymbolInformation` and `WorkspaceSymbol`. # Clients supporting tags have to handle unknown tags gracefully. # # @return [{ valueSet: 1[]; }] def tag_support attributes.fetch(:tagSupport) end # # The client support partial workspace symbols. The client will send the # request `workspaceSymbol/resolve` to the server to resolve additional # properties. # # @return [{ properties: string[]; }] def resolve_support attributes.fetch(:resolveSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/will_save_text_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/will_save_text_document_par0000644000004100000410000000166015144416405034250 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The parameters send in a will save text document notification. # class WillSaveTextDocumentParams def initialize(text_document:, reason:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:reason] = reason @attributes.freeze end # # The document that will be saved. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The 'TextDocumentSaveReason'. # # @return [TextDocumentSaveReason] def reason attributes.fetch(:reason) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_change_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_change_regist0000644000004100000410000000226215144416405034222 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Describe options to be used when registering for text document change events. # class TextDocumentChangeRegistrationOptions def initialize(document_selector:, sync_kind:) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:syncKind] = sync_kind @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # How documents are synced to the server. See TextDocumentSyncKind.Full # and TextDocumentSyncKind.Incremental. # # @return [TextDocumentSyncKind] def sync_kind attributes.fetch(:syncKind) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_registration0000644000004100000410000000241515144416405034275 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ImplementationRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_ranges.rb0000644000004100000410000000216215144416405033367 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LinkedEditingRanges def initialize(ranges:, word_pattern: nil) @attributes = {} @attributes[:ranges] = ranges @attributes[:wordPattern] = word_pattern if word_pattern @attributes.freeze end # # A list of ranges that can be renamed together. The ranges must have # identical length and contain identical text content. The ranges cannot # overlap. # # @return [Range[]] def ranges attributes.fetch(:ranges) end # # An optional word pattern (regular expression) that describes valid # contents for the given ranges. If no pattern is provided, the client # configuration's word pattern will be used. # # @return [string] def word_pattern attributes.fetch(:wordPattern) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/publish_diagnostics_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/publish_diagnostics_params.0000644000004100000410000000214215144416405034131 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class PublishDiagnosticsParams def initialize(uri:, version: nil, diagnostics:) @attributes = {} @attributes[:uri] = uri @attributes[:version] = version if version @attributes[:diagnostics] = diagnostics @attributes.freeze end # # The URI for which diagnostic information is reported. # # @return [string] def uri attributes.fetch(:uri) end # # Optional the version number of the document the diagnostics are published # for. # # @return [number] def version attributes.fetch(:version) end # # An array of diagnostic information items. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_message_request_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_message_request_params0000644000004100000410000000201015144416405034244 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ShowMessageRequestParams def initialize(type:, message:, actions: nil) @attributes = {} @attributes[:type] = type @attributes[:message] = message @attributes[:actions] = actions if actions @attributes.freeze end # # The message type. See {@link MessageType} # # @return [MessageType] def type attributes.fetch(:type) end # # The actual message # # @return [string] def message attributes.fetch(:message) end # # The message action items to present. # # @return [MessageActionItem[]] def actions attributes.fetch(:actions) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_variable_lookup.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_variable_looku0000644000004100000410000000277115144416405034213 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Provide inline value through a variable lookup. # # If only a range is specified, the variable name will be extracted from # the underlying document. # # An optional variable name can be used to override the extracted name. # class InlineValueVariableLookup def initialize(range:, variable_name: nil, case_sensitive_lookup:) @attributes = {} @attributes[:range] = range @attributes[:variableName] = variable_name if variable_name @attributes[:caseSensitiveLookup] = case_sensitive_lookup @attributes.freeze end # # The document range for which the inline value applies. # The range is used to extract the variable name from the underlying # document. # # @return [Range] def range attributes.fetch(:range) end # # If specified the name of the variable to look up. # # @return [string] def variable_name attributes.fetch(:variableName) end # # How to perform the lookup. # # @return [boolean] def case_sensitive_lookup attributes.fetch(:caseSensitiveLookup) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017300000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_unchanged_documen0000644000004100000410000000313415144416405034201 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # An unchanged document diagnostic report for a workspace diagnostic result. # class WorkspaceUnchangedDocumentDiagnosticReport def initialize(kind:, result_id:, uri:, version:) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id @attributes[:uri] = uri @attributes[:version] = version @attributes.freeze end # # A document diagnostic report indicating # no changes to the last result. A server can # only return `unchanged` if result ids are # provided. # # @return [any] def kind attributes.fetch(:kind) end # # A result id which will be sent on the next # diagnostic request for the same document. # # @return [string] def result_id attributes.fetch(:resultId) end # # The URI for which diagnostic information is reported. # # @return [string] def uri attributes.fetch(:uri) end # # The version number for which the diagnostics are reported. # If the document is not marked as open `null` can be provided. # # @return [number] def version attributes.fetch(:version) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_document_result.rb0000644000004100000410000000123215144416405033330 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The result of an show document request. # class ShowDocumentResult def initialize(success:) @attributes = {} @attributes[:success] = success @attributes.freeze end # # A boolean indicating if the show was successful. # # @return [boolean] def success attributes.fetch(:success) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_create_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_create_p0000644000004100000410000000113015144416405034224 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressCreateParams def initialize(token:) @attributes = {} @attributes[:token] = token @attributes.freeze end # # The token to be used to report progress. # # @return [ProgressToken] def token attributes.fetch(:token) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range.rb0000644000004100000410000000157215144416405032224 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SelectionRange def initialize(range:, parent: nil) @attributes = {} @attributes[:range] = range @attributes[:parent] = parent if parent @attributes.freeze end # # The [range](#Range) of this selection range. # # @return [Range] def range attributes.fetch(:range) end # # The parent selection range containing this range. Therefore # `parent.range` must contain `this.range`. # # @return [SelectionRange] def parent attributes.fetch(:parent) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/full_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/full_document_diagnostic_re0000644000004100000410000000222615144416405034210 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A diagnostic report with a full set of problems. # class FullDocumentDiagnosticReport def initialize(kind:, result_id: nil, items:) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id if result_id @attributes[:items] = items @attributes.freeze end # # A full document diagnostic report. # # @return [any] def kind attributes.fetch(:kind) end # # An optional result id. If provided it will # be sent on the next diagnostic request for the # same document. # # @return [string] def result_id attributes.fetch(:resultId) end # # The actual items. # # @return [Diagnostic[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_client_capabilit0000644000004100000410000000175015144416405034155 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DefinitionClientCapabilities def initialize(dynamic_registration: nil, link_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:linkSupport] = link_support if link_support @attributes.freeze end # # Whether definition supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports additional metadata in the form of definition links. # # @return [boolean] def link_support attributes.fetch(:linkSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_color_registration0000644000004100000410000000241415144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentColorRegistrationOptions def initialize(document_selector:, id: nil, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:id] = id if id @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_workspace_client_0000644000004100000410000000202415144416405034160 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeLensWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # Whether the client implementation supports a refresh request sent from the # server to the client. # # Note that this event is global and will force the client to refresh all # code lenses currently shown. It should be used with absolute care and is # useful for situation where a server for example detect a project wide # change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_params.rb0000644000004100000410000000300415144416405033443 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ImplementationParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_registration_o0000644000004100000410000000254315144416405034242 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inline value options used during static or dynamic registration. # class InlineValueRegistrationOptions def initialize(work_done_progress: nil, document_selector:, id: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:documentSelector] = document_selector @attributes[:id] = id if id @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/markup_content.rb0000644000004100000410000000313515144416405032111 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A `MarkupContent` literal represents a string value which content is # interpreted base on its kind flag. Currently the protocol supports # `plaintext` and `markdown` as markup kinds. # # If the kind is `markdown` then the value can contain fenced code blocks like # in GitHub issues. # # Here is an example how such a string can be constructed using # JavaScript / TypeScript: # ```typescript # let markdown: MarkdownContent = { # kind: MarkupKind.Markdown, # value: [ # '# Header', # 'Some text', # '```typescript', # 'someCode();', # '```' # ].join('\n') # }; # ``` # # *Please Note* that clients might sanitize the return markdown. A client could # decide to remove HTML from the markdown to avoid script execution. # class MarkupContent def initialize(kind:, value:) @attributes = {} @attributes[:kind] = kind @attributes[:value] = value @attributes.freeze end # # The type of the Markup # # @return [MarkupKind] def kind attributes.fetch(:kind) end # # The content itself # # @return [string] def value attributes.fetch(:value) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens_params.rb0000644000004100000410000000246115144416405032357 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeLensParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The document to request code lens for. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting0000644000004100000410000000176315144416405034270 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentOnTypeFormattingOptions def initialize(first_trigger_character:, more_trigger_character: nil) @attributes = {} @attributes[:firstTriggerCharacter] = first_trigger_character @attributes[:moreTriggerCharacter] = more_trigger_character if more_trigger_character @attributes.freeze end # # A character on which formatting should be triggered, like `{`. # # @return [string] def first_trigger_character attributes.fetch(:firstTriggerCharacter) end # # More trigger characters. # # @return [string[]] def more_trigger_character attributes.fetch(:moreTriggerCharacter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_registration_0000644000004100000410000000151315144416405034267 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # General text document registration options. # class TextDocumentRegistrationOptions def initialize(document_selector:) @attributes = {} @attributes[:documentSelector] = document_selector @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_sync_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_sync_options.0000644000004100000410000000433715144416405034232 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentSyncOptions def initialize(open_close: nil, change: nil, will_save: nil, will_save_wait_until: nil, save: nil) @attributes = {} @attributes[:openClose] = open_close if open_close @attributes[:change] = change if change @attributes[:willSave] = will_save if will_save @attributes[:willSaveWaitUntil] = will_save_wait_until if will_save_wait_until @attributes[:save] = save if save @attributes.freeze end # # Open and close notifications are sent to the server. If omitted open # close notifications should not be sent. # Open and close notifications are sent to the server. If omitted open # close notification should not be sent. # # @return [boolean] def open_close attributes.fetch(:openClose) end # # Change notifications are sent to the server. See # TextDocumentSyncKind.None, TextDocumentSyncKind.Full and # TextDocumentSyncKind.Incremental. If omitted it defaults to # TextDocumentSyncKind.None. # # @return [TextDocumentSyncKind] def change attributes.fetch(:change) end # # If present will save notifications are sent to the server. If omitted # the notification should not be sent. # # @return [boolean] def will_save attributes.fetch(:willSave) end # # If present will save wait until requests are sent to the server. If # omitted the request should not be sent. # # @return [boolean] def will_save_wait_until attributes.fetch(:willSaveWaitUntil) end # # If present save notifications are sent to the server. If omitted the # notification should not be sent. # # @return [boolean | SaveOptions] def save attributes.fetch(:save) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/implementation_client_capab0000644000004100000410000000223315144416405034165 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ImplementationClientCapabilities def initialize(dynamic_registration: nil, link_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:linkSupport] = link_support if link_support @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new `ImplementationRegistrationOptions` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports additional metadata in the form of definition links. # # @return [boolean] def link_support attributes.fetch(:linkSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_edit.rb0000644000004100000410000000153415144416405032750 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentEdit def initialize(text_document:, edits:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:edits] = edits @attributes.freeze end # # The text document to change. # # @return [OptionalVersionedTextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The edits to be applied. # # @return [(TextEdit | AnnotatedTextEdit)[]] def edits attributes.fetch(:edits) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_edit.rb0000644000004100000410000000163015144416405031047 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextEdit def initialize(range:, new_text:) @attributes = {} @attributes[:range] = range @attributes[:newText] = new_text @attributes.freeze end # # The range of the text document to be manipulated. To insert # text into a document create a range where start === end. # # @return [Range] def range attributes.fetch(:range) end # # The string to be inserted. For delete operations use an # empty string. # # @return [string] def new_text attributes.fetch(:newText) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_result.rb0000644000004100000410000000077115144416405031604 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class HoverResult def initialize(value:) @attributes = {} @attributes[:value] = value @attributes.freeze end # @return [string] def value attributes.fetch(:value) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017200000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_workspace_c0000644000004100000410000000203615144416405034223 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # Whether the client implementation supports a refresh request sent from # the server to the client. # # Note that this event is global and will force the client to refresh all # semantic tokens currently shown. It should be used with absolute care # and is useful for situation where a server for example detect a project # wide change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_range_formatting_o0000644000004100000410000000114415144416405034216 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentRangeFormattingOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/location.rb0000644000004100000410000000116615144416405030672 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Location def initialize(uri:, range:) @attributes = {} @attributes[:uri] = uri @attributes[:range] = range @attributes.freeze end # @return [string] def uri attributes.fetch(:uri) end # @return [Range] def range attributes.fetch(:range) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/cancel_params.rb0000644000004100000410000000105415144416405031646 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CancelParams def initialize(id:) @attributes = {} @attributes[:id] = id @attributes.freeze end # # The request id to cancel. # # @return [string | number] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_label_part.rb0000644000004100000410000000445115144416405033405 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # An inlay hint label part allows for interactive and composite labels # of inlay hints. # class InlayHintLabelPart def initialize(value:, tooltip: nil, location: nil, command: nil) @attributes = {} @attributes[:value] = value @attributes[:tooltip] = tooltip if tooltip @attributes[:location] = location if location @attributes[:command] = command if command @attributes.freeze end # # The value of this label part. # # @return [string] def value attributes.fetch(:value) end # # The tooltip text when you hover over this label part. Depending on # the client capability `inlayHint.resolveSupport` clients might resolve # this property late using the resolve request. # # @return [string | MarkupContent] def tooltip attributes.fetch(:tooltip) end # # An optional source code location that represents this # label part. # # The editor will use this location for the hover and for code navigation # features: This part will become a clickable link that resolves to the # definition of the symbol at the given location (not necessarily the # location itself), it shows the hover that shows at the given location, # and it shows a context menu with further code navigation commands. # # Depending on the client capability `inlayHint.resolveSupport` clients # might resolve this property late using the resolve request. # # @return [Location] def location attributes.fetch(:location) end # # An optional command for this label part. # # Depending on the client capability `inlayHint.resolveSupport` clients # might resolve this property late using the resolve request. # # @return [Command] def command attributes.fetch(:command) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_file.rb0000644000004100000410000000273015144416405031326 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Rename file operation # class RenameFile def initialize(kind:, old_uri:, new_uri:, options: nil, annotation_id: nil) @attributes = {} @attributes[:kind] = kind @attributes[:oldUri] = old_uri @attributes[:newUri] = new_uri @attributes[:options] = options if options @attributes[:annotationId] = annotation_id if annotation_id @attributes.freeze end # # A rename # # @return ["rename"] def kind attributes.fetch(:kind) end # # The old (existing) location. # # @return [string] def old_uri attributes.fetch(:oldUri) end # # The new location. # # @return [string] def new_uri attributes.fetch(:newUri) end # # Rename options. # # @return [RenameFileOptions] def options attributes.fetch(:options) end # # An optional annotation identifier describing the operation. # # @return [string] def annotation_id attributes.fetch(:annotationId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/client_capabilities.rb0000644000004100000410000000464115144416405033052 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ClientCapabilities def initialize(workspace: nil, text_document: nil, notebook_document: nil, window: nil, general: nil, experimental: nil) @attributes = {} @attributes[:workspace] = workspace if workspace @attributes[:textDocument] = text_document if text_document @attributes[:notebookDocument] = notebook_document if notebook_document @attributes[:window] = window if window @attributes[:general] = general if general @attributes[:experimental] = experimental if experimental @attributes.freeze end # # Workspace specific client capabilities. # # @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; ... 10 more ...; diagnostics?: DiagnosticWorkspaceClientCapabilities; }] def workspace attributes.fetch(:workspace) end # # Text document specific client capabilities. # # @return [TextDocumentClientCapabilities] def text_document attributes.fetch(:textDocument) end # # Capabilities specific to the notebook document support. # # @return [NotebookDocumentClientCapabilities] def notebook_document attributes.fetch(:notebookDocument) end # # Window specific client capabilities. # # @return [{ workDoneProgress?: boolean; showMessage?: ShowMessageRequestClientCapabilities; showDocument?: ShowDocumentClientCapabilities; }] def window attributes.fetch(:window) end # # General client capabilities. # # @return [{ staleRequestSupport?: { cancel: boolean; retryOnContentModified: string[]; }; regularExpressions?: RegularExpressionsClientCapabilities; markdown?: any; positionEncodings?: string[]; }] def general attributes.fetch(:general) end # # Experimental client capabilities. # # @return [LSPAny] def experimental attributes.fetch(:experimental) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_document_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_document_client_capabi0000644000004100000410000000130015144416405034161 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client capabilities for the show document request. # class ShowDocumentClientCapabilities def initialize(support:) @attributes = {} @attributes[:support] = support @attributes.freeze end # # The client has support for the show document # request. # # @return [boolean] def support attributes.fetch(:support) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/range.rb0000644000004100000410000000140715144416405030154 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Range def initialize(start:, end:) @attributes = {} @attributes[:start] = start @attributes[:end] = binding.local_variable_get(:end) @attributes.freeze end # # The range's start position. # # @return [Position] def start attributes.fetch(:start) end # # The range's end position. # # @return [Position] def end attributes.fetch(:end) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/apply_workspace_edit_result.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/apply_workspace_edit_result0000644000004100000410000000300115144416405034254 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ApplyWorkspaceEditResult def initialize(applied:, failure_reason: nil, failed_change: nil) @attributes = {} @attributes[:applied] = applied @attributes[:failureReason] = failure_reason if failure_reason @attributes[:failedChange] = failed_change if failed_change @attributes.freeze end # # Indicates whether the edit was applied or not. # # @return [boolean] def applied attributes.fetch(:applied) end # # An optional textual description for why the edit was not applied. # This may be used by the server for diagnostic logging or to provide # a suitable error for a request that triggered the edit. # # @return [string] def failure_reason attributes.fetch(:failureReason) end # # Depending on the client's failure handling strategy `failedChange` # might contain the index of the change that failed. This property is # only available if the client signals a `failureHandling` strategy # in its client capabilities. # # @return [number] def failed_change attributes.fetch(:failedChange) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_cancel_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_cancel_p0000644000004100000410000000113015144416405034206 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressCancelParams def initialize(token:) @attributes = {} @attributes[:token] = token @attributes.freeze end # # The token to be used to report progress. # # @return [ProgressToken] def token attributes.fetch(:token) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_client_capabil0000644000004100000410000000146115144416405034141 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client capabilities specific to inline values. # class InlineValueClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether implementation supports dynamic registration for inline # value providers. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol.rb0000644000004100000410000000440015144416405032437 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A special workspace symbol that supports locations without a range # class WorkspaceSymbol def initialize(name:, kind:, tags: nil, container_name: nil, location:, data: nil) @attributes = {} @attributes[:name] = name @attributes[:kind] = kind @attributes[:tags] = tags if tags @attributes[:containerName] = container_name if container_name @attributes[:location] = location @attributes[:data] = data if data @attributes.freeze end # # The name of this symbol. # # @return [string] def name attributes.fetch(:name) end # # The kind of this symbol. # # @return [SymbolKind] def kind attributes.fetch(:kind) end # # Tags for this completion item. # # @return [1[]] def tags attributes.fetch(:tags) end # # The name of the symbol containing this symbol. This information is for # user interface purposes (e.g. to render a qualifier in the user interface # if necessary). It can't be used to re-infer a hierarchy for the document # symbols. # # @return [string] def container_name attributes.fetch(:containerName) end # # The location of this symbol. Whether a server is allowed to # return a location without a range depends on the client # capability `workspace.symbol.resolveSupport`. # # See also `SymbolInformation.location`. # # @return [Location | { uri: string; }] def location attributes.fetch(:location) end # # A data entry field that is preserved on a workspace symbol between a # workspace symbol request and a workspace symbol resolve request. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_option0000644000004100000410000000113715144416405034173 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LinkedEditingRangeOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_identifier.rb0000644000004100000410000000106115144416405034140 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentIdentifier def initialize(uri:) @attributes = {} @attributes[:uri] = uri @attributes.freeze end # # The text document's URI. # # @return [string] def uri attributes.fetch(:uri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/unregistration_params.rb0000644000004100000410000000110315144416405033471 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class UnregistrationParams def initialize(unregisterations:) @attributes = {} @attributes[:unregisterations] = unregisterations @attributes.freeze end # @return [Unregistration[]] def unregisterations attributes.fetch(:unregisterations) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_client_capa0000644000004100000410000001044715144416405034172 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensClientCapabilities def initialize(dynamic_registration: nil, requests:, token_types:, token_modifiers:, formats:, overlapping_token_support: nil, multiline_token_support: nil, server_cancel_support: nil, augments_syntax_tokens: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:requests] = requests @attributes[:tokenTypes] = token_types @attributes[:tokenModifiers] = token_modifiers @attributes[:formats] = formats @attributes[:overlappingTokenSupport] = overlapping_token_support if overlapping_token_support @attributes[:multilineTokenSupport] = multiline_token_support if multiline_token_support @attributes[:serverCancelSupport] = server_cancel_support if server_cancel_support @attributes[:augmentsSyntaxTokens] = augments_syntax_tokens if augments_syntax_tokens @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new `(TextDocumentRegistrationOptions & # StaticRegistrationOptions)` return value for the corresponding server # capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Which requests the client supports and might send to the server # depending on the server's capability. Please note that clients might not # show semantic tokens or degrade some of the user experience if a range # or full request is advertised by the client but not provided by the # server. If for example the client capability `requests.full` and # `request.range` are both set to true but the server only provides a # range provider the client might not render a minimap correctly or might # even decide to not show any semantic tokens at all. # # @return [{ range?: boolean | {}; full?: boolean | { delta?: boolean; }; }] def requests attributes.fetch(:requests) end # # The token types that the client supports. # # @return [string[]] def token_types attributes.fetch(:tokenTypes) end # # The token modifiers that the client supports. # # @return [string[]] def token_modifiers attributes.fetch(:tokenModifiers) end # # The formats the clients supports. # # @return ["relative"[]] def formats attributes.fetch(:formats) end # # Whether the client supports tokens that can overlap each other. # # @return [boolean] def overlapping_token_support attributes.fetch(:overlappingTokenSupport) end # # Whether the client supports tokens that can span multiple lines. # # @return [boolean] def multiline_token_support attributes.fetch(:multilineTokenSupport) end # # Whether the client allows the server to actively cancel a # semantic token request, e.g. supports returning # ErrorCodes.ServerCancelled. If a server does the client # needs to retrigger the request. # # @return [boolean] def server_cancel_support attributes.fetch(:serverCancelSupport) end # # Whether the client uses semantic tokens to augment existing # syntax tokens. If set to `true` client side created syntax # tokens and semantic tokens are both used for colorization. If # set to `false` the client only uses the returned semantic tokens # for colorization. # # If the value is `undefined` then the client behavior is not # specified. # # @return [boolean] def augments_syntax_tokens attributes.fetch(:augmentsSyntaxTokens) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_edit.rb0000644000004100000410000000176115144416405033256 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensEdit def initialize(start:, delete_count:, data: nil) @attributes = {} @attributes[:start] = start @attributes[:deleteCount] = delete_count @attributes[:data] = data if data @attributes.freeze end # # The start offset of the edit. # # @return [number] def start attributes.fetch(:start) end # # The count of elements to remove. # # @return [number] def delete_count attributes.fetch(:deleteCount) end # # The elements to insert. # # @return [number[]] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_content_change_event.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_content_chang0000644000004100000410000000247715144416405034242 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # An event describing a change to a text document. If only a text is provided # it is considered to be the full content of the document. # class TextDocumentContentChangeEvent def initialize(range: nil, range_length: nil, text:) @attributes = {} @attributes[:range] = range if range @attributes[:rangeLength] = range_length if range_length @attributes[:text] = text @attributes.freeze end # # The range of the document that changed. # # @return [Range, nil] def range attributes.fetch(:range) end # # The optional length of the range that got replaced. # # @return [number, nil] def range_length attributes.fetch(:rangeLength) end # # The new text for the provided range. # # --- OR --- # # The new text of the whole document. # # @return [string] def text attributes.fetch(:text) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_client_capabi0000644000004100000410000002334315144416405034200 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Text document specific client capabilities. # class TextDocumentClientCapabilities def initialize(synchronization: nil, completion: nil, hover: nil, signature_help: nil, declaration: nil, definition: nil, type_definition: nil, implementation: nil, references: nil, document_highlight: nil, document_symbol: nil, code_action: nil, code_lens: nil, document_link: nil, color_provider: nil, formatting: nil, range_formatting: nil, on_type_formatting: nil, rename: nil, publish_diagnostics: nil, folding_range: nil, selection_range: nil, linked_editing_range: nil, call_hierarchy: nil, semantic_tokens: nil, moniker: nil, type_hierarchy: nil, inline_value: nil, inlay_hint: nil, diagnostic: nil) @attributes = {} @attributes[:synchronization] = synchronization if synchronization @attributes[:completion] = completion if completion @attributes[:hover] = hover if hover @attributes[:signatureHelp] = signature_help if signature_help @attributes[:declaration] = declaration if declaration @attributes[:definition] = definition if definition @attributes[:typeDefinition] = type_definition if type_definition @attributes[:implementation] = implementation if implementation @attributes[:references] = references if references @attributes[:documentHighlight] = document_highlight if document_highlight @attributes[:documentSymbol] = document_symbol if document_symbol @attributes[:codeAction] = code_action if code_action @attributes[:codeLens] = code_lens if code_lens @attributes[:documentLink] = document_link if document_link @attributes[:colorProvider] = color_provider if color_provider @attributes[:formatting] = formatting if formatting @attributes[:rangeFormatting] = range_formatting if range_formatting @attributes[:onTypeFormatting] = on_type_formatting if on_type_formatting @attributes[:rename] = rename if rename @attributes[:publishDiagnostics] = publish_diagnostics if publish_diagnostics @attributes[:foldingRange] = folding_range if folding_range @attributes[:selectionRange] = selection_range if selection_range @attributes[:linkedEditingRange] = linked_editing_range if linked_editing_range @attributes[:callHierarchy] = call_hierarchy if call_hierarchy @attributes[:semanticTokens] = semantic_tokens if semantic_tokens @attributes[:moniker] = moniker if moniker @attributes[:typeHierarchy] = type_hierarchy if type_hierarchy @attributes[:inlineValue] = inline_value if inline_value @attributes[:inlayHint] = inlay_hint if inlay_hint @attributes[:diagnostic] = diagnostic if diagnostic @attributes.freeze end # @return [TextDocumentSyncClientCapabilities] def synchronization attributes.fetch(:synchronization) end # # Capabilities specific to the `textDocument/completion` request. # # @return [CompletionClientCapabilities] def completion attributes.fetch(:completion) end # # Capabilities specific to the `textDocument/hover` request. # # @return [HoverClientCapabilities] def hover attributes.fetch(:hover) end # # Capabilities specific to the `textDocument/signatureHelp` request. # # @return [SignatureHelpClientCapabilities] def signature_help attributes.fetch(:signatureHelp) end # # Capabilities specific to the `textDocument/declaration` request. # # @return [DeclarationClientCapabilities] def declaration attributes.fetch(:declaration) end # # Capabilities specific to the `textDocument/definition` request. # # @return [DefinitionClientCapabilities] def definition attributes.fetch(:definition) end # # Capabilities specific to the `textDocument/typeDefinition` request. # # @return [TypeDefinitionClientCapabilities] def type_definition attributes.fetch(:typeDefinition) end # # Capabilities specific to the `textDocument/implementation` request. # # @return [ImplementationClientCapabilities] def implementation attributes.fetch(:implementation) end # # Capabilities specific to the `textDocument/references` request. # # @return [ReferenceClientCapabilities] def references attributes.fetch(:references) end # # Capabilities specific to the `textDocument/documentHighlight` request. # # @return [DocumentHighlightClientCapabilities] def document_highlight attributes.fetch(:documentHighlight) end # # Capabilities specific to the `textDocument/documentSymbol` request. # # @return [DocumentSymbolClientCapabilities] def document_symbol attributes.fetch(:documentSymbol) end # # Capabilities specific to the `textDocument/codeAction` request. # # @return [CodeActionClientCapabilities] def code_action attributes.fetch(:codeAction) end # # Capabilities specific to the `textDocument/codeLens` request. # # @return [CodeLensClientCapabilities] def code_lens attributes.fetch(:codeLens) end # # Capabilities specific to the `textDocument/documentLink` request. # # @return [DocumentLinkClientCapabilities] def document_link attributes.fetch(:documentLink) end # # Capabilities specific to the `textDocument/documentColor` and the # `textDocument/colorPresentation` request. # # @return [DocumentColorClientCapabilities] def color_provider attributes.fetch(:colorProvider) end # # Capabilities specific to the `textDocument/formatting` request. # # @return [DocumentFormattingClientCapabilities] def formatting attributes.fetch(:formatting) end # # Capabilities specific to the `textDocument/rangeFormatting` request. # # @return [DocumentRangeFormattingClientCapabilities] def range_formatting attributes.fetch(:rangeFormatting) end # # request. # Capabilities specific to the `textDocument/onTypeFormatting` request. # # @return [DocumentOnTypeFormattingClientCapabilities] def on_type_formatting attributes.fetch(:onTypeFormatting) end # # Capabilities specific to the `textDocument/rename` request. # # @return [RenameClientCapabilities] def rename attributes.fetch(:rename) end # # Capabilities specific to the `textDocument/publishDiagnostics` # notification. # # @return [PublishDiagnosticsClientCapabilities] def publish_diagnostics attributes.fetch(:publishDiagnostics) end # # Capabilities specific to the `textDocument/foldingRange` request. # # @return [FoldingRangeClientCapabilities] def folding_range attributes.fetch(:foldingRange) end # # Capabilities specific to the `textDocument/selectionRange` request. # # @return [SelectionRangeClientCapabilities] def selection_range attributes.fetch(:selectionRange) end # # Capabilities specific to the `textDocument/linkedEditingRange` request. # # @return [LinkedEditingRangeClientCapabilities] def linked_editing_range attributes.fetch(:linkedEditingRange) end # # Capabilities specific to the various call hierarchy requests. # # @return [CallHierarchyClientCapabilities] def call_hierarchy attributes.fetch(:callHierarchy) end # # Capabilities specific to the various semantic token requests. # # @return [SemanticTokensClientCapabilities] def semantic_tokens attributes.fetch(:semanticTokens) end # # Capabilities specific to the `textDocument/moniker` request. # # @return [MonikerClientCapabilities] def moniker attributes.fetch(:moniker) end # # Capabilities specific to the various type hierarchy requests. # # @return [TypeHierarchyClientCapabilities] def type_hierarchy attributes.fetch(:typeHierarchy) end # # Capabilities specific to the `textDocument/inlineValue` request. # # @return [InlineValueClientCapabilities] def inline_value attributes.fetch(:inlineValue) end # # Capabilities specific to the `textDocument/inlayHint` request. # # @return [InlayHintClientCapabilities] def inlay_hint attributes.fetch(:inlayHint) end # # Capabilities specific to the diagnostic pull model. # # @return [DiagnosticClientCapabilities] def diagnostic attributes.fetch(:diagnostic) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_client_capab0000644000004100000410000000163015144416405034111 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new `(TextDocumentRegistrationOptions & # StaticRegistrationOptions)` return value for the corresponding server # capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/command.rb0000644000004100000410000000205415144416405030475 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Command def initialize(title:, command:, arguments: nil) @attributes = {} @attributes[:title] = title @attributes[:command] = command @attributes[:arguments] = arguments if arguments @attributes.freeze end # # Title of the command, like `save`. # # @return [string] def title attributes.fetch(:title) end # # The identifier of the actual command handler. # # @return [string] def command attributes.fetch(:command) end # # Arguments that the command handler should be # invoked with. # # @return [LSPAny[]] def arguments attributes.fetch(:arguments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_system_watcher.rb0000644000004100000410000000173715144416405033126 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class FileSystemWatcher def initialize(glob_pattern:, kind: nil) @attributes = {} @attributes[:globPattern] = glob_pattern @attributes[:kind] = kind if kind @attributes.freeze end # # The glob pattern to watch. See {@link GlobPattern glob pattern} # for more detail. # # @return [GlobPattern] def glob_pattern attributes.fetch(:globPattern) end # # The kind of events of interest. If omitted it defaults # to WatchKind.Create | WatchKind.Change | WatchKind.Delete # which is 7. # # @return [number] def kind attributes.fetch(:kind) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_options.rb0000644000004100000410000000113215144416405033577 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_folder.rb0000644000004100000410000000151515144416405032411 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceFolder def initialize(uri:, name:) @attributes = {} @attributes[:uri] = uri @attributes[:name] = name @attributes.freeze end # # The associated URI for this workspace folder. # # @return [string] def uri attributes.fetch(:uri) end # # The name of the workspace folder. Used to refer to this # workspace folder in the user interface. # # @return [string] def name attributes.fetch(:name) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_end.rb0000644000004100000410000000144215144416405033620 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressEnd def initialize(kind:, message: nil) @attributes = {} @attributes[:kind] = kind @attributes[:message] = message if message @attributes.freeze end # @return ["end"] def kind attributes.fetch(:kind) end # # Optional, a final message indicating to for example indicate the outcome # of the operation. # # @return [string] def message attributes.fetch(:message) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/delete_files_params.rb0000644000004100000410000000131715144416405033047 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The parameters sent in notifications/requests for user-initiated deletes # of files. # class DeleteFilesParams def initialize(files:) @attributes = {} @attributes[:files] = files @attributes.freeze end # # An array of all files/folders deleted in this operation. # # @return [FileDelete[]] def files attributes.fetch(:files) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/publish_diagnostics_client_0000644000004100000410000000424115144416405034207 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class PublishDiagnosticsClientCapabilities def initialize(related_information: nil, tag_support: nil, version_support: nil, code_description_support: nil, data_support: nil) @attributes = {} @attributes[:relatedInformation] = related_information if related_information @attributes[:tagSupport] = tag_support if tag_support @attributes[:versionSupport] = version_support if version_support @attributes[:codeDescriptionSupport] = code_description_support if code_description_support @attributes[:dataSupport] = data_support if data_support @attributes.freeze end # # Whether the clients accepts diagnostics with related information. # # @return [boolean] def related_information attributes.fetch(:relatedInformation) end # # Client supports the tag property to provide meta data about a diagnostic. # Clients supporting tags have to handle unknown tags gracefully. # # @return [{ valueSet: DiagnosticTag[]; }] def tag_support attributes.fetch(:tagSupport) end # # Whether the client interprets the version property of the # `textDocument/publishDiagnostics` notification's parameter. # # @return [boolean] def version_support attributes.fetch(:versionSupport) end # # Client supports a codeDescription property # # @return [boolean] def code_description_support attributes.fetch(:codeDescriptionSupport) end # # Whether code action supports the `data` property which is # preserved between a `textDocument/publishDiagnostics` and # `textDocument/codeAction` request. # # @return [boolean] def data_support attributes.fetch(:dataSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_params.r0000644000004100000410000000126415144416405034175 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressParams def initialize(work_done_token: nil) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_identifier.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_identifie0000644000004100000410000000121215144416405034206 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A literal to identify a notebook document in the client. # class NotebookDocumentIdentifier def initialize(uri:) @attributes = {} @attributes[:uri] = uri @attributes.freeze end # # The notebook document's URI. # # @return [string] def uri attributes.fetch(:uri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_options.rb0000644000004100000410000000113315144416405034020 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeDefinitionOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016600000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_full_document_dia0000644000004100000410000000327615144416405034217 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A full document diagnostic report for a workspace diagnostic result. # class WorkspaceFullDocumentDiagnosticReport def initialize(kind:, result_id: nil, items:, uri:, version:) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id if result_id @attributes[:items] = items @attributes[:uri] = uri @attributes[:version] = version @attributes.freeze end # # A full document diagnostic report. # # @return [any] def kind attributes.fetch(:kind) end # # An optional result id. If provided it will # be sent on the next diagnostic request for the # same document. # # @return [string] def result_id attributes.fetch(:resultId) end # # The actual items. # # @return [Diagnostic[]] def items attributes.fetch(:items) end # # The URI for which diagnostic information is reported. # # @return [string] def uri attributes.fetch(:uri) end # # The version number for which the diagnostics are reported. # If the document is not marked as open `null` can be provided. # # @return [number] def version attributes.fetch(:version) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_cell_text_document0000644000004100000410000000237215144416405034241 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A notebook cell text document filter denotes a cell text # document by different properties. # class NotebookCellTextDocumentFilter def initialize(notebook:, language: nil) @attributes = {} @attributes[:notebook] = notebook @attributes[:language] = language if language @attributes.freeze end # # A filter that matches against the notebook # containing the notebook cell. If a string # value is provided it matches against the # notebook type. '*' matches every notebook. # # @return [string | NotebookDocumentFilter] def notebook attributes.fetch(:notebook) end # # A language id like `python`. # # Will be matched against the language id of the # notebook cell document. '*' matches every language. # # @return [string] def language attributes.fetch(:language) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/versioned_notebook_document0000644000004100000410000000154515144416405034255 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A versioned notebook document identifier. # class VersionedNotebookDocumentIdentifier def initialize(version:, uri:) @attributes = {} @attributes[:version] = version @attributes[:uri] = uri @attributes.freeze end # # The version number of this notebook document. # # @return [number] def version attributes.fetch(:version) end # # The notebook document's URI. # # @return [string] def uri attributes.fetch(:uri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017500000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting0000644000004100000410000000260415144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentOnTypeFormattingRegistrationOptions def initialize(document_selector:, first_trigger_character:, more_trigger_character: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:firstTriggerCharacter] = first_trigger_character @attributes[:moreTriggerCharacter] = more_trigger_character if more_trigger_character @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # A character on which formatting should be triggered, like `{`. # # @return [string] def first_trigger_character attributes.fetch(:firstTriggerCharacter) end # # More trigger characters. # # @return [string[]] def more_trigger_character attributes.fetch(:moreTriggerCharacter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint.rb0000644000004100000410000000706115144416405031220 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inlay hint information. # class InlayHint def initialize(position:, label:, kind: nil, text_edits: nil, tooltip: nil, padding_left: nil, padding_right: nil, data: nil) @attributes = {} @attributes[:position] = position @attributes[:label] = label @attributes[:kind] = kind if kind @attributes[:textEdits] = text_edits if text_edits @attributes[:tooltip] = tooltip if tooltip @attributes[:paddingLeft] = padding_left if padding_left @attributes[:paddingRight] = padding_right if padding_right @attributes[:data] = data if data @attributes.freeze end # # The position of this hint. # # @return [Position] def position attributes.fetch(:position) end # # The label of this hint. A human readable string or an array of # InlayHintLabelPart label parts. # # *Note* that neither the string nor the label part can be empty. # # @return [string | InlayHintLabelPart[]] def label attributes.fetch(:label) end # # The kind of this hint. Can be omitted in which case the client # should fall back to a reasonable default. # # @return [InlayHintKind] def kind attributes.fetch(:kind) end # # Optional text edits that are performed when accepting this inlay hint. # # *Note* that edits are expected to change the document so that the inlay # hint (or its nearest variant) is now part of the document and the inlay # hint itself is now obsolete. # # Depending on the client capability `inlayHint.resolveSupport` clients # might resolve this property late using the resolve request. # # @return [TextEdit[]] def text_edits attributes.fetch(:textEdits) end # # The tooltip text when you hover over this item. # # Depending on the client capability `inlayHint.resolveSupport` clients # might resolve this property late using the resolve request. # # @return [string | MarkupContent] def tooltip attributes.fetch(:tooltip) end # # Render padding before the hint. # # Note: Padding should use the editor's background color, not the # background color of the hint itself. That means padding can be used # to visually align/separate an inlay hint. # # @return [boolean] def padding_left attributes.fetch(:paddingLeft) end # # Render padding after the hint. # # Note: Padding should use the editor's background color, not the # background color of the hint itself. That means padding can be used # to visually align/separate an inlay hint. # # @return [boolean] def padding_right attributes.fetch(:paddingRight) end # # A data entry field that is preserved on an inlay hint between # a `textDocument/inlayHint` and a `inlayHint/resolve` request. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/create_file_options.rb0000644000004100000410000000167215144416405033101 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Options to create a file. # class CreateFileOptions def initialize(overwrite: nil, ignore_if_exists: nil) @attributes = {} @attributes[:overwrite] = overwrite if overwrite @attributes[:ignoreIfExists] = ignore_if_exists if ignore_if_exists @attributes.freeze end # # Overwrite existing file. Overwrite wins over `ignoreIfExists` # # @return [boolean] def overwrite attributes.fetch(:overwrite) end # # Ignore if exists. # # @return [boolean] def ignore_if_exists attributes.fetch(:ignoreIfExists) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/previous_result_id.rb0000644000004100000410000000154415144416405033010 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A previous result id in a workspace pull request. # class PreviousResultId def initialize(uri:, value:) @attributes = {} @attributes[:uri] = uri @attributes[:value] = value @attributes.freeze end # # The URI for which the client knows a # result id. # # @return [string] def uri attributes.fetch(:uri) end # # The value of the previous result id. # # @return [string] def value attributes.fetch(:value) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_registration0000644000004100000410000000241415144416405034220 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_params.0000644000004100000410000000217715144416405034154 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentFormattingParams def initialize(work_done_token: nil, text_document:, options:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:textDocument] = text_document @attributes[:options] = options @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The document to format. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The format options. # # @return [FormattingOptions] def options attributes.fetch(:options) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_item.rb0000644000004100000410000002303515144416405032250 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CompletionItem def initialize(label:, label_details: nil, kind: nil, tags: nil, detail: nil, documentation: nil, deprecated: nil, preselect: nil, sort_text: nil, filter_text: nil, insert_text: nil, insert_text_format: nil, insert_text_mode: nil, text_edit: nil, text_edit_text: nil, additional_text_edits: nil, commit_characters: nil, command: nil, data: nil) @attributes = {} @attributes[:label] = label @attributes[:labelDetails] = label_details if label_details @attributes[:kind] = kind if kind @attributes[:tags] = tags if tags @attributes[:detail] = detail if detail @attributes[:documentation] = documentation if documentation @attributes[:deprecated] = deprecated if deprecated @attributes[:preselect] = preselect if preselect @attributes[:sortText] = sort_text if sort_text @attributes[:filterText] = filter_text if filter_text @attributes[:insertText] = insert_text if insert_text @attributes[:insertTextFormat] = insert_text_format if insert_text_format @attributes[:insertTextMode] = insert_text_mode if insert_text_mode @attributes[:textEdit] = text_edit if text_edit @attributes[:textEditText] = text_edit_text if text_edit_text @attributes[:additionalTextEdits] = additional_text_edits if additional_text_edits @attributes[:commitCharacters] = commit_characters if commit_characters @attributes[:command] = command if command @attributes[:data] = data if data @attributes.freeze end # # The label of this completion item. # # The label property is also by default the text that # is inserted when selecting this completion. # # If label details are provided the label itself should # be an unqualified name of the completion item. # # @return [string] def label attributes.fetch(:label) end # # Additional details for the label # # @return [CompletionItemLabelDetails] def label_details attributes.fetch(:labelDetails) end # # The kind of this completion item. Based of the kind # an icon is chosen by the editor. The standardized set # of available values is defined in `CompletionItemKind`. # # @return [CompletionItemKind] def kind attributes.fetch(:kind) end # # Tags for this completion item. # # @return [1[]] def tags attributes.fetch(:tags) end # # A human-readable string with additional information # about this item, like type or symbol information. # # @return [string] def detail attributes.fetch(:detail) end # # A human-readable string that represents a doc-comment. # # @return [string | MarkupContent] def documentation attributes.fetch(:documentation) end # # Indicates if this item is deprecated. # # @return [boolean] def deprecated attributes.fetch(:deprecated) end # # Select this item when showing. # # *Note* that only one completion item can be selected and that the # tool / client decides which item that is. The rule is that the *first* # item of those that match best is selected. # # @return [boolean] def preselect attributes.fetch(:preselect) end # # A string that should be used when comparing this item # with other items. When omitted the label is used # as the sort text for this item. # # @return [string] def sort_text attributes.fetch(:sortText) end # # A string that should be used when filtering a set of # completion items. When omitted the label is used as the # filter text for this item. # # @return [string] def filter_text attributes.fetch(:filterText) end # # A string that should be inserted into a document when selecting # this completion. When omitted the label is used as the insert text # for this item. # # The `insertText` is subject to interpretation by the client side. # Some tools might not take the string literally. For example # VS Code when code complete is requested in this example # `con` and a completion item with an `insertText` of # `console` is provided it will only insert `sole`. Therefore it is # recommended to use `textEdit` instead since it avoids additional client # side interpretation. # # @return [string] def insert_text attributes.fetch(:insertText) end # # The format of the insert text. The format applies to both the # `insertText` property and the `newText` property of a provided # `textEdit`. If omitted defaults to `InsertTextFormat.PlainText`. # # Please note that the insertTextFormat doesn't apply to # `additionalTextEdits`. # # @return [InsertTextFormat] def insert_text_format attributes.fetch(:insertTextFormat) end # # How whitespace and indentation is handled during completion # item insertion. If not provided the client's default value depends on # the `textDocument.completion.insertTextMode` client capability. # # @return [InsertTextMode] def insert_text_mode attributes.fetch(:insertTextMode) end # # An edit which is applied to a document when selecting this completion. # When an edit is provided the value of `insertText` is ignored. # # *Note:* The range of the edit must be a single line range and it must # contain the position at which completion has been requested. # # Most editors support two different operations when accepting a completion # item. One is to insert a completion text and the other is to replace an # existing text with a completion text. Since this can usually not be # predetermined by a server it can report both ranges. Clients need to # signal support for `InsertReplaceEdit`s via the # `textDocument.completion.completionItem.insertReplaceSupport` client # capability property. # # *Note 1:* The text edit's range as well as both ranges from an insert # replace edit must be a [single line] and they must contain the position # at which completion has been requested. # *Note 2:* If an `InsertReplaceEdit` is returned the edit's insert range # must be a prefix of the edit's replace range, that means it must be # contained and starting at the same position. # # @return [TextEdit | InsertReplaceEdit] def text_edit attributes.fetch(:textEdit) end # # The edit text used if the completion item is part of a CompletionList and # CompletionList defines an item default for the text edit range. # # Clients will only honor this property if they opt into completion list # item defaults using the capability `completionList.itemDefaults`. # # If not provided and a list's default range is provided the label # property is used as a text. # # @return [string] def text_edit_text attributes.fetch(:textEditText) end # # An optional array of additional text edits that are applied when # selecting this completion. Edits must not overlap (including the same # insert position) with the main edit nor with themselves. # # Additional text edits should be used to change text unrelated to the # current cursor position (for example adding an import statement at the # top of the file if the completion item will insert an unqualified type). # # @return [TextEdit[]] def additional_text_edits attributes.fetch(:additionalTextEdits) end # # An optional set of characters that when pressed while this completion is # active will accept it first and then type that character. *Note* that all # commit characters should have `length=1` and that superfluous characters # will be ignored. # # @return [string[]] def commit_characters attributes.fetch(:commitCharacters) end # # An optional command that is executed *after* inserting this completion. # *Note* that additional modifications to the current document should be # described with the additionalTextEdits-property. # # @return [Command] def command attributes.fetch(:command) end # # A data entry field that is preserved on a completion item between # a completion and a completion resolve request. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_options.rb0000644000004100000410000000256215144416405033105 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeActionOptions def initialize(work_done_progress: nil, code_action_kinds: nil, resolve_provider: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:codeActionKinds] = code_action_kinds if code_action_kinds @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # CodeActionKinds that this server may return. # # The list of kinds may be generic, such as `CodeActionKind.Refactor`, # or the server may list out every specific kind they provide. # # @return [string[]] def code_action_kinds attributes.fetch(:codeActionKinds) end # # The server provides support to resolve additional # information for a code action. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/definition_options.rb0000644000004100000410000000112715144416405032762 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DefinitionOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_item.rb0000644000004100000410000000476115144416405033123 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchyItem def initialize(name:, kind:, tags: nil, detail: nil, uri:, range:, selection_range:, data: nil) @attributes = {} @attributes[:name] = name @attributes[:kind] = kind @attributes[:tags] = tags if tags @attributes[:detail] = detail if detail @attributes[:uri] = uri @attributes[:range] = range @attributes[:selectionRange] = selection_range @attributes[:data] = data if data @attributes.freeze end # # The name of this item. # # @return [string] def name attributes.fetch(:name) end # # The kind of this item. # # @return [SymbolKind] def kind attributes.fetch(:kind) end # # Tags for this item. # # @return [1[]] def tags attributes.fetch(:tags) end # # More detail for this item, e.g. the signature of a function. # # @return [string] def detail attributes.fetch(:detail) end # # The resource identifier of this item. # # @return [string] def uri attributes.fetch(:uri) end # # The range enclosing this symbol not including leading/trailing whitespace # but everything else, e.g. comments and code. # # @return [Range] def range attributes.fetch(:range) end # # The range that should be selected and revealed when this symbol is being # picked, e.g. the name of a function. Must be contained by the # [`range`](#TypeHierarchyItem.range). # # @return [Range] def selection_range attributes.fetch(:selectionRange) end # # A data entry field that is preserved between a type hierarchy prepare and # supertypes or subtypes requests. It could also be used to identify the # type hierarchy in the server, helping improve the performance on # resolving supertypes and subtypes. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_workspace_folders_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_workspace_folder0000644000004100000410000000115215144416405034131 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeWorkspaceFoldersParams def initialize(event:) @attributes = {} @attributes[:event] = event @attributes.freeze end # # The actual workspace folder change event. # # @return [WorkspaceFoldersChangeEvent] def event attributes.fetch(:event) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/configuration_item.rb0000644000004100000410000000152715144416405032750 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ConfigurationItem def initialize(scope_uri: nil, section: nil) @attributes = {} @attributes[:scopeUri] = scope_uri if scope_uri @attributes[:section] = section if section @attributes.freeze end # # The scope to get the configuration section for. # # @return [string] def scope_uri attributes.fetch(:scopeUri) end # # The configuration section asked for. # # @return [string] def section attributes.fetch(:section) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_options.rb0000644000004100000410000000113315144416405033770 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SelectionRangeOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_registration_op0000644000004100000410000000241215144416405034230 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DeclarationRegistrationOptions def initialize(work_done_progress: nil, document_selector:, id: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:documentSelector] = document_selector @attributes[:id] = id if id @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execution_summary.rb0000644000004100000410000000172515144416405032643 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ExecutionSummary def initialize(execution_order:, success: nil) @attributes = {} @attributes[:executionOrder] = execution_order @attributes[:success] = success if success @attributes.freeze end # # A strict monotonically increasing value # indicating the execution order of a cell # inside a notebook. # # @return [number] def execution_order attributes.fetch(:executionOrder) end # # Whether the execution was successful or # not if known by the client. # # @return [boolean] def success attributes.fetch(:success) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_params.rb0000644000004100000410000000300415144416405033607 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeDefinitionParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_options.rb0000644000004100000410000000606215144416405033006 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Completion options. # class CompletionOptions def initialize(work_done_progress: nil, trigger_characters: nil, all_commit_characters: nil, resolve_provider: nil, completion_item: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:allCommitCharacters] = all_commit_characters if all_commit_characters @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes[:completionItem] = completion_item if completion_item @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The additional characters, beyond the defaults provided by the client (typically # [a-zA-Z]), that should automatically trigger a completion request. For example # `.` in JavaScript represents the beginning of an object property or method and is # thus a good candidate for triggering a completion request. # # Most tools trigger a completion request automatically without explicitly # requesting it using a keyboard shortcut (e.g. Ctrl+Space). Typically they # do so when the user starts to type an identifier. For example if the user # types `c` in a JavaScript file code complete will automatically pop up # present `console` besides others as a completion item. Characters that # make up identifiers don't need to be listed here. # # @return [string[]] def trigger_characters attributes.fetch(:triggerCharacters) end # # The list of all possible characters that commit a completion. This field # can be used if clients don't support individual commit characters per # completion item. See client capability # `completion.completionItem.commitCharactersSupport`. # # If a server provides both `allCommitCharacters` and commit characters on # an individual completion item the ones on the completion item win. # # @return [string[]] def all_commit_characters attributes.fetch(:allCommitCharacters) end # # The server provides support to resolve additional # information for a completion item. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end # # The server supports the following `CompletionItem` specific # capabilities. # # @return [{ labelDetailsSupport?: boolean; }] def completion_item attributes.fetch(:completionItem) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_params.rb0000644000004100000410000000244315144416405033612 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_params0000644000004100000410000000221115144416405034140 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LinkedEditingRangeParams def initialize(text_document:, position:, work_done_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover.rb0000644000004100000410000000171715144416405030207 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The result of a hover request. # class Hover def initialize(contents:, range: nil) @attributes = {} @attributes[:contents] = contents @attributes[:range] = range if range @attributes.freeze end # # The hover's content # # @return [MarkupContent | MarkedString | MarkedString[]] def contents attributes.fetch(:contents) end # # An optional range is a range inside a text document # that is used to visualize a hover, e.g. by changing the background color. # # @return [Range] def range attributes.fetch(:range) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/position.rb0000644000004100000410000000200415144416405030716 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Position def initialize(line:, character:) @attributes = {} @attributes[:line] = line @attributes[:character] = character @attributes.freeze end # # Line position in a document (zero-based). # # @return [number] def line attributes.fetch(:line) end # # Character offset on a line in a document (zero-based). The meaning of this # offset is determined by the negotiated `PositionEncodingKind`. # # If the character value is greater than the line length it defaults back # to the line length. # # @return [number] def character attributes.fetch(:character) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_delete.rb0000644000004100000410000000122515144416405031317 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents information on a file/folder delete. # class FileDelete def initialize(uri:) @attributes = {} @attributes[:uri] = uri @attributes.freeze end # # A file:// URI for the location of the file/folder being deleted. # # @return [string] def uri attributes.fetch(:uri) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_cell.rb0000644000004100000410000000307515144416405031702 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A notebook cell. # # A cell's document URI must be unique across ALL notebook # cells and can therefore be used to uniquely identify a # notebook cell or the cell's text document. # class NotebookCell def initialize(kind:, document:, metadata: nil, execution_summary: nil) @attributes = {} @attributes[:kind] = kind @attributes[:document] = document @attributes[:metadata] = metadata if metadata @attributes[:executionSummary] = execution_summary if execution_summary @attributes.freeze end # # The cell's kind # # @return [any] def kind attributes.fetch(:kind) end # # The URI of the cell's text document # content. # # @return [string] def document attributes.fetch(:document) end # # Additional metadata stored with the cell. # # @return [LSPObject] def metadata attributes.fetch(:metadata) end # # Additional execution summary information # if supported by the client. # # @return [ExecutionSummary] def execution_summary attributes.fetch(:executionSummary) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_options.rb0000644000004100000410000000113015144416405033111 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DeclarationOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/message_action_item.rb0000644000004100000410000000111115144416405033047 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class MessageActionItem def initialize(title:) @attributes = {} @attributes[:title] = title @attributes.freeze end # # A short title like 'Retry', 'Open Log' etc. # # @return [string] def title attributes.fetch(:title) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_list.rb0000644000004100000410000000417115144416405032265 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents a collection of [completion items](#CompletionItem) to be # presented in the editor. # class CompletionList def initialize(is_incomplete:, item_defaults: nil, items:) @attributes = {} @attributes[:isIncomplete] = is_incomplete @attributes[:itemDefaults] = item_defaults if item_defaults @attributes[:items] = items @attributes.freeze end # # This list is not complete. Further typing should result in recomputing # this list. # # Recomputed lists have all their items replaced (not appended) in the # incomplete completion sessions. # # @return [boolean] def is_incomplete attributes.fetch(:isIncomplete) end # # In many cases the items of an actual completion result share the same # value for properties like `commitCharacters` or the range of a text # edit. A completion list can therefore define item defaults which will # be used if a completion item itself doesn't specify the value. # # If a completion list specifies a default value and a completion item # also specifies a corresponding value the one from the item is used. # # Servers are only allowed to return default values if the client # signals support for this via the `completionList.itemDefaults` # capability. # # @return [{ commitCharacters?: string[]; editRange?: Range | { insert: Range; replace: Range; }; insertTextFormat?: InsertTextFormat; insertTextMode?: InsertTextMode; data?: LSPAny; }] def item_defaults attributes.fetch(:itemDefaults) end # # The completion items. # # @return [CompletionItem[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_text_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_text_document_pa0000644000004100000410000000334515144416405034150 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeTextDocumentParams def initialize(text_document:, content_changes:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:contentChanges] = content_changes @attributes.freeze end # # The document that did change. The version number points # to the version after all provided content changes have # been applied. # # @return [VersionedTextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The actual content changes. The content changes describe single state # changes to the document. So if there are two content changes c1 (at # array index 0) and c2 (at array index 1) for a document in state S then # c1 moves the document from S to S' and c2 from S' to S''. So c1 is # computed on the state S and c2 is computed on the state S'. # # To mirror the content of a document using change events use the following # approach: # - start with the same initial content # - apply the 'textDocument/didChange' notifications in the order you # receive them. # - apply the `TextDocumentContentChangeEvent`s in a single notification # in the order you receive them. # # @return [TextDocumentContentChangeEvent[]] def content_changes attributes.fetch(:contentChanges) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_registr0000644000004100000410000000176015144416405034267 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentFormattingRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/related_full_document_diagn0000644000004100000410000000347215144416405034164 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A full diagnostic report with a set of related documents. # class RelatedFullDocumentDiagnosticReport def initialize(kind:, result_id: nil, items:, related_documents: nil) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id if result_id @attributes[:items] = items @attributes[:relatedDocuments] = related_documents if related_documents @attributes.freeze end # # A full document diagnostic report. # # @return [any] def kind attributes.fetch(:kind) end # # An optional result id. If provided it will # be sent on the next diagnostic request for the # same document. # # @return [string] def result_id attributes.fetch(:resultId) end # # The actual items. # # @return [Diagnostic[]] def items attributes.fetch(:items) end # # Diagnostics of related documents. This information is useful # in programming languages where code in a file A can generate # diagnostics in a file B which A depends on. An example of # such a language is C/C++ where marco definitions in a file # a.cpp and result in errors in a header file b.hpp. # # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] def related_documents attributes.fetch(:relatedDocuments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016400000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_formatting_client_0000644000004100000410000000131015144416405034214 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentFormattingClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether formatting supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/reference_params.rb0000644000004100000410000000323615144416405032363 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ReferenceParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil, context:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:context] = context @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # @return [ReferenceContext] def context attributes.fetch(:context) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_options.rb0000644000004100000410000000147715144416405034002 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ExecuteCommandOptions def initialize(work_done_progress: nil, commands:) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:commands] = commands @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The commands to be executed on the server # # @return [string[]] def commands attributes.fetch(:commands) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_open_notebook_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_open_notebook_document_0000644000004100000410000000205215144416405034171 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The params sent in an open notebook document notification. # class DidOpenNotebookDocumentParams def initialize(notebook_document:, cell_text_documents:) @attributes = {} @attributes[:notebookDocument] = notebook_document @attributes[:cellTextDocuments] = cell_text_documents @attributes.freeze end # # The notebook document that got opened. # # @return [NotebookDocument] def notebook_document attributes.fetch(:notebookDocument) end # # The text documents that represent the content # of a notebook cell. # # @return [TextDocumentItem[]] def cell_text_documents attributes.fetch(:cellTextDocuments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/annotated_text_edit.rb0000644000004100000410000000234415144416405033107 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A special text edit with an additional change annotation. # class AnnotatedTextEdit def initialize(range:, new_text:, annotation_id:) @attributes = {} @attributes[:range] = range @attributes[:newText] = new_text @attributes[:annotationId] = annotation_id @attributes.freeze end # # The range of the text document to be manipulated. To insert # text into a document create a range where start === end. # # @return [Range] def range attributes.fetch(:range) end # # The string to be inserted. For delete operations use an # empty string. # # @return [string] def new_text attributes.fetch(:newText) end # # The actual annotation identifier. # # @return [string] def annotation_id attributes.fetch(:annotationId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_link.rb0000644000004100000410000000343315144416405031714 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A document link is a range in a text document that links to an internal or # external resource, like another text document or a web site. # class DocumentLink def initialize(range:, target: nil, tooltip: nil, data: nil) @attributes = {} @attributes[:range] = range @attributes[:target] = target if target @attributes[:tooltip] = tooltip if tooltip @attributes[:data] = data if data @attributes.freeze end # # The range this link applies to. # # @return [Range] def range attributes.fetch(:range) end # # The uri this link points to. If missing a resolve request is sent later. # # @return [string] def target attributes.fetch(:target) end # # The tooltip text when you hover over this link. # # If a tooltip is provided, is will be displayed in a string that includes # instructions on how to trigger the link, such as `{0} (ctrl + click)`. # The specific instructions vary depending on OS, user settings, and # localization. # # @return [string] def tooltip attributes.fetch(:tooltip) end # # A data entry field that is preserved on a document link between a # DocumentLinkRequest and a DocumentLinkResolveRequest. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_params.rb0000644000004100000410000000277515144416405032100 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class MonikerParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/diagnostic_client_capabilit0000644000004100000410000000254415144416405034153 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Client capabilities specific to diagnostic pull requests. # class DiagnosticClientCapabilities def initialize(dynamic_registration: nil, related_document_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:relatedDocumentSupport] = related_document_support if related_document_support @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Whether the clients supports related documents for document diagnostic # pulls. # # @return [boolean] def related_document_support attributes.fetch(:relatedDocumentSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/progress_params.rb0000644000004100000410000000141515144416405032266 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ProgressParams def initialize(token:, value:) @attributes = {} @attributes[:token] = token @attributes[:value] = value @attributes.freeze end # # The progress token provided by the client or server. # # @return [ProgressToken] def token attributes.fetch(:token) end # # The progress data. # # @return [T] def value attributes.fetch(:value) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_files_params.rb0000644000004100000410000000145315144416405033055 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The parameters sent in notifications/requests for user-initiated renames # of files. # class RenameFilesParams def initialize(files:) @attributes = {} @attributes[:files] = files @attributes.freeze end # # An array of all files/folders renamed in this operation. When a folder # is renamed, only the folder will be included, and not its children. # # @return [FileRename[]] def files attributes.fetch(:files) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_registration0000644000004100000410000000241415144416405034266 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchyRegistrationOptions def initialize(document_selector:, work_done_progress: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_registration_opt0000644000004100000410000000326615144416405034275 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inlay hint options used during static or dynamic registration. # class InlayHintRegistrationOptions def initialize(work_done_progress: nil, resolve_provider: nil, document_selector:, id: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes[:documentSelector] = document_selector @attributes[:id] = id if id @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The server provides support to resolve additional # information for an inlay hint item. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_context.rb0000644000004100000410000000174715144416405033305 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class InlineValueContext def initialize(frame_id:, stopped_location:) @attributes = {} @attributes[:frameId] = frame_id @attributes[:stoppedLocation] = stopped_location @attributes.freeze end # # The stack frame (as a DAP Id) where the execution has stopped. # # @return [number] def frame_id attributes.fetch(:frameId) end # # The document range where execution has stopped. # Typically the end position of the range denotes the line where the # inline values are shown. # # @return [Range] def stopped_location attributes.fetch(:stoppedLocation) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_outgoing_cal0000644000004100000410000000231615144416405034161 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyOutgoingCallsParams def initialize(work_done_token: nil, partial_result_token: nil, item:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:item] = item @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # @return [CallHierarchyItem] def item attributes.fetch(:item) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_symbol_params.rb0000644000004100000410000000261615144416405034011 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The parameters of a Workspace Symbol Request. # class WorkspaceSymbolParams def initialize(work_done_token: nil, partial_result_token: nil, query:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:query] = query @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # A query string to filter symbols by. Clients may send an empty # string here to request all symbols. # # @return [string] def query attributes.fetch(:query) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_incoming_cal0000644000004100000410000000231615144416405034131 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyIncomingCallsParams def initialize(work_done_token: nil, partial_result_token: nil, item:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:item] = item @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # @return [CallHierarchyItem] def item attributes.fetch(:item) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_partial_result.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_partial_res0000644000004100000410000000100615144416405034224 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensPartialResult def initialize(data:) @attributes = {} @attributes[:data] = data @attributes.freeze end # @return [number[]] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_filter.rb0000644000004100000410000000330115144416405034136 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A notebook document filter denotes a notebook document by # different properties. # class NotebookDocumentFilter def initialize(notebook_type: nil, scheme: nil, pattern: nil) @attributes = {} @attributes[:notebookType] = notebook_type if notebook_type @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern if pattern @attributes.freeze end # # The type of the enclosing notebook. # # --- OR --- # # The type of the enclosing notebook. # # --- OR --- # # The type of the enclosing notebook. # # @return [string] def notebook_type attributes.fetch(:notebookType) end # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # --- OR --- # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # --- OR --- # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # @return [string] def scheme attributes.fetch(:scheme) end # # A glob pattern. # # --- OR --- # # A glob pattern. # # --- OR --- # # A glob pattern. # # @return [string] def pattern attributes.fetch(:pattern) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_information.rb0000644000004100000410000000335415144416405033471 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents the signature of something callable. A signature # can have a label, like a function-name, a doc-comment, and # a set of parameters. # class SignatureInformation def initialize(label:, documentation: nil, parameters: nil, active_parameter: nil) @attributes = {} @attributes[:label] = label @attributes[:documentation] = documentation if documentation @attributes[:parameters] = parameters if parameters @attributes[:activeParameter] = active_parameter if active_parameter @attributes.freeze end # # The label of this signature. Will be shown in # the UI. # # @return [string] def label attributes.fetch(:label) end # # The human-readable doc-comment of this signature. Will be shown # in the UI but can be omitted. # # @return [string | MarkupContent] def documentation attributes.fetch(:documentation) end # # The parameters of this signature. # # @return [ParameterInformation[]] def parameters attributes.fetch(:parameters) end # # The index of the active parameter. # # If provided, this is used in place of `SignatureHelp.activeParameter`. # # @return [number] def active_parameter attributes.fetch(:activeParameter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_client_capabilities.r0000644000004100000410000000214215144416405034105 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class HoverClientCapabilities def initialize(dynamic_registration: nil, content_format: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:contentFormat] = content_format if content_format @attributes.freeze end # # Whether hover supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Client supports the follow content formats if the content # property refers to a `literal of type MarkupContent`. # The order describes the preferred format of the client. # # @return [MarkupKind[]] def content_format attributes.fetch(:contentFormat) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_context.rb0000644000004100000410000000415015144416405033633 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Additional information about the context in which a signature help request # was triggered. # class SignatureHelpContext def initialize(trigger_kind:, trigger_character: nil, is_retrigger:, active_signature_help: nil) @attributes = {} @attributes[:triggerKind] = trigger_kind @attributes[:triggerCharacter] = trigger_character if trigger_character @attributes[:isRetrigger] = is_retrigger @attributes[:activeSignatureHelp] = active_signature_help if active_signature_help @attributes.freeze end # # Action that caused signature help to be triggered. # # @return [SignatureHelpTriggerKind] def trigger_kind attributes.fetch(:triggerKind) end # # Character that caused signature help to be triggered. # # This is undefined when triggerKind !== # SignatureHelpTriggerKind.TriggerCharacter # # @return [string] def trigger_character attributes.fetch(:triggerCharacter) end # # `true` if signature help was already showing when it was triggered. # # Retriggers occur when the signature help is already active and can be # caused by actions such as typing a trigger character, a cursor move, or # document content changes. # # @return [boolean] def is_retrigger attributes.fetch(:isRetrigger) end # # The currently active `SignatureHelp`. # # The `activeSignatureHelp` has its `SignatureHelp.activeSignature` field # updated based on the user navigating through available signatures. # # @return [SignatureHelp] def active_signature_help attributes.fetch(:activeSignatureHelp) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015400000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_pa0000644000004100000410000000111615144416405034061 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeWatchedFilesParams def initialize(changes:) @attributes = {} @attributes[:changes] = changes @attributes.freeze end # # The actual file events. # # @return [FileEvent[]] def changes attributes.fetch(:changes) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/create_file.rb0000644000004100000410000000240115144416405031315 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Create file operation # class CreateFile def initialize(kind:, uri:, options: nil, annotation_id: nil) @attributes = {} @attributes[:kind] = kind @attributes[:uri] = uri @attributes[:options] = options if options @attributes[:annotationId] = annotation_id if annotation_id @attributes.freeze end # # A create # # @return ["create"] def kind attributes.fetch(:kind) end # # The resource to create. # # @return [string] def uri attributes.fetch(:uri) end # # Additional options # # @return [CreateFileOptions] def options attributes.fetch(:options) end # # An optional annotation identifier describing the operation. # # @return [string] def annotation_id attributes.fetch(:annotationId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014600000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_report.r0000644000004100000410000000412415144416405034223 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressReport def initialize(kind:, cancellable: nil, message: nil, percentage: nil) @attributes = {} @attributes[:kind] = kind @attributes[:cancellable] = cancellable if cancellable @attributes[:message] = message if message @attributes[:percentage] = percentage if percentage @attributes.freeze end # @return ["report"] def kind attributes.fetch(:kind) end # # Controls enablement state of a cancel button. This property is only valid # if a cancel button got requested in the `WorkDoneProgressBegin` payload. # # Clients that don't support cancellation or don't support control the # button's enablement state are allowed to ignore the setting. # # @return [boolean] def cancellable attributes.fetch(:cancellable) end # # Optional, more detailed associated progress message. Contains # complementary information to the `title`. # # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". # If unset, the previous progress message (if any) is still valid. # # @return [string] def message attributes.fetch(:message) end # # Optional progress percentage to display (value 100 is considered 100%). # If not provided infinite progress is assumed and clients are allowed # to ignore the `percentage` value in subsequent in report notifications. # # The value should be steadily rising. Clients are free to ignore values # that are not following this rule. The value range is [0, 100] # # @return [number] def percentage attributes.fetch(:percentage) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/parameter_information.rb0000644000004100000410000000306115144416405033443 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents a parameter of a callable-signature. A parameter can # have a label and a doc-comment. # class ParameterInformation def initialize(label:, documentation: nil) @attributes = {} @attributes[:label] = label @attributes[:documentation] = documentation if documentation @attributes.freeze end # # The label of this parameter information. # # Either a string or an inclusive start and exclusive end offsets within # its containing signature label. (see SignatureInformation.label). The # offsets are based on a UTF-16 string representation as `Position` and # `Range` does. # # *Note*: a label of type string should be a substring of its containing # signature label. Its intended use case is to highlight the parameter # label part in the `SignatureInformation.label`. # # @return [string | [number, number]] def label attributes.fetch(:label) end # # The human-readable doc-comment of this parameter. Will be shown # in the UI but can be omitted. # # @return [string | MarkupContent] def documentation attributes.fetch(:documentation) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_pattern_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_pattern_opti0000644000004100000410000000131715144416405034245 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Matching options for the file operation pattern. # class FileOperationPatternOptions def initialize(ignore_case: nil) @attributes = {} @attributes[:ignoreCase] = ignore_case if ignore_case @attributes.freeze end # # The pattern should be matched ignoring casing. # # @return [boolean] def ignore_case attributes.fetch(:ignoreCase) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_cell_array_change.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_cell_array_change.0000644000004100000410000000215115144416405034053 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A change describing how to move a `NotebookCell` # array from state S to S'. # class NotebookCellArrayChange def initialize(start:, delete_count:, cells: nil) @attributes = {} @attributes[:start] = start @attributes[:deleteCount] = delete_count @attributes[:cells] = cells if cells @attributes.freeze end # # The start offset of the cell that changed. # # @return [number] def start attributes.fetch(:start) end # # The deleted cells # # @return [number] def delete_count attributes.fetch(:deleteCount) end # # The new cells, if any # # @return [NotebookCell[]] def cells attributes.fetch(:cells) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_sync_client_c0000644000004100000410000000320515144416405034232 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentSyncClientCapabilities def initialize(dynamic_registration: nil, will_save: nil, will_save_wait_until: nil, did_save: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:willSave] = will_save if will_save @attributes[:willSaveWaitUntil] = will_save_wait_until if will_save_wait_until @attributes[:didSave] = did_save if did_save @attributes.freeze end # # Whether text document synchronization supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports sending will save notifications. # # @return [boolean] def will_save attributes.fetch(:willSave) end # # The client supports sending a will save request and # waits for a response providing text edits which will # be applied to the document before it is saved. # # @return [boolean] def will_save_wait_until attributes.fetch(:willSaveWaitUntil) end # # The client supports did save notifications. # # @return [boolean] def did_save attributes.fetch(:didSave) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/call_hierarchy_item.rb0000644000004100000410000000453615144416405033055 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CallHierarchyItem def initialize(name:, kind:, tags: nil, detail: nil, uri:, range:, selection_range:, data: nil) @attributes = {} @attributes[:name] = name @attributes[:kind] = kind @attributes[:tags] = tags if tags @attributes[:detail] = detail if detail @attributes[:uri] = uri @attributes[:range] = range @attributes[:selectionRange] = selection_range @attributes[:data] = data if data @attributes.freeze end # # The name of this item. # # @return [string] def name attributes.fetch(:name) end # # The kind of this item. # # @return [SymbolKind] def kind attributes.fetch(:kind) end # # Tags for this item. # # @return [1[]] def tags attributes.fetch(:tags) end # # More detail for this item, e.g. the signature of a function. # # @return [string] def detail attributes.fetch(:detail) end # # The resource identifier of this item. # # @return [string] def uri attributes.fetch(:uri) end # # The range enclosing this symbol not including leading/trailing whitespace # but everything else, e.g. comments and code. # # @return [Range] def range attributes.fetch(:range) end # # The range that should be selected and revealed when this symbol is being # picked, e.g. the name of a function. Must be contained by the # [`range`](#CallHierarchyItem.range). # # @return [Range] def selection_range attributes.fetch(:selectionRange) end # # A data entry field that is preserved between a call hierarchy prepare and # incoming calls or outgoing calls requests. # # @return [unknown] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017000000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/optional_versioned_text_doc0000644000004100000410000000247415144416405034257 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class OptionalVersionedTextDocumentIdentifier def initialize(uri:, version:) @attributes = {} @attributes[:uri] = uri @attributes[:version] = version @attributes.freeze end # # The text document's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The version number of this document. If an optional versioned text document # identifier is sent from the server to the client and the file is not # open in the editor (the server has not received an open notification # before) the server can send `null` to indicate that the version is # known and the content on disk is the master (as specified with document # content ownership). # # The version number of a document will increase after each change, # including undo/redo. The number doesn't need to be consecutive. # # @return [number] def version attributes.fetch(:version) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/selection_range_client_capa0000644000004100000410000000163315144416405034142 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SelectionRangeClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether implementation supports dynamic registration for selection range # providers. If this is set to `true` the client supports the new # `SelectionRangeRegistrationOptions` return value for the corresponding # server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/execute_command_registratio0000644000004100000410000000161115144416405034227 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Execute command registration options. # class ExecuteCommandRegistrationOptions def initialize(work_done_progress: nil, commands:) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:commands] = commands @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The commands to be executed on the server # # @return [string[]] def commands attributes.fetch(:commands) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_edit_client_capab0000644000004100000410000000461515144416405034151 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceEditClientCapabilities def initialize(document_changes: nil, resource_operations: nil, failure_handling: nil, normalizes_line_endings: nil, change_annotation_support: nil) @attributes = {} @attributes[:documentChanges] = document_changes if document_changes @attributes[:resourceOperations] = resource_operations if resource_operations @attributes[:failureHandling] = failure_handling if failure_handling @attributes[:normalizesLineEndings] = normalizes_line_endings if normalizes_line_endings @attributes[:changeAnnotationSupport] = change_annotation_support if change_annotation_support @attributes.freeze end # # The client supports versioned document changes in `WorkspaceEdit`s # # @return [boolean] def document_changes attributes.fetch(:documentChanges) end # # The resource operations the client supports. Clients should at least # support 'create', 'rename' and 'delete' files and folders. # # @return [ResourceOperationKind[]] def resource_operations attributes.fetch(:resourceOperations) end # # The failure handling strategy of a client if applying the workspace edit # fails. # # @return [FailureHandlingKind] def failure_handling attributes.fetch(:failureHandling) end # # Whether the client normalizes line endings to the client specific # setting. # If set to `true` the client will normalize line ending characters # in a workspace edit to the client specific new line character(s). # # @return [boolean] def normalizes_line_endings attributes.fetch(:normalizesLineEndings) end # # Whether the client in general supports change annotations on text edits, # create file, rename file and delete file changes. # # @return [{ groupsOnLabel?: boolean; }] def change_annotation_support attributes.fetch(:changeAnnotationSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015600000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_client_capabi0000644000004100000410000000447115144416405034115 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class FoldingRangeClientCapabilities def initialize(dynamic_registration: nil, range_limit: nil, line_folding_only: nil, folding_range_kind: nil, folding_range: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:rangeLimit] = range_limit if range_limit @attributes[:lineFoldingOnly] = line_folding_only if line_folding_only @attributes[:foldingRangeKind] = folding_range_kind if folding_range_kind @attributes[:foldingRange] = folding_range if folding_range @attributes.freeze end # # Whether implementation supports dynamic registration for folding range # providers. If this is set to `true` the client supports the new # `FoldingRangeRegistrationOptions` return value for the corresponding # server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The maximum number of folding ranges that the client prefers to receive # per document. The value serves as a hint, servers are free to follow the # limit. # # @return [number] def range_limit attributes.fetch(:rangeLimit) end # # If set, the client signals that it only supports folding complete lines. # If set, client will ignore specified `startCharacter` and `endCharacter` # properties in a FoldingRange. # # @return [boolean] def line_folding_only attributes.fetch(:lineFoldingOnly) end # # Specific options for the folding range kind. # # @return [{ valueSet?: string[]; }] def folding_range_kind attributes.fetch(:foldingRangeKind) end # # Specific options for the folding range. # # @return [{ collapsedText?: boolean; }] def folding_range attributes.fetch(:foldingRange) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/notebook_document_sync_opti0000644000004100000410000000300115144416405034253 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Options specific to a notebook plus its cells # to be synced to the server. # # If a selector provides a notebook document # filter but no cell selector all cells of a # matching notebook document will be synced. # # If a selector provides no notebook document # filter but only a cell selector all notebook # documents that contain at least one matching # cell will be synced. # class NotebookDocumentSyncOptions def initialize(notebook_selector:, save: nil) @attributes = {} @attributes[:notebookSelector] = notebook_selector @attributes[:save] = save if save @attributes.freeze end # # The notebooks to be synced # # @return [({ notebook: string | NotebookDocumentFilter; cells?: { language: string; }[]; } | { notebook?: string | NotebookDocumentFilter; cells: { ...; }[]; })[]] def notebook_selector attributes.fetch(:notebookSelector) end # # Whether save notification should be forwarded to # the server. Will only be honored if mode === `notebook`. # # @return [boolean] def save attributes.fetch(:save) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/save_options.rb0000644000004100000410000000120415144416405031564 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SaveOptions def initialize(include_text: nil) @attributes = {} @attributes[:includeText] = include_text if include_text @attributes.freeze end # # The client is supposed to include the content on save. # # @return [boolean] def include_text attributes.fetch(:includeText) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/initialize_params.rb0000644000004100000410000000737415144416405032575 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class InitializeParams def initialize(work_done_token: nil, process_id:, client_info: nil, locale: nil, root_path: nil, root_uri:, initialization_options: nil, capabilities:, trace: nil, workspace_folders: nil) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:processId] = process_id @attributes[:clientInfo] = client_info if client_info @attributes[:locale] = locale if locale @attributes[:rootPath] = root_path if root_path @attributes[:rootUri] = root_uri @attributes[:initializationOptions] = initialization_options if initialization_options @attributes[:capabilities] = capabilities @attributes[:trace] = trace if trace @attributes[:workspaceFolders] = workspace_folders if workspace_folders @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The process Id of the parent process that started the server. Is null if # the process has not been started by another process. If the parent # process is not alive then the server should exit (see exit notification) # its process. # # @return [number] def process_id attributes.fetch(:processId) end # # Information about the client # # @return [{ name: string; version?: string; }] def client_info attributes.fetch(:clientInfo) end # # The locale the client is currently showing the user interface # in. This must not necessarily be the locale of the operating # system. # # Uses IETF language tags as the value's syntax # (See https://en.wikipedia.org/wiki/IETF_language_tag) # # @return [string] def locale attributes.fetch(:locale) end # # The rootPath of the workspace. Is null # if no folder is open. # # @return [string] def root_path attributes.fetch(:rootPath) end # # The rootUri of the workspace. Is null if no # folder is open. If both `rootPath` and `rootUri` are set # `rootUri` wins. # # @return [string] def root_uri attributes.fetch(:rootUri) end # # User provided initialization options. # # @return [LSPAny] def initialization_options attributes.fetch(:initializationOptions) end # # The capabilities provided by the client (editor or tool) # # @return [ClientCapabilities] def capabilities attributes.fetch(:capabilities) end # # The initial trace setting. If omitted trace is disabled ('off'). # # @return [TraceValue] def trace attributes.fetch(:trace) end # # The workspace folders configured in the client when the server starts. # This property is only available if the client supports workspace folders. # It can be `null` if the client supports workspace folders but none are # configured. # # @return [WorkspaceFolder[]] def workspace_folders attributes.fetch(:workspaceFolders) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_close_notebook_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_close_notebook_document0000644000004100000410000000211315144416405034174 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The params sent in a close notebook document notification. # class DidCloseNotebookDocumentParams def initialize(notebook_document:, cell_text_documents:) @attributes = {} @attributes[:notebookDocument] = notebook_document @attributes[:cellTextDocuments] = cell_text_documents @attributes.freeze end # # The notebook document that got closed. # # @return [NotebookDocumentIdentifier] def notebook_document attributes.fetch(:notebookDocument) end # # The text documents that represent the content # of a notebook cell that got closed. # # @return [TextDocumentIdentifier[]] def cell_text_documents attributes.fetch(:cellTextDocuments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015100000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_delta_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_delta_param0000644000004100000410000000325115144416405034174 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensDeltaParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, previous_result_id:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:previousResultId] = previous_result_id @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The result id of a previous response. The result Id can either point to # a full response or a delta response depending on what was received last. # # @return [string] def previous_result_id attributes.fetch(:previousResultId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_diagnostic_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_diagnostic_params.0000644000004100000410000000365515144416405034130 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Parameters of the document diagnostic request. # class DocumentDiagnosticParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:, identifier: nil, previous_result_id: nil) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes[:identifier] = identifier if identifier @attributes[:previousResultId] = previous_result_id if previous_result_id @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The additional identifier provided during registration. # # @return [string] def identifier attributes.fetch(:identifier) end # # The result id of a previous response if provided. # # @return [string] def previous_result_id attributes.fetch(:previousResultId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol_registratio0000644000004100000410000000242015144416405034271 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentSymbolRegistrationOptions def initialize(document_selector:, work_done_progress: nil, label: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:label] = label if label @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # A human-readable string that is shown when multiple outlines trees # are shown for the same document. # # @return [string] def label attributes.fetch(:label) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/response_message.rb0000644000004100000410000000240615144416405032422 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ResponseMessage def initialize(jsonrpc:, id:, result: nil, error: nil) @attributes = {} @attributes[:jsonrpc] = jsonrpc @attributes[:id] = id @attributes[:result] = result if result @attributes[:error] = error if error @attributes.freeze end # @return [string] def jsonrpc attributes.fetch(:jsonrpc) end # # The request id. # # @return [string | number] def id attributes.fetch(:id) end # # The result of a request. This member is REQUIRED on success. # This member MUST NOT exist if there was an error invoking the method. # # @return [string | number | boolean | object] def result attributes.fetch(:result) end # # The error object in case a request fails. # # @return [ResponseError] def error attributes.fetch(:error) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/static_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/static_registration_options0000644000004100000410000000137315144416405034314 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Static registration options to be returned in the initialize request. # class StaticRegistrationOptions def initialize(id: nil) @attributes = {} @attributes[:id] = id if id @attributes.freeze end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/initialized_params.rb0000644000004100000410000000056615144416405032735 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class InitializedParams def initialize() @attributes = {} @attributes.freeze end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_client_capabilities0000644000004100000410000000162215144416405034170 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class MonikerClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new `(TextDocumentRegistrationOptions & # StaticRegistrationOptions)` return value for the corresponding server # capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_context.rb0000644000004100000410000000222115144416405032770 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Contains additional information about the context in which a completion # request is triggered. # class CompletionContext def initialize(trigger_kind:, trigger_character: nil) @attributes = {} @attributes[:triggerKind] = trigger_kind @attributes[:triggerCharacter] = trigger_character if trigger_character @attributes.freeze end # # How the completion was triggered. # # @return [CompletionTriggerKind] def trigger_kind attributes.fetch(:triggerKind) end # # The trigger character (a single character) that has trigger code # complete. Is undefined if # `triggerKind !== CompletionTriggerKind.TriggerCharacter` # # @return [string] def trigger_character attributes.fetch(:triggerCharacter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_change_watched_files_cl0000644000004100000410000000232015144416405034055 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidChangeWatchedFilesClientCapabilities def initialize(dynamic_registration: nil, relative_pattern_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:relativePatternSupport] = relative_pattern_support if relative_pattern_support @attributes.freeze end # # Did change watched files notification supports dynamic registration. # Please note that the current protocol doesn't support static # configuration for file changes from the server side. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Whether the client has support for relative patterns # or not. # # @return [boolean] def relative_pattern_support attributes.fetch(:relativePatternSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_position_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/text_document_position_para0000644000004100000410000000152015144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TextDocumentPositionParams def initialize(text_document:, position:) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_description.rb0000644000004100000410000000124515144416405032375 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Structure to capture a description for an error code. # class CodeDescription def initialize(href:) @attributes = {} @attributes[:href] = href @attributes.freeze end # # An URI to open with more information about the diagnostic error. # # @return [string] def href attributes.fetch(:href) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_registration_options.0000644000004100000410000000174315144416405034227 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class HoverRegistrationOptions def initialize(document_selector:, work_done_progress: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015000000000000011577 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_diagnostic_params0000644000004100000410000000332215144416405034221 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Parameters of the workspace diagnostic request. # class WorkspaceDiagnosticParams def initialize(work_done_token: nil, partial_result_token: nil, identifier: nil, previous_result_ids:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:identifier] = identifier if identifier @attributes[:previousResultIds] = previous_result_ids @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The additional identifier provided during registration. # # @return [string] def identifier attributes.fetch(:identifier) end # # The currently known diagnostic reports with their # previous result ids. # # @return [PreviousResultId[]] def previous_result_ids attributes.fetch(:previousResultIds) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/work_done_progress_begin.rb0000644000004100000410000000447215144416405034144 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkDoneProgressBegin def initialize(kind:, title:, cancellable: nil, message: nil, percentage: nil) @attributes = {} @attributes[:kind] = kind @attributes[:title] = title @attributes[:cancellable] = cancellable if cancellable @attributes[:message] = message if message @attributes[:percentage] = percentage if percentage @attributes.freeze end # @return ["begin"] def kind attributes.fetch(:kind) end # # Mandatory title of the progress operation. Used to briefly inform about # the kind of operation being performed. # # Examples: "Indexing" or "Linking dependencies". # # @return [string] def title attributes.fetch(:title) end # # Controls if a cancel button should show to allow the user to cancel the # long running operation. Clients that don't support cancellation are # allowed to ignore the setting. # # @return [boolean] def cancellable attributes.fetch(:cancellable) end # # Optional, more detailed associated progress message. Contains # complementary information to the `title`. # # Examples: "3/25 files", "project/src/module2", "node_modules/some_dep". # If unset, the previous progress message (if any) is still valid. # # @return [string] def message attributes.fetch(:message) end # # Optional progress percentage to display (value 100 is considered 100%). # If not provided infinite progress is assumed and clients are allowed # to ignore the `percentage` value in subsequent in report notifications. # # The value should be steadily rising. Clients are free to ignore values # that are not following this rule. The value range is [0, 100] # # @return [number] def percentage attributes.fetch(:percentage) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/relative_pattern.rb0000644000004100000410000000214115144416405032424 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A relative pattern is a helper to construct glob patterns that are matched # relatively to a base URI. The common value for a `baseUri` is a workspace # folder root, but it can be another absolute URI as well. # class RelativePattern def initialize(base_uri:, pattern:) @attributes = {} @attributes[:baseUri] = base_uri @attributes[:pattern] = pattern @attributes.freeze end # # A workspace folder or a base URI to which this pattern will be matched # against relatively. # # @return [string | WorkspaceFolder] def base_uri attributes.fetch(:baseUri) end # # The actual glob pattern; # # @return [string] def pattern attributes.fetch(:pattern) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_params.rb0000644000004100000410000000244115144416405033220 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class FoldingRangeParams def initialize(work_done_token: nil, partial_result_token: nil, text_document:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:textDocument] = text_document @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/request_message.rb0000644000004100000410000000211715144416405032253 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RequestMessage def initialize(jsonrpc:, id:, method:, params: nil) @attributes = {} @attributes[:jsonrpc] = jsonrpc @attributes[:id] = id @attributes[:method] = method @attributes[:params] = params if params @attributes.freeze end # @return [string] def jsonrpc attributes.fetch(:jsonrpc) end # # The request id. # # @return [string | number] def id attributes.fetch(:id) end # # The method to be invoked. # # @return [string] def method attributes.fetch(:method) end # # The method's params. # # @return [any] def params attributes.fetch(:params) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/rename_client_capabilities.0000644000004100000410000000407215144416405034053 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class RenameClientCapabilities def initialize(dynamic_registration: nil, prepare_support: nil, prepare_support_default_behavior: nil, honors_change_annotations: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:prepareSupport] = prepare_support if prepare_support @attributes[:prepareSupportDefaultBehavior] = prepare_support_default_behavior if prepare_support_default_behavior @attributes[:honorsChangeAnnotations] = honors_change_annotations if honors_change_annotations @attributes.freeze end # # Whether rename supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Client supports testing for validity of rename operations # before execution. # # @return [boolean] def prepare_support attributes.fetch(:prepareSupport) end # # Client supports the default behavior result # (`{ defaultBehavior: boolean }`). # # The value indicates the default behavior used by the # client. # # @return [1] def prepare_support_default_behavior attributes.fetch(:prepareSupportDefaultBehavior) end # # Whether the client honors the change annotations in # text edits and resource operations returned via the # rename request's workspace edit by for example presenting # the workspace edit in the user interface and asking # for confirmation. # # @return [boolean] def honors_change_annotations attributes.fetch(:honorsChangeAnnotations) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_filter.rb0000644000004100000410000000342515144416405032245 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentFilter def initialize(language: nil, scheme: nil, pattern: nil) @attributes = {} @attributes[:language] = language if language @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern if pattern @attributes.freeze end # # A language id, like `typescript`. # # @return [string] def language attributes.fetch(:language) end # # A Uri [scheme](#Uri.scheme), like `file` or `untitled`. # # @return [string] def scheme attributes.fetch(:scheme) end # # A glob pattern, like `*.{ts,js}`. # # Glob patterns can have the following syntax: # - `*` to match one or more characters in a path segment # - `?` to match on one character in a path segment # - `**` to match any number of path segments, including none # - `{}` to group sub patterns into an OR expression. (e.g. `**​/*.{ts,js}` # matches all TypeScript and JavaScript files) # - `[]` to declare a range of characters to match in a path segment # (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …) # - `[!...]` to negate a range of characters to match in a path segment # (e.g., `example.[!0-9]` to match on `example.a`, `example.b`, but # not `example.0`) # # @return [string] def pattern attributes.fetch(:pattern) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_registration0000644000004100000410000000123615144416405034247 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The options to register for file operations. # class FileOperationRegistrationOptions def initialize(filters:) @attributes = {} @attributes[:filters] = filters @attributes.freeze end # # The actual filters. # # @return [FileOperationFilter[]] def filters attributes.fetch(:filters) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_symbol.rb0000644000004100000410000000567115144416405032272 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Represents programming constructs like variables, classes, interfaces etc. # that appear in a document. Document symbols can be hierarchical and they # have two ranges: one that encloses its definition and one that points to its # most interesting range, e.g. the range of an identifier. # class DocumentSymbol def initialize(name:, detail: nil, kind:, tags: nil, deprecated: nil, range:, selection_range:, children: nil) @attributes = {} @attributes[:name] = name @attributes[:detail] = detail if detail @attributes[:kind] = kind @attributes[:tags] = tags if tags @attributes[:deprecated] = deprecated if deprecated @attributes[:range] = range @attributes[:selectionRange] = selection_range @attributes[:children] = children if children @attributes.freeze end # # The name of this symbol. Will be displayed in the user interface and # therefore must not be an empty string or a string only consisting of # white spaces. # # @return [string] def name attributes.fetch(:name) end # # More detail for this symbol, e.g the signature of a function. # # @return [string] def detail attributes.fetch(:detail) end # # The kind of this symbol. # # @return [SymbolKind] def kind attributes.fetch(:kind) end # # Tags for this document symbol. # # @return [1[]] def tags attributes.fetch(:tags) end # # Indicates if this symbol is deprecated. # # @return [boolean] def deprecated attributes.fetch(:deprecated) end # # The range enclosing this symbol not including leading/trailing whitespace # but everything else like comments. This information is typically used to # determine if the clients cursor is inside the symbol to reveal in the # symbol in the UI. # # @return [Range] def range attributes.fetch(:range) end # # The range that should be selected and revealed when this symbol is being # picked, e.g. the name of a function. Must be contained by the `range`. # # @return [Range] def selection_range attributes.fetch(:selectionRange) end # # Children of this symbol, e.g. properties of a class. # # @return [DocumentSymbol[]] def children attributes.fetch(:children) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_subtypes_par0000644000004100000410000000231115144416405034270 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchySubtypesParams def initialize(work_done_token: nil, partial_result_token: nil, item:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:item] = item @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # @return [TypeHierarchyItem] def item attributes.fetch(:item) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015500000000000011604 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action_registration_op0000644000004100000410000000340315144416405034213 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CodeActionRegistrationOptions def initialize(document_selector:, work_done_progress: nil, code_action_kinds: nil, resolve_provider: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:codeActionKinds] = code_action_kinds if code_action_kinds @attributes[:resolveProvider] = resolve_provider if resolve_provider @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # CodeActionKinds that this server may return. # # The list of kinds may be generic, such as `CodeActionKind.Refactor`, # or the server may list out every specific kind they provide. # # @return [string[]] def code_action_kinds attributes.fetch(:codeActionKinds) end # # The server provides support to resolve additional # information for a code action. # # @return [boolean] def resolve_provider attributes.fetch(:resolveProvider) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/log_trace_params.rb0000644000004100000410000000155115144416405032362 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LogTraceParams def initialize(message:, verbose: nil) @attributes = {} @attributes[:message] = message @attributes[:verbose] = verbose if verbose @attributes.freeze end # # The message to be logged. # # @return [string] def message attributes.fetch(:message) end # # Additional information that can be computed if the `trace` configuration # is set to `'verbose'` # # @return [string] def verbose attributes.fetch(:verbose) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/completion_params.rb0000644000004100000410000000356615144416405032604 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class CompletionParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil, context: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes[:context] = context if context @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end # # The completion context. This is only available if the client specifies # to send this using the client capability # `completion.contextSupport === true` # # @return [CompletionContext] def context attributes.fetch(:context) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/message.rb0000644000004100000410000000077715144416405030515 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class Message def initialize(jsonrpc:) @attributes = {} @attributes[:jsonrpc] = jsonrpc @attributes.freeze end # @return [string] def jsonrpc attributes.fetch(:jsonrpc) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help.rb0000644000004100000410000000437015144416405032073 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Signature help represents the signature of something # callable. There can be multiple signature but only one # active and only one active parameter. # class SignatureHelp def initialize(signatures:, active_signature: nil, active_parameter: nil) @attributes = {} @attributes[:signatures] = signatures @attributes[:activeSignature] = active_signature if active_signature @attributes[:activeParameter] = active_parameter if active_parameter @attributes.freeze end # # One or more signatures. If no signatures are available the signature help # request should return `null`. # # @return [SignatureInformation[]] def signatures attributes.fetch(:signatures) end # # The active signature. If omitted or the value lies outside the # range of `signatures` the value defaults to zero or is ignore if # the `SignatureHelp` as no signatures. # # Whenever possible implementors should make an active decision about # the active signature and shouldn't rely on a default value. # # In future version of the protocol this property might become # mandatory to better express this. # # @return [number] def active_signature attributes.fetch(:activeSignature) end # # The active parameter of the active signature. If omitted or the value # lies outside the range of `signatures[activeSignature].parameters` # defaults to 0 if the active signature has parameters. If # the active signature has no parameters it is ignored. # In future version of the protocol this property might become # mandatory to better express the active parameter if the # active signature does have any. # # @return [number] def active_parameter attributes.fetch(:activeParameter) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/create_files_params.rb0000644000004100000410000000132015144416405033042 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # The parameters sent in notifications/requests for user-initiated creation # of files. # class CreateFilesParams def initialize(files:) @attributes = {} @attributes[:files] = files @attributes.freeze end # # An array of all files/folders created in this operation. # # @return [FileCreate[]] def files attributes.fetch(:files) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015700000000000011606 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/versioned_text_document_identifier.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/versioned_text_document_ide0000644000004100000410000000166215144416405034242 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class VersionedTextDocumentIdentifier def initialize(uri:, version:) @attributes = {} @attributes[:uri] = uri @attributes[:version] = version @attributes.freeze end # # The text document's URI. # # @return [string] def uri attributes.fetch(:uri) end # # The version number of this document. # # The version number of a document will increase after each change, # including undo/redo. The number doesn't need to be consecutive. # # @return [number] def version attributes.fetch(:version) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_action.rb0000644000004100000410000000731715144416405031335 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A code action represents a change that can be performed in code, e.g. to fix # a problem or to refactor code. # # A CodeAction must set either `edit` and/or a `command`. If both are supplied, # the `edit` is applied first, then the `command` is executed. # class CodeAction def initialize(title:, kind: nil, diagnostics: nil, is_preferred: nil, disabled: nil, edit: nil, command: nil, data: nil) @attributes = {} @attributes[:title] = title @attributes[:kind] = kind if kind @attributes[:diagnostics] = diagnostics if diagnostics @attributes[:isPreferred] = is_preferred if is_preferred @attributes[:disabled] = disabled if disabled @attributes[:edit] = edit if edit @attributes[:command] = command if command @attributes[:data] = data if data @attributes.freeze end # # A short, human-readable, title for this code action. # # @return [string] def title attributes.fetch(:title) end # # The kind of the code action. # # Used to filter code actions. # # @return [string] def kind attributes.fetch(:kind) end # # The diagnostics that this code action resolves. # # @return [Diagnostic[]] def diagnostics attributes.fetch(:diagnostics) end # # Marks this as a preferred action. Preferred actions are used by the # `auto fix` command and can be targeted by keybindings. # # A quick fix should be marked preferred if it properly addresses the # underlying error. A refactoring should be marked preferred if it is the # most reasonable choice of actions to take. # # @return [boolean] def is_preferred attributes.fetch(:isPreferred) end # # Marks that the code action cannot currently be applied. # # Clients should follow the following guidelines regarding disabled code # actions: # # - Disabled code actions are not shown in automatic lightbulbs code # action menus. # # - Disabled actions are shown as faded out in the code action menu when # the user request a more specific type of code action, such as # refactorings. # # - If the user has a keybinding that auto applies a code action and only # a disabled code actions are returned, the client should show the user # an error message with `reason` in the editor. # # @return [{ reason: string; }] def disabled attributes.fetch(:disabled) end # # The workspace edit this code action performs. # # @return [WorkspaceEdit] def edit attributes.fetch(:edit) end # # A command this code action executes. If a code action # provides an edit and a command, first the edit is # executed and then the command. # # @return [Command] def command attributes.fetch(:command) end # # A data entry field that is preserved on a code action between # a `textDocument/codeAction` and a `codeAction/resolve` request. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inline_value_params.rb0000644000004100000410000000275415144416405033103 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A parameter literal used in inline value requests. # class InlineValueParams def initialize(work_done_token: nil, text_document:, range:, context:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes[:context] = context @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The document range for which inline values should be computed. # # @return [Range] def range attributes.fetch(:range) end # # Additional information about the context in which inline values were # requested. # # @return [InlineValueContext] def context attributes.fetch(:context) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_params.rb0000644000004100000410000000232515144416405032561 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A parameter literal used in inlay hint requests. # class InlayHintParams def initialize(work_done_token: nil, text_document:, range:) @attributes = {} @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:textDocument] = text_document @attributes[:range] = range @attributes.freeze end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The visible document range for which inlay hints should be computed. # # @return [Range] def range attributes.fetch(:range) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/moniker_options.rb0000644000004100000410000000112415144416405032273 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class MonikerOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/unchanged_document_diagnost0000644000004100000410000000212515144416405034176 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A diagnostic report indicating that the last returned # report is still accurate. # class UnchangedDocumentDiagnosticReport def initialize(kind:, result_id:) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id @attributes.freeze end # # A document diagnostic report indicating # no changes to the last result. A server can # only return `unchanged` if result ids are # provided. # # @return [any] def kind attributes.fetch(:kind) end # # A result id which will be sent on the next # diagnostic request for the same document. # # @return [string] def result_id attributes.fetch(:resultId) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_edit.rb0000644000004100000410000000435015144416405032063 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceEdit def initialize(changes: nil, document_changes: nil, change_annotations: nil) @attributes = {} @attributes[:changes] = changes if changes @attributes[:documentChanges] = document_changes if document_changes @attributes[:changeAnnotations] = change_annotations if change_annotations @attributes.freeze end # # Holds changes to existing resources. # # @return [{}] def changes attributes.fetch(:changes) end # # Depending on the client capability # `workspace.workspaceEdit.resourceOperations` document changes are either # an array of `TextDocumentEdit`s to express changes to n different text # documents where each text document edit addresses a specific version of # a text document. Or it can contain above `TextDocumentEdit`s mixed with # create, rename and delete file / folder operations. # # Whether a client supports versioned document edits is expressed via # `workspace.workspaceEdit.documentChanges` client capability. # # If a client neither supports `documentChanges` nor # `workspace.workspaceEdit.resourceOperations` then only plain `TextEdit`s # using the `changes` property are supported. # # @return [TextDocumentEdit[] | (TextDocumentEdit | CreateFile | RenameFile | DeleteFile)[]] def document_changes attributes.fetch(:documentChanges) end # # A map of change annotations that can be referenced in # `AnnotatedTextEdit`s or create, rename and delete file / folder # operations. # # Whether clients honor this property depends on the client capability # `workspace.changeAnnotationSupport`. # # @return [{ [id: string]: ChangeAnnotation; }] def change_annotations attributes.fetch(:changeAnnotations) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015200000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_open_text_document_params.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/did_open_text_document_para0000644000004100000410000000116315144416405034203 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DidOpenTextDocumentParams def initialize(text_document:) @attributes = {} @attributes[:textDocument] = text_document @attributes.freeze end # # The document that was opened. # # @return [TextDocumentItem] def text_document attributes.fetch(:textDocument) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/configuration_params.rb0000644000004100000410000000101615144416405033266 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class ConfigurationParams def initialize(items:) @attributes = {} @attributes[:items] = items @attributes.freeze end # @return [ConfigurationItem[]] def items attributes.fetch(:items) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/signature_help_options.rb0000644000004100000410000000264015144416405033644 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SignatureHelpOptions def initialize(work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The characters that trigger signature help # automatically. # # @return [string[]] def trigger_characters attributes.fetch(:triggerCharacters) end # # List of characters that re-trigger signature help. # # These trigger characters are only active when signature help is already # showing. All trigger characters are also counted as re-trigger # characters. # # @return [string[]] def retrigger_characters attributes.fetch(:retriggerCharacters) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017400000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_on_type_formatting0000644000004100000410000000132615144416405034263 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentOnTypeFormattingClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether on type formatting supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_message_request_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/show_message_request_client0000644000004100000410000000145115144416405034247 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Show message request client capabilities # class ShowMessageRequestClientCapabilities def initialize(message_action_item: nil) @attributes = {} @attributes[:messageActionItem] = message_action_item if message_action_item @attributes.freeze end # # Capabilities specific to the `MessageActionItem` type. # # @return [{ additionalPropertiesSupport?: boolean; }] def message_action_item attributes.fetch(:messageActionItem) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/folding_range_options.rb0000644000004100000410000000113115144416405033423 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class FoldingRangeOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000017100000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/related_unchanged_document_0000644000004100000410000000333015144416405034144 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # An unchanged diagnostic report with a set of related documents. # class RelatedUnchangedDocumentDiagnosticReport def initialize(kind:, result_id:, related_documents: nil) @attributes = {} @attributes[:kind] = kind @attributes[:resultId] = result_id @attributes[:relatedDocuments] = related_documents if related_documents @attributes.freeze end # # A document diagnostic report indicating # no changes to the last result. A server can # only return `unchanged` if result ids are # provided. # # @return [any] def kind attributes.fetch(:kind) end # # A result id which will be sent on the next # diagnostic request for the same document. # # @return [string] def result_id attributes.fetch(:resultId) end # # Diagnostics of related documents. This information is useful # in programming languages where code in a file A can generate # diagnostics in a file B which A depends on. An example of # such a language is C/C++ where marco definitions in a file # a.cpp and result in errors in a header file b.hpp. # # @return [{ [uri: string]: FullDocumentDiagnosticReport | UnchangedDocumentDiagnosticReport; }] def related_documents attributes.fetch(:relatedDocuments) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016000000000000011600 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_definition_client_capa0000644000004100000410000000223315144416405034167 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeDefinitionClientCapabilities def initialize(dynamic_registration: nil, link_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:linkSupport] = link_support if link_support @attributes.freeze end # # Whether implementation supports dynamic registration. If this is set to # `true` the client supports the new `TypeDefinitionRegistrationOptions` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # The client supports additional metadata in the form of definition links. # # @return [boolean] def link_support attributes.fetch(:linkSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016300000000000011603 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_client_c0000644000004100000410000000131715144416405034163 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentHighlightClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether document highlight supports dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000014700000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/document_highlight_options.0000644000004100000410000000113615144416405034153 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DocumentHighlightOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/declaration_params.rb0000644000004100000410000000300115144416405032700 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class DeclarationParams def initialize(text_document:, position:, work_done_token: nil, partial_result_token: nil) @attributes = {} @attributes[:textDocument] = text_document @attributes[:position] = position @attributes[:workDoneToken] = work_done_token if work_done_token @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # The text document. # # @return [TextDocumentIdentifier] def text_document attributes.fetch(:textDocument) end # # The position inside the text document. # # @return [Position] def position attributes.fetch(:position) end # # An optional token that a server can use to report work done progress. # # @return [ProgressToken] def work_done_token attributes.fetch(:workDoneToken) end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016100000000000011601 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_registration_options.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/semantic_tokens_registratio0000644000004100000410000000400215144416405034252 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class SemanticTokensRegistrationOptions def initialize(document_selector:, work_done_progress: nil, legend:, range: nil, full: nil, id: nil) @attributes = {} @attributes[:documentSelector] = document_selector @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:legend] = legend @attributes[:range] = range if range @attributes[:full] = full if full @attributes[:id] = id if id @attributes.freeze end # # A document selector to identify the scope of the registration. If set to # null the document selector provided on the client side will be used. # # @return [DocumentSelector] def document_selector attributes.fetch(:documentSelector) end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end # # The legend used by the server # # @return [SemanticTokensLegend] def legend attributes.fetch(:legend) end # # Server supports providing semantic tokens for a specific range # of a document. # # @return [boolean | {}] def range attributes.fetch(:range) end # # Server supports providing semantic tokens for a full document. # # @return [boolean | { delta?: boolean; }] def full attributes.fetch(:full) end # # The id used to register the request. The id can be used to deregister # the request again. See also Registration#id. # # @return [string] def id attributes.fetch(:id) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000015300000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/inlay_hint_client_capabilit0000644000004100000410000000211515144416405034157 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # Inlay hint client capabilities. # class InlayHintClientCapabilities def initialize(dynamic_registration: nil, resolve_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:resolveSupport] = resolve_support if resolve_support @attributes.freeze end # # Whether inlay hints support dynamic registration. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end # # Indicates which properties a client can resolve lazily on an inlay # hint. # # @return [{ properties: string[]; }] def resolve_support attributes.fetch(:resolveSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/file_operation_filter.rb0000644000004100000410000000167315144416405033431 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A filter to describe in which file operation requests or notifications # the server is interested in. # class FileOperationFilter def initialize(scheme: nil, pattern:) @attributes = {} @attributes[:scheme] = scheme if scheme @attributes[:pattern] = pattern @attributes.freeze end # # A Uri like `file` or `untitled`. # # @return [string] def scheme attributes.fetch(:scheme) end # # The actual file operation pattern. # # @return [FileOperationPattern] def pattern attributes.fetch(:pattern) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/code_lens.rb0000644000004100000410000000274215144416405031016 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # A code lens represents a command that should be shown along with # source text, like the number of references, a way to run tests, etc. # # A code lens is _unresolved_ when no command is associated to it. For # performance reasons the creation of a code lens and resolving should be done # in two stages. # class CodeLens def initialize(range:, command: nil, data: nil) @attributes = {} @attributes[:range] = range @attributes[:command] = command if command @attributes[:data] = data if data @attributes.freeze end # # The range in which this code lens is valid. Should only span a single # line. # # @return [Range] def range attributes.fetch(:range) end # # The command this code lens represents. # # @return [Command] def command attributes.fetch(:command) end # # A data entry field that is preserved on a code lens item between # a code lens and a code lens resolve request. # # @return [LSPAny] def data attributes.fetch(:data) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016500000000000011605 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/linked_editing_range_client0000644000004100000410000000164115144416405034141 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class LinkedEditingRangeClientCapabilities def initialize(dynamic_registration: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes.freeze end # # Whether the implementation supports dynamic registration. # If this is set to `true` the client supports the new # `(TextDocumentRegistrationOptions & StaticRegistrationOptions)` # return value for the corresponding server capability as well. # # @return [boolean] def dynamic_registration attributes.fetch(:dynamicRegistration) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/registration.rb0000644000004100000410000000225215144416405031571 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface # # General parameters to register for a capability. # class Registration def initialize(id:, method:, register_options: nil) @attributes = {} @attributes[:id] = id @attributes[:method] = method @attributes[:registerOptions] = register_options if register_options @attributes.freeze end # # The id used to register the request. The id can be used to deregister # the request again. # # @return [string] def id attributes.fetch(:id) end # # The method / capability to register for. # # @return [string] def method attributes.fetch(:method) end # # Options necessary for the registration. # # @return [LSPAny] def register_options attributes.fetch(:registerOptions) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/partial_result_params.rb0000644000004100000410000000136515144416405033460 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class PartialResultParams def initialize(partial_result_token: nil) @attributes = {} @attributes[:partialResultToken] = partial_result_token if partial_result_token @attributes.freeze end # # An optional token that a server can use to report partial results (e.g. # streaming) to the client. # # @return [ProgressToken] def partial_result_token attributes.fetch(:partialResultToken) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/type_hierarchy_options.rb0000644000004100000410000000113215144416405033645 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class TypeHierarchyOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end ././@LongLink0000644000000000000000000000016200000000000011602 Lustar rootrootlanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rblanguage_server-protocol-3.17.0.5/lib/language_server/protocol/interface/workspace_folders_server_ca0000644000004100000410000000237215144416405034225 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class WorkspaceFoldersServerCapabilities def initialize(supported: nil, change_notifications: nil) @attributes = {} @attributes[:supported] = supported if supported @attributes[:changeNotifications] = change_notifications if change_notifications @attributes.freeze end # # The server has support for workspace folders # # @return [boolean] def supported attributes.fetch(:supported) end # # Whether the server wants to receive workspace folder # change notifications. # # If a string is provided, the string is treated as an ID # under which the notification is registered on the client # side. The ID can be used to unregister for these events # using the `client/unregisterCapability` request. # # @return [string | boolean] def change_notifications attributes.fetch(:changeNotifications) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/interface/hover_options.rb0000644000004100000410000000112215144416405031750 0ustar www-datawww-datamodule LanguageServer module Protocol module Interface class HoverOptions def initialize(work_done_progress: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end # @return [boolean] def work_done_progress attributes.fetch(:workDoneProgress) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/0000755000004100000410000000000015144416405026625 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/transport/io/0000755000004100000410000000000015144416405027234 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/transport/io/reader.rb0000644000004100000410000000131315144416405031021 0ustar www-datawww-data# frozen_string_literal: true require "json" module LanguageServer module Protocol module Transport module Io class Reader def initialize(io) @io = io io.binmode end def read(&block) while buffer = io.gets("\r\n\r\n") content_length = buffer.match(/Content-Length: (\d+)/i)[1].to_i message = io.read(content_length) or raise request = JSON.parse(message, symbolize_names: true) block.call(request) end end def close io.close end private attr_reader :io end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/io/writer.rb0000644000004100000410000000132615144416405031077 0ustar www-datawww-datamodule LanguageServer module Protocol module Transport module Io class Writer attr_reader :io def initialize(io) @io = io io.binmode end def write(response) response_str = JSON.generate(response.merge( jsonrpc: "2.0" )) headers = { "Content-Length" => response_str.bytesize } headers.each do |k, v| io.print "#{k}: #{v}\r\n" end io.print "\r\n" io.print response_str io.flush end def close io.close end end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/stdio/0000755000004100000410000000000015144416405027747 5ustar www-datawww-datalanguage_server-protocol-3.17.0.5/lib/language_server/protocol/transport/stdio/reader.rb0000644000004100000410000000033115144416405031533 0ustar www-datawww-datamodule LanguageServer module Protocol module Transport module Stdio class Reader < Io::Reader def initialize super STDIN end end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/stdio/writer.rb0000644000004100000410000000033215144416405031606 0ustar www-datawww-datamodule LanguageServer module Protocol module Transport module Stdio class Writer < Io::Writer def initialize super STDOUT end end end end end end language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/io.rb0000644000004100000410000000007215144416405027560 0ustar www-datawww-datarequire_relative "io/reader" require_relative "io/writer" language_server-protocol-3.17.0.5/lib/language_server/protocol/transport/stdio.rb0000644000004100000410000000010015144416405030263 0ustar www-datawww-datarequire_relative "stdio/reader" require_relative "stdio/writer" language_server-protocol-3.17.0.5/lib/language_server/protocol/constant.rb0000644000004100000410000001203215144416405026745 0ustar www-datawww-datamodule LanguageServer module Protocol module Constant autoload :CodeActionKind, "language_server/protocol/constant/code_action_kind" autoload :CodeActionTriggerKind, "language_server/protocol/constant/code_action_trigger_kind" autoload :CompletionItemKind, "language_server/protocol/constant/completion_item_kind" autoload :CompletionItemTag, "language_server/protocol/constant/completion_item_tag" autoload :CompletionTriggerKind, "language_server/protocol/constant/completion_trigger_kind" autoload :DiagnosticSeverity, "language_server/protocol/constant/diagnostic_severity" autoload :DiagnosticTag, "language_server/protocol/constant/diagnostic_tag" autoload :DocumentDiagnosticReportKind, "language_server/protocol/constant/document_diagnostic_report_kind" autoload :DocumentHighlightKind, "language_server/protocol/constant/document_highlight_kind" autoload :ErrorCodes, "language_server/protocol/constant/error_codes" autoload :FailureHandlingKind, "language_server/protocol/constant/failure_handling_kind" autoload :FileChangeType, "language_server/protocol/constant/file_change_type" autoload :FileOperationPatternKind, "language_server/protocol/constant/file_operation_pattern_kind" autoload :FoldingRangeKind, "language_server/protocol/constant/folding_range_kind" autoload :InitializeErrorCodes, "language_server/protocol/constant/initialize_error_codes" autoload :InlayHintKind, "language_server/protocol/constant/inlay_hint_kind" autoload :InsertTextFormat, "language_server/protocol/constant/insert_text_format" autoload :InsertTextMode, "language_server/protocol/constant/insert_text_mode" autoload :MarkupKind, "language_server/protocol/constant/markup_kind" autoload :MessageType, "language_server/protocol/constant/message_type" autoload :MonikerKind, "language_server/protocol/constant/moniker_kind" autoload :NotebookCellKind, "language_server/protocol/constant/notebook_cell_kind" autoload :PositionEncodingKind, "language_server/protocol/constant/position_encoding_kind" autoload :PrepareSupportDefaultBehavior, "language_server/protocol/constant/prepare_support_default_behavior" autoload :ResourceOperationKind, "language_server/protocol/constant/resource_operation_kind" autoload :SemanticTokenModifiers, "language_server/protocol/constant/semantic_token_modifiers" autoload :SemanticTokenTypes, "language_server/protocol/constant/semantic_token_types" autoload :SignatureHelpTriggerKind, "language_server/protocol/constant/signature_help_trigger_kind" autoload :SymbolKind, "language_server/protocol/constant/symbol_kind" autoload :SymbolTag, "language_server/protocol/constant/symbol_tag" autoload :TextDocumentSaveReason, "language_server/protocol/constant/text_document_save_reason" autoload :TextDocumentSyncKind, "language_server/protocol/constant/text_document_sync_kind" autoload :TokenFormat, "language_server/protocol/constant/token_format" autoload :UniquenessLevel, "language_server/protocol/constant/uniqueness_level" autoload :WatchKind, "language_server/protocol/constant/watch_kind" require_relative "constant/code_action_kind" require_relative "constant/code_action_trigger_kind" require_relative "constant/completion_item_kind" require_relative "constant/completion_item_tag" require_relative "constant/completion_trigger_kind" require_relative "constant/diagnostic_severity" require_relative "constant/diagnostic_tag" require_relative "constant/document_diagnostic_report_kind" require_relative "constant/document_highlight_kind" require_relative "constant/error_codes" require_relative "constant/failure_handling_kind" require_relative "constant/file_change_type" require_relative "constant/file_operation_pattern_kind" require_relative "constant/folding_range_kind" require_relative "constant/initialize_error_codes" require_relative "constant/inlay_hint_kind" require_relative "constant/insert_text_format" require_relative "constant/insert_text_mode" require_relative "constant/markup_kind" require_relative "constant/message_type" require_relative "constant/moniker_kind" require_relative "constant/notebook_cell_kind" require_relative "constant/position_encoding_kind" require_relative "constant/prepare_support_default_behavior" require_relative "constant/resource_operation_kind" require_relative "constant/semantic_token_modifiers" require_relative "constant/semantic_token_types" require_relative "constant/signature_help_trigger_kind" require_relative "constant/symbol_kind" require_relative "constant/symbol_tag" require_relative "constant/text_document_save_reason" require_relative "constant/text_document_sync_kind" require_relative "constant/token_format" require_relative "constant/uniqueness_level" require_relative "constant/watch_kind" end end end language_server-protocol-3.17.0.5/lib/language_server/protocol.rb0000644000004100000410000000022515144416405025115 0ustar www-datawww-datarequire_relative "protocol/version" require_relative "protocol/constant" require_relative "protocol/interface" require_relative "protocol/transport" language_server-protocol-3.17.0.5/LICENSE.txt0000644000004100000410000000207515144416405020640 0ustar www-datawww-dataThe MIT License (MIT) Copyright (c) 2017 Fumiaki MATSUSHIMA Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. language_server-protocol-3.17.0.5/README.md0000644000004100000410000000566115144416405020300 0ustar www-datawww-data# LanguageServer::Protocol A Language Server Protocol SDK for Ruby. [![Gem Version](https://badge.fury.io/rb/language_server-protocol.svg)](https://badge.fury.io/rb/language_server-protocol) ## Installation Add this line to your application's Gemfile: ```ruby gem 'language_server-protocol' ``` And then execute: $ bundle Or install it yourself as: $ gem install language_server-protocol ## Usage Currently, this gem supports only stdio as transport layer out of box. ```ruby require "language_server-protocol" LSP = LanguageServer::Protocol writer = LSP::Transport::Stdio::Writer.new reader = LSP::Transport::Stdio::Reader.new subscribers = { initialize: -> { LSP::Interface::InitializeResult.new( capabilities: LSP::Interface::ServerCapabilities.new( text_document_sync: LSP::Interface::TextDocumentSyncOptions.new( change: LSP::Constant::TextDocumentSyncKind::FULL ), completion_provider: LSP::Interface::CompletionOptions.new( resolve_provider: true, trigger_characters: %w(.) ), definition_provider: true ) ) } } reader.read do |request| result = subscribers[request[:method].to_sym].call writer.write(id: request[:id], result: result) exit end ``` You can use any IO object as transport layer: ```ruby io = StringIO.new writer = LSP::Transport::Io::Writer.new(io) reader = LSP::Transport::Io::Reader.new(io) ``` ## Versioning language_server-protocol gem does NOT use semantic versioning. This gem versions are structured as `x.y.z.t`. `x.y.z` indicates the [Language server protocol](https://github.com/Microsoft/language-server-protocol/) version and `t` is a monotonically increasing number. ## Development After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/mtsmfm/language_server-protocol-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct. ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT). ## Code of Conduct Everyone interacting in the LanguageServer::Protocol project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mtsmfm/language_server-protocol-ruby/blob/main/CODE_OF_CONDUCT.md).