language_server-protocol 3.17.0.0 → 3.17.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/language_server/protocol/constant/code_action_kind.rb +29 -22
- data/lib/language_server/protocol/constant/code_action_trigger_kind.rb +0 -2
- data/lib/language_server/protocol/constant/completion_item_tag.rb +2 -4
- data/lib/language_server/protocol/constant/completion_trigger_kind.rb +3 -2
- data/lib/language_server/protocol/constant/diagnostic_severity.rb +0 -3
- data/lib/language_server/protocol/constant/diagnostic_tag.rb +2 -4
- data/lib/language_server/protocol/constant/document_diagnostic_report_kind.rb +21 -0
- data/lib/language_server/protocol/constant/error_codes.rb +42 -16
- data/lib/language_server/protocol/constant/failure_handling_kind.rb +10 -9
- data/lib/language_server/protocol/constant/file_change_type.rb +1 -1
- data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +2 -4
- data/lib/language_server/protocol/constant/folding_range_kind.rb +5 -4
- data/lib/language_server/protocol/constant/initialize_error_codes.rb +16 -0
- data/lib/language_server/protocol/constant/inlay_hint_kind.rb +0 -2
- data/lib/language_server/protocol/constant/insert_text_format.rb +0 -2
- data/lib/language_server/protocol/constant/insert_text_mode.rb +0 -2
- data/lib/language_server/protocol/constant/markup_kind.rb +2 -2
- data/lib/language_server/protocol/constant/message_type.rb +0 -3
- data/lib/language_server/protocol/constant/moniker_kind.rb +3 -5
- data/lib/language_server/protocol/constant/notebook_cell_kind.rb +0 -2
- data/lib/language_server/protocol/constant/position_encoding_kind.rb +5 -5
- data/lib/language_server/protocol/constant/prepare_support_default_behavior.rb +1 -1
- data/lib/language_server/protocol/constant/resource_operation_kind.rb +6 -3
- data/lib/language_server/protocol/constant/semantic_token_modifiers.rb +10 -17
- data/lib/language_server/protocol/constant/semantic_token_types.rb +25 -35
- data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +2 -3
- data/lib/language_server/protocol/constant/symbol_tag.rb +0 -2
- data/lib/language_server/protocol/constant/text_document_save_reason.rb +2 -2
- data/lib/language_server/protocol/constant/text_document_sync_kind.rb +3 -3
- data/lib/language_server/protocol/constant/token_format.rb +1 -1
- data/lib/language_server/protocol/constant/uniqueness_level.rb +5 -7
- data/lib/language_server/protocol/constant.rb +6 -4
- data/lib/language_server/protocol/interface/annotated_text_edit.rb +10 -12
- data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +1 -4
- data/lib/language_server/protocol/interface/apply_workspace_edit_result.rb +6 -10
- data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +5 -7
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +0 -5
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +11 -16
- data/lib/language_server/protocol/interface/call_hierarchy_item.rb +9 -13
- data/lib/language_server/protocol/interface/call_hierarchy_options.rb +1 -6
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +2 -8
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +11 -16
- data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +1 -6
- data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +5 -10
- data/lib/language_server/protocol/interface/cancel_params.rb +1 -1
- data/lib/language_server/protocol/interface/change_annotation.rb +2 -4
- data/lib/language_server/protocol/interface/client_capabilities.rb +6 -13
- data/lib/language_server/protocol/interface/code_action.rb +26 -28
- data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +9 -25
- data/lib/language_server/protocol/interface/code_action_context.rb +10 -11
- data/lib/language_server/protocol/interface/code_action_options.rb +11 -16
- data/lib/language_server/protocol/interface/code_action_params.rb +21 -21
- data/lib/language_server/protocol/interface/code_action_registration_options.rb +14 -19
- data/lib/language_server/protocol/interface/code_description.rb +1 -3
- data/lib/language_server/protocol/interface/code_lens.rb +9 -8
- data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/code_lens_options.rb +8 -11
- data/lib/language_server/protocol/interface/code_lens_params.rb +14 -17
- data/lib/language_server/protocol/interface/code_lens_registration_options.rb +11 -14
- data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/color.rb +4 -4
- data/lib/language_server/protocol/interface/color_information.rb +0 -3
- data/lib/language_server/protocol/interface/color_presentation.rb +9 -8
- data/lib/language_server/protocol/interface/color_presentation_params.rb +21 -24
- data/lib/language_server/protocol/interface/command.rb +1 -7
- data/lib/language_server/protocol/interface/completion_client_capabilities.rb +16 -24
- data/lib/language_server/protocol/interface/completion_context.rb +6 -4
- data/lib/language_server/protocol/interface/completion_item.rb +50 -61
- data/lib/language_server/protocol/interface/completion_item_label_details.rb +8 -8
- data/lib/language_server/protocol/interface/completion_list.rb +5 -6
- data/lib/language_server/protocol/interface/completion_options.rb +26 -27
- data/lib/language_server/protocol/interface/completion_params.rb +16 -18
- data/lib/language_server/protocol/interface/completion_registration_options.rb +29 -33
- data/lib/language_server/protocol/interface/configuration_item.rb +2 -2
- data/lib/language_server/protocol/interface/configuration_params.rb +0 -3
- data/lib/language_server/protocol/interface/create_file.rb +4 -6
- data/lib/language_server/protocol/interface/create_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/create_files_params.rb +2 -4
- data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +5 -8
- data/lib/language_server/protocol/interface/declaration_options.rb +1 -1
- data/lib/language_server/protocol/interface/declaration_params.rb +4 -4
- data/lib/language_server/protocol/interface/declaration_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/definition_client_capabilities.rb +2 -7
- data/lib/language_server/protocol/interface/definition_options.rb +1 -4
- data/lib/language_server/protocol/interface/definition_params.rb +4 -7
- data/lib/language_server/protocol/interface/definition_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/delete_file.rb +3 -5
- data/lib/language_server/protocol/interface/delete_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/delete_files_params.rb +2 -4
- data/lib/language_server/protocol/interface/diagnostic.rb +14 -25
- data/lib/language_server/protocol/interface/diagnostic_client_capabilities.rb +7 -7
- data/lib/language_server/protocol/interface/diagnostic_options.rb +8 -10
- data/lib/language_server/protocol/interface/diagnostic_registration_options.rb +12 -14
- data/lib/language_server/protocol/interface/diagnostic_related_information.rb +3 -3
- data/lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb +0 -2
- data/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb +4 -6
- data/lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb +1 -1
- data/lib/language_server/protocol/interface/did_change_configuration_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_change_notebook_document_params.rb +8 -14
- data/lib/language_server/protocol/interface/did_change_text_document_params.rb +11 -12
- data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +6 -8
- data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb +1 -1
- data/lib/language_server/protocol/interface/did_change_workspace_folders_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_close_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_close_text_document_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_open_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_open_text_document_params.rb +0 -3
- data/lib/language_server/protocol/interface/did_save_notebook_document_params.rb +0 -2
- data/lib/language_server/protocol/interface/did_save_text_document_params.rb +1 -4
- data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/document_color_options.rb +1 -1
- data/lib/language_server/protocol/interface/document_color_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_color_registration_options.rb +11 -11
- data/lib/language_server/protocol/interface/document_diagnostic_params.rb +22 -24
- data/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb +1 -3
- data/lib/language_server/protocol/interface/document_filter.rb +19 -25
- data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_formatting_params.rb +10 -13
- data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_highlight.rb +2 -2
- data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_highlight_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_highlight_params.rb +4 -7
- data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_link.rb +9 -10
- data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +2 -7
- data/lib/language_server/protocol/interface/document_link_options.rb +8 -11
- data/lib/language_server/protocol/interface/document_link_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_link_registration_options.rb +11 -14
- data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +0 -3
- data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +2 -5
- data/lib/language_server/protocol/interface/document_range_formatting_options.rb +1 -4
- data/lib/language_server/protocol/interface/document_range_formatting_params.rb +10 -13
- data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/document_symbol.rb +15 -17
- data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +5 -12
- data/lib/language_server/protocol/interface/document_symbol_options.rb +8 -13
- data/lib/language_server/protocol/interface/document_symbol_params.rb +14 -17
- data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +11 -16
- data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/execute_command_options.rb +7 -10
- data/lib/language_server/protocol/interface/execute_command_params.rb +11 -14
- data/lib/language_server/protocol/interface/execute_command_registration_options.rb +8 -8
- data/lib/language_server/protocol/interface/execution_summary.rb +2 -2
- data/lib/language_server/protocol/interface/file_create.rb +0 -2
- data/lib/language_server/protocol/interface/file_delete.rb +0 -2
- data/lib/language_server/protocol/interface/file_event.rb +3 -3
- data/lib/language_server/protocol/interface/file_operation_filter.rb +3 -5
- data/lib/language_server/protocol/interface/file_operation_pattern.rb +10 -8
- data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +1 -3
- data/lib/language_server/protocol/interface/file_operation_registration_options.rb +0 -2
- data/lib/language_server/protocol/interface/file_rename.rb +0 -2
- data/lib/language_server/protocol/interface/file_system_watcher.rb +3 -4
- data/lib/language_server/protocol/interface/folding_range.rb +23 -19
- data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +5 -9
- data/lib/language_server/protocol/interface/folding_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/folding_range_params.rb +14 -17
- data/lib/language_server/protocol/interface/folding_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/formatting_options.rb +4 -10
- data/lib/language_server/protocol/interface/full_document_diagnostic_report.rb +2 -4
- data/lib/language_server/protocol/interface/hover.rb +3 -3
- data/lib/language_server/protocol/interface/hover_client_capabilities.rb +5 -4
- data/lib/language_server/protocol/interface/hover_options.rb +1 -4
- data/lib/language_server/protocol/interface/hover_params.rb +1 -4
- data/lib/language_server/protocol/interface/hover_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/{t.rb → hover_result.rb} +8 -2
- data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +5 -10
- data/lib/language_server/protocol/interface/implementation_options.rb +1 -1
- data/lib/language_server/protocol/interface/implementation_params.rb +4 -4
- data/lib/language_server/protocol/interface/implementation_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/initialize_error.rb +0 -4
- data/lib/language_server/protocol/interface/initialize_params.rb +29 -41
- data/lib/language_server/protocol/interface/initialize_result.rb +1 -6
- data/lib/language_server/protocol/interface/inlay_hint.rb +13 -9
- data/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb +3 -5
- data/lib/language_server/protocol/interface/inlay_hint_label_part.rb +3 -5
- data/lib/language_server/protocol/interface/inlay_hint_options.rb +8 -10
- data/lib/language_server/protocol/interface/inlay_hint_params.rb +11 -13
- data/lib/language_server/protocol/interface/inlay_hint_registration_options.rb +12 -14
- data/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb +1 -3
- data/lib/language_server/protocol/interface/inline_value_client_capabilities.rb +3 -4
- data/lib/language_server/protocol/interface/inline_value_context.rb +3 -5
- data/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb +7 -5
- data/lib/language_server/protocol/interface/inline_value_options.rb +1 -3
- data/lib/language_server/protocol/interface/inline_value_params.rb +10 -12
- data/lib/language_server/protocol/interface/inline_value_registration_options.rb +5 -7
- data/lib/language_server/protocol/interface/inline_value_text.rb +0 -2
- data/lib/language_server/protocol/interface/inline_value_variable_lookup.rb +7 -5
- data/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb +5 -7
- data/lib/language_server/protocol/interface/insert_replace_edit.rb +0 -2
- data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +4 -8
- data/lib/language_server/protocol/interface/linked_editing_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/linked_editing_range_params.rb +1 -1
- data/lib/language_server/protocol/interface/linked_editing_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/linked_editing_ranges.rb +7 -11
- data/lib/language_server/protocol/interface/location.rb +1 -5
- data/lib/language_server/protocol/interface/location_link.rb +11 -13
- data/lib/language_server/protocol/interface/log_message_params.rb +1 -4
- data/lib/language_server/protocol/interface/log_trace_params.rb +8 -1
- data/lib/language_server/protocol/interface/markup_content.rb +18 -16
- data/lib/language_server/protocol/interface/{lsp_object.rb → message.rb} +8 -6
- data/lib/language_server/protocol/interface/moniker.rb +1 -3
- data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +5 -9
- data/lib/language_server/protocol/interface/moniker_options.rb +1 -1
- data/lib/language_server/protocol/interface/moniker_params.rb +4 -4
- data/lib/language_server/protocol/interface/moniker_registration_options.rb +4 -4
- data/lib/language_server/protocol/interface/notebook_cell.rb +4 -8
- data/lib/language_server/protocol/interface/notebook_cell_array_change.rb +4 -6
- data/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb +1 -3
- data/lib/language_server/protocol/interface/notebook_document.rb +4 -8
- data/lib/language_server/protocol/interface/notebook_document_change_event.rb +2 -6
- data/lib/language_server/protocol/interface/notebook_document_client_capabilities.rb +0 -4
- data/lib/language_server/protocol/interface/notebook_document_filter.rb +32 -11
- data/lib/language_server/protocol/interface/notebook_document_identifier.rb +2 -4
- data/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/notebook_document_sync_options.rb +3 -5
- data/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb +3 -5
- data/lib/language_server/protocol/interface/notification_message.rb +48 -0
- data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +18 -17
- data/lib/language_server/protocol/interface/parameter_information.rb +9 -7
- data/lib/language_server/protocol/interface/partial_result_params.rb +3 -3
- data/lib/language_server/protocol/interface/position.rb +6 -40
- data/lib/language_server/protocol/interface/prepare_rename_params.rb +1 -1
- data/lib/language_server/protocol/interface/previous_result_id.rb +1 -3
- data/lib/language_server/protocol/interface/progress_params.rb +1 -1
- data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +5 -16
- data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +4 -8
- data/lib/language_server/protocol/interface/range.rb +0 -13
- data/lib/language_server/protocol/interface/reference_client_capabilities.rb +1 -4
- data/lib/language_server/protocol/interface/reference_context.rb +0 -4
- data/lib/language_server/protocol/interface/reference_options.rb +1 -4
- data/lib/language_server/protocol/interface/reference_params.rb +11 -14
- data/lib/language_server/protocol/interface/reference_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/registration.rb +2 -2
- data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +1 -3
- data/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb +16 -20
- data/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb +15 -19
- data/lib/language_server/protocol/interface/relative_pattern.rb +2 -4
- data/lib/language_server/protocol/interface/rename_client_capabilities.rb +7 -12
- data/lib/language_server/protocol/interface/rename_file.rb +4 -6
- data/lib/language_server/protocol/interface/rename_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/rename_files_params.rb +4 -6
- data/lib/language_server/protocol/interface/rename_options.rb +8 -13
- data/lib/language_server/protocol/interface/rename_params.rb +12 -15
- data/lib/language_server/protocol/interface/rename_registration_options.rb +11 -16
- data/lib/language_server/protocol/interface/request_message.rb +57 -0
- data/lib/language_server/protocol/interface/response_error.rb +52 -0
- data/lib/language_server/protocol/interface/response_message.rb +58 -0
- data/lib/language_server/protocol/interface/save_options.rb +1 -4
- data/lib/language_server/protocol/interface/selection_range.rb +3 -6
- data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +5 -4
- data/lib/language_server/protocol/interface/selection_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/selection_range_params.rb +20 -23
- data/lib/language_server/protocol/interface/selection_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/semantic_tokens.rb +2 -5
- data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +13 -19
- data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +3 -5
- data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +21 -24
- data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +0 -3
- data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +3 -6
- data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +0 -3
- data/lib/language_server/protocol/interface/semantic_tokens_options.rb +9 -12
- data/lib/language_server/protocol/interface/semantic_tokens_params.rb +14 -17
- data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +1 -4
- data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +20 -23
- data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +13 -16
- data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +2 -5
- data/lib/language_server/protocol/interface/server_capabilities.rb +66 -89
- data/lib/language_server/protocol/interface/set_trace_params.rb +4 -1
- data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +2 -4
- data/lib/language_server/protocol/interface/show_document_params.rb +4 -6
- data/lib/language_server/protocol/interface/show_document_result.rb +1 -3
- data/lib/language_server/protocol/interface/show_message_params.rb +1 -4
- data/lib/language_server/protocol/interface/show_message_request_client_capabilities.rb +1 -1
- data/lib/language_server/protocol/interface/show_message_request_params.rb +2 -2
- data/lib/language_server/protocol/interface/signature_help.rb +6 -5
- data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +3 -8
- data/lib/language_server/protocol/interface/signature_help_context.rb +11 -10
- data/lib/language_server/protocol/interface/signature_help_options.rb +14 -17
- data/lib/language_server/protocol/interface/signature_help_params.rb +13 -17
- data/lib/language_server/protocol/interface/signature_help_registration_options.rb +17 -20
- data/lib/language_server/protocol/interface/signature_information.rb +3 -5
- data/lib/language_server/protocol/interface/static_registration_options.rb +2 -3
- data/lib/language_server/protocol/interface/symbol_information.rb +29 -33
- data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +13 -12
- data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +47 -76
- data/lib/language_server/protocol/interface/text_document_content_change_event.rb +8 -6
- data/lib/language_server/protocol/interface/text_document_edit.rb +1 -10
- data/lib/language_server/protocol/interface/text_document_identifier.rb +2 -5
- data/lib/language_server/protocol/interface/text_document_item.rb +3 -7
- data/lib/language_server/protocol/interface/text_document_position_params.rb +0 -4
- data/lib/language_server/protocol/interface/text_document_registration_options.rb +3 -3
- data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +4 -7
- data/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb +4 -4
- data/lib/language_server/protocol/interface/text_document_sync_options.rb +19 -15
- data/lib/language_server/protocol/interface/text_edit.rb +0 -3
- data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +5 -10
- data/lib/language_server/protocol/interface/type_definition_options.rb +1 -1
- data/lib/language_server/protocol/interface/type_definition_params.rb +4 -4
- data/lib/language_server/protocol/interface/type_definition_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/type_hierarchy_item.rb +4 -7
- data/lib/language_server/protocol/interface/type_hierarchy_options.rb +1 -6
- data/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb +1 -6
- data/lib/language_server/protocol/interface/type_hierarchy_registration_options.rb +5 -10
- data/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb +11 -16
- data/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb +11 -16
- data/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb +1 -3
- data/lib/language_server/protocol/interface/unregistration.rb +2 -2
- data/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb +3 -5
- data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +13 -13
- data/lib/language_server/protocol/interface/will_save_text_document_params.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_begin.rb +6 -6
- data/lib/language_server/protocol/interface/work_done_progress_end.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_options.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_params.rb +1 -1
- data/lib/language_server/protocol/interface/work_done_progress_report.rb +7 -6
- data/lib/language_server/protocol/interface/workspace_diagnostic_params.rb +21 -23
- data/lib/language_server/protocol/interface/workspace_diagnostic_report.rb +0 -2
- data/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb +0 -2
- data/lib/language_server/protocol/interface/workspace_edit.rb +17 -28
- data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +6 -15
- data/lib/language_server/protocol/interface/workspace_folder.rb +1 -4
- data/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb +3 -3
- data/lib/language_server/protocol/interface/workspace_full_document_diagnostic_report.rb +22 -24
- data/lib/language_server/protocol/interface/workspace_symbol.rb +28 -34
- data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +7 -13
- data/lib/language_server/protocol/interface/workspace_symbol_options.rb +8 -13
- data/lib/language_server/protocol/interface/workspace_symbol_params.rb +16 -16
- data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +8 -13
- data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb +21 -23
- data/lib/language_server/protocol/interface.rb +16 -38
- data/lib/language_server/protocol/version.rb +1 -1
- metadata +10 -23
- data/lib/language_server/protocol/constant/lsp_error_codes.rb +0 -55
- data/lib/language_server/protocol/constant/trace_values.rb +0 -20
- data/lib/language_server/protocol/interface/base_symbol_information.rb +0 -68
- data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb +0 -30
- data/lib/language_server/protocol/interface/document_diagnostic_report.rb +0 -77
- data/lib/language_server/protocol/interface/file_operation_client_capabilities.rb +0 -95
- data/lib/language_server/protocol/interface/file_operation_options.rb +0 -83
- data/lib/language_server/protocol/interface/general_client_capabilities.rb +0 -91
- data/lib/language_server/protocol/interface/glob_pattern.rb +0 -48
- data/lib/language_server/protocol/interface/inline_value.rb +0 -78
- data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +0 -59
- data/lib/language_server/protocol/interface/prepare_rename_result.rb +0 -60
- data/lib/language_server/protocol/interface/resource_operation.rb +0 -47
- data/lib/language_server/protocol/interface/text_document_filter.rb +0 -69
- data/lib/language_server/protocol/interface/type_hierarchy_client_capabilities.rb +0 -38
- data/lib/language_server/protocol/interface/window_client_capabilities.rb +0 -63
- data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +0 -176
- data/lib/language_server/protocol/interface/workspace_document_diagnostic_report.rb +0 -77
- data/lib/language_server/protocol/interface/workspace_folders_initialize_params.rb +0 -39
@@ -1,47 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# A generic resource operation.
|
6
|
-
#
|
7
|
-
class ResourceOperation
|
8
|
-
def initialize(kind:, annotation_id: nil)
|
9
|
-
@attributes = {}
|
10
|
-
|
11
|
-
@attributes[:kind] = kind
|
12
|
-
@attributes[:annotationId] = annotation_id if annotation_id
|
13
|
-
|
14
|
-
@attributes.freeze
|
15
|
-
end
|
16
|
-
|
17
|
-
#
|
18
|
-
# The resource operation kind.
|
19
|
-
#
|
20
|
-
# @return [string]
|
21
|
-
def kind
|
22
|
-
attributes.fetch(:kind)
|
23
|
-
end
|
24
|
-
|
25
|
-
#
|
26
|
-
# An optional annotation identifier describing the operation.
|
27
|
-
#
|
28
|
-
# @since 3.16.0
|
29
|
-
#
|
30
|
-
# @return [ChangeAnnotationIdentifier | nil]
|
31
|
-
def annotation_id
|
32
|
-
attributes.fetch(:annotationId)
|
33
|
-
end
|
34
|
-
|
35
|
-
attr_reader :attributes
|
36
|
-
|
37
|
-
def to_hash
|
38
|
-
attributes
|
39
|
-
end
|
40
|
-
|
41
|
-
def to_json(*args)
|
42
|
-
to_hash.to_json(*args)
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
@@ -1,69 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# A document filter denotes a document by different properties like
|
6
|
-
# the [language](#TextDocument.languageId), the [scheme](#Uri.scheme) of
|
7
|
-
# its resource, or a glob-pattern that is applied to the [path](#TextDocument.fileName).
|
8
|
-
#
|
9
|
-
# Glob patterns can have the following syntax:
|
10
|
-
# - `*` to match one or more characters in a path segment
|
11
|
-
# - `?` to match on one character in a path segment
|
12
|
-
# - `**` to match any number of path segments, including none
|
13
|
-
# - `{}` to group sub patterns into an OR expression. (e.g. `**/*.{ts,js}` matches all TypeScript and JavaScript files)
|
14
|
-
# - `[]` to declare a range of characters to match in a path segment (e.g., `example.[0-9]` to match on `example.0`, `example.1`, …)
|
15
|
-
# - `[!...]` 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`)
|
16
|
-
#
|
17
|
-
# @sample A language filter that applies to typescript files on disk: `{ language: 'typescript', scheme: 'file' }`
|
18
|
-
# @sample A language filter that applies to all package.json paths: `{ language: 'json', pattern: '**package.json' }`
|
19
|
-
#
|
20
|
-
# @since 3.17.0
|
21
|
-
#
|
22
|
-
class TextDocumentFilter
|
23
|
-
def initialize(language:, scheme: nil, pattern: nil)
|
24
|
-
@attributes = {}
|
25
|
-
|
26
|
-
@attributes[:language] = language
|
27
|
-
@attributes[:scheme] = scheme if scheme
|
28
|
-
@attributes[:pattern] = pattern if pattern
|
29
|
-
|
30
|
-
@attributes.freeze
|
31
|
-
end
|
32
|
-
|
33
|
-
#
|
34
|
-
# A language id, like `typescript`. */
|
35
|
-
#
|
36
|
-
# @return [string]
|
37
|
-
def language
|
38
|
-
attributes.fetch(:language)
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# A Uri [scheme](#Uri.scheme), like `file` or `untitled`. */
|
43
|
-
#
|
44
|
-
# @return [string | nil]
|
45
|
-
def scheme
|
46
|
-
attributes.fetch(:scheme)
|
47
|
-
end
|
48
|
-
|
49
|
-
#
|
50
|
-
# A glob pattern, like `*.{ts,js}`. */
|
51
|
-
#
|
52
|
-
# @return [string | nil]
|
53
|
-
def pattern
|
54
|
-
attributes.fetch(:pattern)
|
55
|
-
end
|
56
|
-
|
57
|
-
attr_reader :attributes
|
58
|
-
|
59
|
-
def to_hash
|
60
|
-
attributes
|
61
|
-
end
|
62
|
-
|
63
|
-
def to_json(*args)
|
64
|
-
to_hash.to_json(*args)
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
69
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# @since 3.17.0
|
6
|
-
#
|
7
|
-
class TypeHierarchyClientCapabilities
|
8
|
-
def initialize(dynamic_registration: nil)
|
9
|
-
@attributes = {}
|
10
|
-
|
11
|
-
@attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration
|
12
|
-
|
13
|
-
@attributes.freeze
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# Whether implementation supports dynamic registration. If this is set to `true`
|
18
|
-
# the client supports the new `(TextDocumentRegistrationOptions & StaticRegistrationOptions)`
|
19
|
-
# return value for the corresponding server capability as well.
|
20
|
-
#
|
21
|
-
# @return [boolean | nil]
|
22
|
-
def dynamic_registration
|
23
|
-
attributes.fetch(:dynamicRegistration)
|
24
|
-
end
|
25
|
-
|
26
|
-
attr_reader :attributes
|
27
|
-
|
28
|
-
def to_hash
|
29
|
-
attributes
|
30
|
-
end
|
31
|
-
|
32
|
-
def to_json(*args)
|
33
|
-
to_hash.to_json(*args)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,63 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
class WindowClientCapabilities
|
5
|
-
def initialize(work_done_progress: nil, show_message: nil, show_document: nil)
|
6
|
-
@attributes = {}
|
7
|
-
|
8
|
-
@attributes[:workDoneProgress] = work_done_progress if work_done_progress
|
9
|
-
@attributes[:showMessage] = show_message if show_message
|
10
|
-
@attributes[:showDocument] = show_document if show_document
|
11
|
-
|
12
|
-
@attributes.freeze
|
13
|
-
end
|
14
|
-
|
15
|
-
#
|
16
|
-
# It indicates whether the client supports server initiated
|
17
|
-
# progress using the `window/workDoneProgress/create` request.
|
18
|
-
#
|
19
|
-
# The capability also controls Whether client supports handling
|
20
|
-
# of progress notifications. If set servers are allowed to report a
|
21
|
-
# `workDoneProgress` property in the request specific server
|
22
|
-
# capabilities.
|
23
|
-
#
|
24
|
-
# @since 3.15.0
|
25
|
-
#
|
26
|
-
# @return [boolean | nil]
|
27
|
-
def work_done_progress
|
28
|
-
attributes.fetch(:workDoneProgress)
|
29
|
-
end
|
30
|
-
|
31
|
-
#
|
32
|
-
# Capabilities specific to the showMessage request.
|
33
|
-
#
|
34
|
-
# @since 3.16.0
|
35
|
-
#
|
36
|
-
# @return [ShowMessageRequestClientCapabilities | nil]
|
37
|
-
def show_message
|
38
|
-
attributes.fetch(:showMessage)
|
39
|
-
end
|
40
|
-
|
41
|
-
#
|
42
|
-
# Capabilities specific to the showDocument request.
|
43
|
-
#
|
44
|
-
# @since 3.16.0
|
45
|
-
#
|
46
|
-
# @return [ShowDocumentClientCapabilities | nil]
|
47
|
-
def show_document
|
48
|
-
attributes.fetch(:showDocument)
|
49
|
-
end
|
50
|
-
|
51
|
-
attr_reader :attributes
|
52
|
-
|
53
|
-
def to_hash
|
54
|
-
attributes
|
55
|
-
end
|
56
|
-
|
57
|
-
def to_json(*args)
|
58
|
-
to_hash.to_json(*args)
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
@@ -1,176 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# Workspace specific client capabilities.
|
6
|
-
#
|
7
|
-
class WorkspaceClientCapabilities
|
8
|
-
def initialize(apply_edit: nil, workspace_edit: nil, did_change_configuration: nil, did_change_watched_files: nil, symbol: nil, execute_command: nil, workspace_folders: nil, configuration: nil, semantic_tokens: nil, code_lens: nil, file_operations: nil, inline_value: nil, inlay_hint: nil, diagnostics: nil)
|
9
|
-
@attributes = {}
|
10
|
-
|
11
|
-
@attributes[:applyEdit] = apply_edit if apply_edit
|
12
|
-
@attributes[:workspaceEdit] = workspace_edit if workspace_edit
|
13
|
-
@attributes[:didChangeConfiguration] = did_change_configuration if did_change_configuration
|
14
|
-
@attributes[:didChangeWatchedFiles] = did_change_watched_files if did_change_watched_files
|
15
|
-
@attributes[:symbol] = symbol if symbol
|
16
|
-
@attributes[:executeCommand] = execute_command if execute_command
|
17
|
-
@attributes[:workspaceFolders] = workspace_folders if workspace_folders
|
18
|
-
@attributes[:configuration] = configuration if configuration
|
19
|
-
@attributes[:semanticTokens] = semantic_tokens if semantic_tokens
|
20
|
-
@attributes[:codeLens] = code_lens if code_lens
|
21
|
-
@attributes[:fileOperations] = file_operations if file_operations
|
22
|
-
@attributes[:inlineValue] = inline_value if inline_value
|
23
|
-
@attributes[:inlayHint] = inlay_hint if inlay_hint
|
24
|
-
@attributes[:diagnostics] = diagnostics if diagnostics
|
25
|
-
|
26
|
-
@attributes.freeze
|
27
|
-
end
|
28
|
-
|
29
|
-
#
|
30
|
-
# The client supports applying batch edits
|
31
|
-
# to the workspace by supporting the request
|
32
|
-
# 'workspace/applyEdit'
|
33
|
-
#
|
34
|
-
# @return [boolean | nil]
|
35
|
-
def apply_edit
|
36
|
-
attributes.fetch(:applyEdit)
|
37
|
-
end
|
38
|
-
|
39
|
-
#
|
40
|
-
# Capabilities specific to `WorkspaceEdit`s.
|
41
|
-
#
|
42
|
-
# @return [WorkspaceEditClientCapabilities | nil]
|
43
|
-
def workspace_edit
|
44
|
-
attributes.fetch(:workspaceEdit)
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# Capabilities specific to the `workspace/didChangeConfiguration` notification.
|
49
|
-
#
|
50
|
-
# @return [DidChangeConfigurationClientCapabilities | nil]
|
51
|
-
def did_change_configuration
|
52
|
-
attributes.fetch(:didChangeConfiguration)
|
53
|
-
end
|
54
|
-
|
55
|
-
#
|
56
|
-
# Capabilities specific to the `workspace/didChangeWatchedFiles` notification.
|
57
|
-
#
|
58
|
-
# @return [DidChangeWatchedFilesClientCapabilities | nil]
|
59
|
-
def did_change_watched_files
|
60
|
-
attributes.fetch(:didChangeWatchedFiles)
|
61
|
-
end
|
62
|
-
|
63
|
-
#
|
64
|
-
# Capabilities specific to the `workspace/symbol` request.
|
65
|
-
#
|
66
|
-
# @return [WorkspaceSymbolClientCapabilities | nil]
|
67
|
-
def symbol
|
68
|
-
attributes.fetch(:symbol)
|
69
|
-
end
|
70
|
-
|
71
|
-
#
|
72
|
-
# Capabilities specific to the `workspace/executeCommand` request.
|
73
|
-
#
|
74
|
-
# @return [ExecuteCommandClientCapabilities | nil]
|
75
|
-
def execute_command
|
76
|
-
attributes.fetch(:executeCommand)
|
77
|
-
end
|
78
|
-
|
79
|
-
#
|
80
|
-
# The client has support for workspace folders.
|
81
|
-
#
|
82
|
-
# @since 3.6.0
|
83
|
-
#
|
84
|
-
# @return [boolean | nil]
|
85
|
-
def workspace_folders
|
86
|
-
attributes.fetch(:workspaceFolders)
|
87
|
-
end
|
88
|
-
|
89
|
-
#
|
90
|
-
# The client supports `workspace/configuration` requests.
|
91
|
-
#
|
92
|
-
# @since 3.6.0
|
93
|
-
#
|
94
|
-
# @return [boolean | nil]
|
95
|
-
def configuration
|
96
|
-
attributes.fetch(:configuration)
|
97
|
-
end
|
98
|
-
|
99
|
-
#
|
100
|
-
# Capabilities specific to the semantic token requests scoped to the
|
101
|
-
# workspace.
|
102
|
-
#
|
103
|
-
# @since 3.16.0.
|
104
|
-
#
|
105
|
-
# @return [SemanticTokensWorkspaceClientCapabilities | nil]
|
106
|
-
def semantic_tokens
|
107
|
-
attributes.fetch(:semanticTokens)
|
108
|
-
end
|
109
|
-
|
110
|
-
#
|
111
|
-
# Capabilities specific to the code lens requests scoped to the
|
112
|
-
# workspace.
|
113
|
-
#
|
114
|
-
# @since 3.16.0.
|
115
|
-
#
|
116
|
-
# @return [CodeLensWorkspaceClientCapabilities | nil]
|
117
|
-
def code_lens
|
118
|
-
attributes.fetch(:codeLens)
|
119
|
-
end
|
120
|
-
|
121
|
-
#
|
122
|
-
# The client has support for file notifications/requests for user operations on files.
|
123
|
-
#
|
124
|
-
# Since 3.16.0
|
125
|
-
#
|
126
|
-
# @return [FileOperationClientCapabilities | nil]
|
127
|
-
def file_operations
|
128
|
-
attributes.fetch(:fileOperations)
|
129
|
-
end
|
130
|
-
|
131
|
-
#
|
132
|
-
# Capabilities specific to the inline values requests scoped to the
|
133
|
-
# workspace.
|
134
|
-
#
|
135
|
-
# @since 3.17.0.
|
136
|
-
#
|
137
|
-
# @return [InlineValueWorkspaceClientCapabilities | nil]
|
138
|
-
def inline_value
|
139
|
-
attributes.fetch(:inlineValue)
|
140
|
-
end
|
141
|
-
|
142
|
-
#
|
143
|
-
# Capabilities specific to the inlay hint requests scoped to the
|
144
|
-
# workspace.
|
145
|
-
#
|
146
|
-
# @since 3.17.0.
|
147
|
-
#
|
148
|
-
# @return [InlayHintWorkspaceClientCapabilities | nil]
|
149
|
-
def inlay_hint
|
150
|
-
attributes.fetch(:inlayHint)
|
151
|
-
end
|
152
|
-
|
153
|
-
#
|
154
|
-
# Capabilities specific to the diagnostic requests scoped to the
|
155
|
-
# workspace.
|
156
|
-
#
|
157
|
-
# @since 3.17.0.
|
158
|
-
#
|
159
|
-
# @return [DiagnosticWorkspaceClientCapabilities | nil]
|
160
|
-
def diagnostics
|
161
|
-
attributes.fetch(:diagnostics)
|
162
|
-
end
|
163
|
-
|
164
|
-
attr_reader :attributes
|
165
|
-
|
166
|
-
def to_hash
|
167
|
-
attributes
|
168
|
-
end
|
169
|
-
|
170
|
-
def to_json(*args)
|
171
|
-
to_hash.to_json(*args)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
end
|
175
|
-
end
|
176
|
-
end
|
@@ -1,77 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
#
|
5
|
-
# A workspace diagnostic document report.
|
6
|
-
#
|
7
|
-
# @since 3.17.0
|
8
|
-
#
|
9
|
-
class WorkspaceDocumentDiagnosticReport
|
10
|
-
def initialize(uri:, version:, kind:, result_id: nil, items:)
|
11
|
-
@attributes = {}
|
12
|
-
|
13
|
-
@attributes[:uri] = uri
|
14
|
-
@attributes[:version] = version
|
15
|
-
@attributes[:kind] = kind
|
16
|
-
@attributes[:resultId] = result_id if result_id
|
17
|
-
@attributes[:items] = items
|
18
|
-
|
19
|
-
@attributes.freeze
|
20
|
-
end
|
21
|
-
|
22
|
-
#
|
23
|
-
# The URI for which diagnostic information is reported.
|
24
|
-
#
|
25
|
-
# @return [DocumentUri]
|
26
|
-
def uri
|
27
|
-
attributes.fetch(:uri)
|
28
|
-
end
|
29
|
-
|
30
|
-
#
|
31
|
-
# The version number for which the diagnostics are reported.
|
32
|
-
# If the document is not marked as open `null` can be provided.
|
33
|
-
#
|
34
|
-
# @return [integer | null]
|
35
|
-
def version
|
36
|
-
attributes.fetch(:version)
|
37
|
-
end
|
38
|
-
|
39
|
-
#
|
40
|
-
# A full document diagnostic report.
|
41
|
-
#
|
42
|
-
# @return ["full"]
|
43
|
-
def kind
|
44
|
-
attributes.fetch(:kind)
|
45
|
-
end
|
46
|
-
|
47
|
-
#
|
48
|
-
# An optional result id. If provided it will
|
49
|
-
# be sent on the next diagnostic request for the
|
50
|
-
# same document.
|
51
|
-
#
|
52
|
-
# @return [string | nil]
|
53
|
-
def result_id
|
54
|
-
attributes.fetch(:resultId)
|
55
|
-
end
|
56
|
-
|
57
|
-
#
|
58
|
-
# The actual items.
|
59
|
-
#
|
60
|
-
# @return [Diagnostic[]]
|
61
|
-
def items
|
62
|
-
attributes.fetch(:items)
|
63
|
-
end
|
64
|
-
|
65
|
-
attr_reader :attributes
|
66
|
-
|
67
|
-
def to_hash
|
68
|
-
attributes
|
69
|
-
end
|
70
|
-
|
71
|
-
def to_json(*args)
|
72
|
-
to_hash.to_json(*args)
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
@@ -1,39 +0,0 @@
|
|
1
|
-
module LanguageServer
|
2
|
-
module Protocol
|
3
|
-
module Interface
|
4
|
-
class WorkspaceFoldersInitializeParams
|
5
|
-
def initialize(workspace_folders: nil)
|
6
|
-
@attributes = {}
|
7
|
-
|
8
|
-
@attributes[:workspaceFolders] = workspace_folders if workspace_folders
|
9
|
-
|
10
|
-
@attributes.freeze
|
11
|
-
end
|
12
|
-
|
13
|
-
#
|
14
|
-
# The workspace folders configured in the client when the server starts.
|
15
|
-
#
|
16
|
-
# This property is only available if the client supports workspace folders.
|
17
|
-
# It can be `null` if the client supports workspace folders but none are
|
18
|
-
# configured.
|
19
|
-
#
|
20
|
-
# @since 3.6.0
|
21
|
-
#
|
22
|
-
# @return [WorkspaceFolder[] | null]
|
23
|
-
def workspace_folders
|
24
|
-
attributes.fetch(:workspaceFolders)
|
25
|
-
end
|
26
|
-
|
27
|
-
attr_reader :attributes
|
28
|
-
|
29
|
-
def to_hash
|
30
|
-
attributes
|
31
|
-
end
|
32
|
-
|
33
|
-
def to_json(*args)
|
34
|
-
to_hash.to_json(*args)
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|