language_server-protocol 3.16.0.3 → 3.17.0.0
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 +25 -24
- data/lib/language_server/protocol/constant/code_action_trigger_kind.rb +24 -0
- data/lib/language_server/protocol/constant/completion_item_tag.rb +4 -2
- data/lib/language_server/protocol/constant/completion_trigger_kind.rb +2 -3
- data/lib/language_server/protocol/constant/diagnostic_severity.rb +3 -0
- data/lib/language_server/protocol/constant/diagnostic_tag.rb +4 -2
- data/lib/language_server/protocol/constant/error_codes.rb +19 -14
- data/lib/language_server/protocol/constant/failure_handling_kind.rb +9 -10
- data/lib/language_server/protocol/constant/file_change_type.rb +1 -1
- data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +4 -2
- data/lib/language_server/protocol/constant/folding_range_kind.rb +23 -0
- data/lib/language_server/protocol/constant/inlay_hint_kind.rb +21 -0
- data/lib/language_server/protocol/constant/insert_text_format.rb +2 -0
- data/lib/language_server/protocol/constant/insert_text_mode.rb +2 -0
- data/lib/language_server/protocol/constant/lsp_error_codes.rb +55 -0
- data/lib/language_server/protocol/constant/markup_kind.rb +2 -2
- data/lib/language_server/protocol/constant/message_type.rb +3 -0
- data/lib/language_server/protocol/constant/moniker_kind.rb +26 -0
- data/lib/language_server/protocol/constant/notebook_cell_kind.rb +21 -0
- data/lib/language_server/protocol/constant/position_encoding_kind.rb +32 -0
- data/lib/language_server/protocol/constant/resource_operation_kind.rb +3 -6
- data/lib/language_server/protocol/constant/semantic_token_modifiers.rb +25 -0
- data/lib/language_server/protocol/constant/semantic_token_types.rb +45 -0
- data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +3 -2
- data/lib/language_server/protocol/constant/symbol_tag.rb +2 -0
- 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/trace_values.rb +20 -0
- data/lib/language_server/protocol/constant/uniqueness_level.rb +33 -0
- data/lib/language_server/protocol/constant.rb +22 -4
- data/lib/language_server/protocol/interface/annotated_text_edit.rb +12 -10
- data/lib/language_server/protocol/interface/apply_workspace_edit_params.rb +4 -1
- data/lib/language_server/protocol/interface/{apply_workspace_edit_response.rb → apply_workspace_edit_result.rb} +11 -7
- data/lib/language_server/protocol/interface/base_symbol_information.rb +68 -0
- data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +7 -5
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +5 -0
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +16 -11
- data/lib/language_server/protocol/interface/call_hierarchy_item.rb +14 -10
- data/lib/language_server/protocol/interface/call_hierarchy_options.rb +6 -1
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +8 -2
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +16 -11
- data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +6 -1
- data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +10 -5
- data/lib/language_server/protocol/interface/cancel_params.rb +1 -1
- data/lib/language_server/protocol/interface/change_annotation.rb +4 -2
- data/lib/language_server/protocol/interface/client_capabilities.rb +22 -6
- data/lib/language_server/protocol/interface/code_action.rb +28 -26
- data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +25 -9
- data/lib/language_server/protocol/interface/code_action_context.rb +20 -10
- data/lib/language_server/protocol/interface/code_action_options.rb +16 -11
- data/lib/language_server/protocol/interface/code_action_params.rb +21 -21
- data/lib/language_server/protocol/interface/code_action_registration_options.rb +19 -14
- data/lib/language_server/protocol/interface/code_description.rb +3 -1
- data/lib/language_server/protocol/interface/code_lens.rb +8 -9
- data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/code_lens_options.rb +11 -8
- data/lib/language_server/protocol/interface/code_lens_params.rb +17 -14
- data/lib/language_server/protocol/interface/code_lens_registration_options.rb +14 -11
- data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/color.rb +4 -4
- data/lib/language_server/protocol/interface/color_information.rb +3 -0
- data/lib/language_server/protocol/interface/color_presentation.rb +8 -9
- data/lib/language_server/protocol/interface/color_presentation_params.rb +24 -21
- data/lib/language_server/protocol/interface/command.rb +7 -1
- data/lib/language_server/protocol/interface/completion_client_capabilities.rb +33 -5
- data/lib/language_server/protocol/interface/completion_context.rb +4 -6
- data/lib/language_server/protocol/interface/completion_item.rb +92 -49
- data/lib/language_server/protocol/interface/completion_item_label_details.rb +49 -0
- data/lib/language_server/protocol/interface/completion_list.rb +28 -5
- data/lib/language_server/protocol/interface/completion_options.rb +36 -25
- data/lib/language_server/protocol/interface/completion_params.rb +18 -16
- data/lib/language_server/protocol/interface/completion_registration_options.rb +42 -28
- data/lib/language_server/protocol/interface/configuration_item.rb +2 -2
- data/lib/language_server/protocol/interface/configuration_params.rb +3 -0
- data/lib/language_server/protocol/interface/create_file.rb +7 -5
- data/lib/language_server/protocol/interface/create_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/create_files_params.rb +4 -2
- data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +8 -5
- 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 +7 -2
- data/lib/language_server/protocol/interface/definition_options.rb +4 -1
- data/lib/language_server/protocol/interface/definition_params.rb +7 -4
- data/lib/language_server/protocol/interface/definition_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/delete_file.rb +6 -4
- data/lib/language_server/protocol/interface/delete_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/delete_files_params.rb +4 -2
- data/lib/language_server/protocol/interface/diagnostic.rb +25 -14
- data/lib/language_server/protocol/interface/diagnostic_client_capabilities.rb +49 -0
- data/lib/language_server/protocol/interface/diagnostic_options.rb +66 -0
- data/lib/language_server/protocol/interface/diagnostic_registration_options.rb +86 -0
- data/lib/language_server/protocol/interface/diagnostic_related_information.rb +3 -3
- data/lib/language_server/protocol/interface/diagnostic_server_cancellation_data.rb +35 -0
- data/lib/language_server/protocol/interface/diagnostic_workspace_client_capabilities.rb +44 -0
- 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 +4 -1
- data/lib/language_server/protocol/interface/did_change_configuration_registration_options.rb +30 -0
- data/lib/language_server/protocol/interface/did_change_notebook_document_params.rb +62 -0
- data/lib/language_server/protocol/interface/did_change_text_document_params.rb +12 -11
- data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +17 -5
- data/lib/language_server/protocol/interface/did_change_watched_files_params.rb +3 -0
- 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 +3 -0
- data/lib/language_server/protocol/interface/did_close_notebook_document_params.rb +48 -0
- data/lib/language_server/protocol/interface/did_close_text_document_params.rb +3 -0
- data/lib/language_server/protocol/interface/did_open_notebook_document_params.rb +48 -0
- data/lib/language_server/protocol/interface/did_open_text_document_params.rb +3 -0
- data/lib/language_server/protocol/interface/did_save_notebook_document_params.rb +38 -0
- data/lib/language_server/protocol/interface/did_save_text_document_params.rb +4 -1
- data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +4 -2
- data/lib/language_server/protocol/interface/document_color_options.rb +1 -1
- data/lib/language_server/protocol/interface/document_color_params.rb +17 -14
- data/lib/language_server/protocol/interface/document_color_registration_options.rb +11 -11
- data/lib/language_server/protocol/interface/document_diagnostic_params.rb +75 -0
- data/lib/language_server/protocol/interface/document_diagnostic_report.rb +77 -0
- data/lib/language_server/protocol/interface/document_diagnostic_report_partial_result.rb +35 -0
- data/lib/language_server/protocol/interface/document_filter.rb +25 -19
- data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/document_formatting_options.rb +4 -1
- data/lib/language_server/protocol/interface/document_formatting_params.rb +13 -10
- data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/document_highlight.rb +2 -2
- data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/document_highlight_options.rb +4 -1
- data/lib/language_server/protocol/interface/document_highlight_params.rb +7 -4
- data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/document_link.rb +10 -9
- data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +7 -2
- data/lib/language_server/protocol/interface/document_link_options.rb +11 -8
- data/lib/language_server/protocol/interface/document_link_params.rb +17 -14
- data/lib/language_server/protocol/interface/document_link_registration_options.rb +14 -11
- data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +5 -2
- data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +12 -4
- data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +8 -5
- data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +5 -2
- data/lib/language_server/protocol/interface/document_range_formatting_options.rb +4 -1
- data/lib/language_server/protocol/interface/document_range_formatting_params.rb +13 -10
- data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/document_symbol.rb +18 -16
- data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +12 -5
- data/lib/language_server/protocol/interface/document_symbol_options.rb +13 -8
- data/lib/language_server/protocol/interface/document_symbol_params.rb +17 -14
- data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +16 -11
- data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/execute_command_options.rb +10 -7
- data/lib/language_server/protocol/interface/execute_command_params.rb +14 -11
- data/lib/language_server/protocol/interface/execute_command_registration_options.rb +8 -8
- data/lib/language_server/protocol/interface/execution_summary.rb +45 -0
- data/lib/language_server/protocol/interface/file_create.rb +2 -0
- data/lib/language_server/protocol/interface/file_delete.rb +2 -0
- data/lib/language_server/protocol/interface/file_event.rb +3 -3
- data/lib/language_server/protocol/interface/file_operation_client_capabilities.rb +95 -0
- data/lib/language_server/protocol/interface/file_operation_filter.rb +5 -3
- data/lib/language_server/protocol/interface/file_operation_options.rb +83 -0
- data/lib/language_server/protocol/interface/file_operation_pattern.rb +8 -10
- data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +3 -1
- data/lib/language_server/protocol/interface/file_operation_registration_options.rb +2 -0
- data/lib/language_server/protocol/interface/file_rename.rb +2 -0
- data/lib/language_server/protocol/interface/file_system_watcher.rb +4 -14
- data/lib/language_server/protocol/interface/folding_range.rb +30 -23
- data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +26 -4
- data/lib/language_server/protocol/interface/folding_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/folding_range_params.rb +17 -14
- data/lib/language_server/protocol/interface/folding_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/formatting_options.rb +10 -4
- data/lib/language_server/protocol/interface/full_document_diagnostic_report.rb +58 -0
- data/lib/language_server/protocol/interface/general_client_capabilities.rb +91 -0
- data/lib/language_server/protocol/interface/glob_pattern.rb +48 -0
- data/lib/language_server/protocol/interface/hover.rb +3 -3
- data/lib/language_server/protocol/interface/hover_client_capabilities.rb +4 -5
- data/lib/language_server/protocol/interface/hover_options.rb +4 -1
- data/lib/language_server/protocol/interface/hover_params.rb +4 -1
- data/lib/language_server/protocol/interface/hover_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +10 -5
- 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 +2 -1
- data/lib/language_server/protocol/interface/initialize_params.rb +41 -29
- data/lib/language_server/protocol/interface/initialize_result.rb +6 -1
- data/lib/language_server/protocol/interface/inlay_hint.rb +118 -0
- data/lib/language_server/protocol/interface/inlay_hint_client_capabilities.rb +48 -0
- data/lib/language_server/protocol/interface/inlay_hint_label_part.rb +81 -0
- data/lib/language_server/protocol/interface/inlay_hint_options.rb +45 -0
- data/lib/language_server/protocol/interface/inlay_hint_params.rb +56 -0
- data/lib/language_server/protocol/interface/inlay_hint_registration_options.rb +65 -0
- data/lib/language_server/protocol/interface/inlay_hint_workspace_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/inline_value.rb +78 -0
- data/lib/language_server/protocol/interface/inline_value_client_capabilities.rb +38 -0
- data/lib/language_server/protocol/interface/inline_value_context.rb +46 -0
- data/lib/language_server/protocol/interface/inline_value_evaluatable_expression.rb +50 -0
- data/lib/language_server/protocol/interface/inline_value_options.rb +35 -0
- data/lib/language_server/protocol/interface/inline_value_params.rb +66 -0
- data/lib/language_server/protocol/interface/inline_value_registration_options.rb +55 -0
- data/lib/language_server/protocol/interface/inline_value_text.rb +47 -0
- data/lib/language_server/protocol/interface/inline_value_variable_lookup.rb +59 -0
- data/lib/language_server/protocol/interface/inline_value_workspace_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/insert_replace_edit.rb +2 -0
- data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +8 -4
- 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 -2
- data/lib/language_server/protocol/interface/location.rb +5 -1
- data/lib/language_server/protocol/interface/location_link.rb +13 -11
- data/lib/language_server/protocol/interface/log_message_params.rb +4 -1
- data/lib/language_server/protocol/interface/log_trace_params.rb +1 -8
- data/lib/language_server/protocol/interface/{message.rb → lsp_object.rb} +6 -8
- data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +16 -2
- data/lib/language_server/protocol/interface/markup_content.rb +16 -18
- data/lib/language_server/protocol/interface/moniker.rb +3 -1
- data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +9 -5
- 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 +73 -0
- data/lib/language_server/protocol/interface/notebook_cell_array_change.rb +57 -0
- data/lib/language_server/protocol/interface/notebook_cell_text_document_filter.rb +54 -0
- data/lib/language_server/protocol/interface/notebook_document.rb +78 -0
- data/lib/language_server/protocol/interface/notebook_document_change_event.rb +49 -0
- data/lib/language_server/protocol/interface/notebook_document_client_capabilities.rb +40 -0
- data/lib/language_server/protocol/interface/notebook_document_filter.rb +58 -0
- data/lib/language_server/protocol/interface/notebook_document_identifier.rb +38 -0
- data/lib/language_server/protocol/interface/notebook_document_sync_client_capabilities.rb +50 -0
- data/lib/language_server/protocol/interface/notebook_document_sync_options.rb +58 -0
- data/lib/language_server/protocol/interface/notebook_document_sync_registration_options.rb +58 -0
- data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +17 -18
- data/lib/language_server/protocol/interface/parameter_information.rb +7 -9
- data/lib/language_server/protocol/interface/partial_result_params.rb +3 -3
- data/lib/language_server/protocol/interface/position.rb +40 -7
- data/lib/language_server/protocol/interface/prepare_rename_params.rb +10 -1
- data/lib/language_server/protocol/interface/prepare_rename_result.rb +60 -0
- data/lib/language_server/protocol/interface/previous_result_id.rb +48 -0
- data/lib/language_server/protocol/interface/progress_params.rb +1 -1
- data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +16 -5
- data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +8 -4
- data/lib/language_server/protocol/interface/range.rb +13 -0
- data/lib/language_server/protocol/interface/reference_client_capabilities.rb +4 -1
- data/lib/language_server/protocol/interface/reference_context.rb +4 -0
- data/lib/language_server/protocol/interface/reference_options.rb +4 -1
- data/lib/language_server/protocol/interface/reference_params.rb +14 -11
- data/lib/language_server/protocol/interface/reference_registration_options.rb +7 -4
- data/lib/language_server/protocol/interface/registration.rb +2 -2
- data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +3 -1
- data/lib/language_server/protocol/interface/related_full_document_diagnostic_report.rb +73 -0
- data/lib/language_server/protocol/interface/related_unchanged_document_diagnostic_report.rb +66 -0
- data/lib/language_server/protocol/interface/relative_pattern.rb +50 -0
- data/lib/language_server/protocol/interface/rename_client_capabilities.rb +12 -7
- data/lib/language_server/protocol/interface/rename_file.rb +7 -5
- data/lib/language_server/protocol/interface/rename_file_options.rb +2 -2
- data/lib/language_server/protocol/interface/rename_files_params.rb +6 -4
- data/lib/language_server/protocol/interface/rename_options.rb +13 -8
- data/lib/language_server/protocol/interface/rename_params.rb +15 -12
- data/lib/language_server/protocol/interface/rename_registration_options.rb +16 -11
- data/lib/language_server/protocol/interface/resource_operation.rb +47 -0
- data/lib/language_server/protocol/interface/save_options.rb +4 -1
- data/lib/language_server/protocol/interface/selection_range.rb +6 -3
- data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +4 -5
- data/lib/language_server/protocol/interface/selection_range_options.rb +1 -1
- data/lib/language_server/protocol/interface/selection_range_params.rb +23 -20
- data/lib/language_server/protocol/interface/selection_range_registration_options.rb +5 -5
- data/lib/language_server/protocol/interface/semantic_tokens.rb +5 -2
- data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +45 -11
- data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +5 -3
- data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +24 -21
- data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +3 -0
- data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +6 -3
- data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +3 -0
- data/lib/language_server/protocol/interface/semantic_tokens_options.rb +12 -9
- data/lib/language_server/protocol/interface/semantic_tokens_params.rb +17 -14
- data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +4 -1
- data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +23 -20
- data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +16 -13
- data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +5 -2
- data/lib/language_server/protocol/interface/server_capabilities.rb +139 -56
- data/lib/language_server/protocol/interface/set_trace_params.rb +1 -4
- data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +4 -2
- data/lib/language_server/protocol/interface/show_document_params.rb +6 -4
- data/lib/language_server/protocol/interface/show_document_result.rb +3 -1
- data/lib/language_server/protocol/interface/show_message_params.rb +4 -1
- 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 +3 -4
- data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +8 -3
- data/lib/language_server/protocol/interface/signature_help_context.rb +10 -11
- data/lib/language_server/protocol/interface/signature_help_options.rb +17 -14
- data/lib/language_server/protocol/interface/signature_help_params.rb +17 -13
- data/lib/language_server/protocol/interface/signature_help_registration_options.rb +20 -17
- data/lib/language_server/protocol/interface/signature_information.rb +5 -3
- data/lib/language_server/protocol/interface/static_registration_options.rb +3 -2
- data/lib/language_server/protocol/interface/symbol_information.rb +34 -30
- data/lib/language_server/protocol/interface/t.rb +24 -0
- data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +12 -13
- data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +108 -43
- data/lib/language_server/protocol/interface/text_document_content_change_event.rb +8 -10
- data/lib/language_server/protocol/interface/text_document_edit.rb +10 -1
- data/lib/language_server/protocol/interface/text_document_filter.rb +69 -0
- data/lib/language_server/protocol/interface/text_document_identifier.rb +5 -2
- data/lib/language_server/protocol/interface/text_document_item.rb +7 -3
- data/lib/language_server/protocol/interface/text_document_position_params.rb +4 -0
- 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 +7 -4
- 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 +15 -17
- data/lib/language_server/protocol/interface/text_edit.rb +3 -0
- data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +10 -5
- 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_client_capabilities.rb +38 -0
- data/lib/language_server/protocol/interface/type_hierarchy_item.rb +105 -0
- data/lib/language_server/protocol/interface/type_hierarchy_options.rb +35 -0
- data/lib/language_server/protocol/interface/type_hierarchy_prepare_params.rb +56 -0
- data/lib/language_server/protocol/interface/type_hierarchy_registration_options.rb +55 -0
- data/lib/language_server/protocol/interface/type_hierarchy_subtypes_params.rb +54 -0
- data/lib/language_server/protocol/interface/type_hierarchy_supertypes_params.rb +54 -0
- data/lib/language_server/protocol/interface/unchanged_document_diagnostic_report.rb +52 -0
- data/lib/language_server/protocol/interface/unregistration.rb +2 -2
- data/lib/language_server/protocol/interface/versioned_notebook_document_identifier.rb +47 -0
- 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/window_client_capabilities.rb +63 -0
- 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 +6 -7
- data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +176 -0
- data/lib/language_server/protocol/interface/workspace_diagnostic_params.rb +67 -0
- data/lib/language_server/protocol/interface/workspace_diagnostic_report.rb +35 -0
- data/lib/language_server/protocol/interface/workspace_diagnostic_report_partial_result.rb +35 -0
- data/lib/language_server/protocol/interface/workspace_document_diagnostic_report.rb +77 -0
- data/lib/language_server/protocol/interface/workspace_edit.rb +28 -17
- data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +15 -6
- data/lib/language_server/protocol/interface/workspace_folder.rb +4 -1
- data/lib/language_server/protocol/interface/workspace_folders_initialize_params.rb +39 -0
- 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 +77 -0
- data/lib/language_server/protocol/interface/workspace_symbol.rb +95 -0
- data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +23 -6
- data/lib/language_server/protocol/interface/workspace_symbol_options.rb +17 -2
- data/lib/language_server/protocol/interface/workspace_symbol_params.rb +16 -16
- data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +17 -2
- data/lib/language_server/protocol/interface/workspace_unchanged_document_diagnostic_report.rb +70 -0
- data/lib/language_server/protocol/interface.rb +156 -14
- data/lib/language_server/protocol/version.rb +1 -1
- metadata +92 -10
- data/lib/language_server/protocol/constant/initialize_error.rb +0 -16
- data/lib/language_server/protocol/interface/notification_message.rb +0 -48
- data/lib/language_server/protocol/interface/request_message.rb +0 -57
- data/lib/language_server/protocol/interface/response_error.rb +0 -52
- data/lib/language_server/protocol/interface/response_message.rb +0 -58
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8b12f6835b7cca36a672a8afc09734c35c01d161d6114ba629df50b8769c182
|
4
|
+
data.tar.gz: 3518d1ed28dbb882685c35f687d96bb8a838ba8c733c1797fa1f273382a6e391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474dcb382b626379424257691e35c0b739182bb201f35b843eab1d860f4f165aad509405fd050c6852d06b0ac2f72809cf7556af7cd9051867a832baa2663630
|
7
|
+
data.tar.gz: 86d984fd5d02006d904233422700c52a9b647fbcbe7c838fcc07dfb68d2b6571d9506930fda0cfc42eb861db12730c0832bad1f820284e8cd1d1bad4ab380611
|
@@ -2,30 +2,23 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
4
|
#
|
5
|
-
#
|
6
|
-
#
|
7
|
-
# Kinds are a hierarchical list of identifiers separated by `.`,
|
8
|
-
# e.g. `"refactor.extract.function"`.
|
9
|
-
#
|
10
|
-
# The set of kinds is open and client needs to announce the kinds it supports
|
11
|
-
# to the server during initialization.
|
12
|
-
# A set of predefined code action kinds.
|
5
|
+
# A set of predefined code action kinds
|
13
6
|
#
|
14
7
|
module CodeActionKind
|
15
8
|
#
|
16
9
|
# Empty kind.
|
17
10
|
#
|
18
|
-
EMPTY =
|
11
|
+
EMPTY = ""
|
19
12
|
#
|
20
|
-
# Base kind for quickfix actions: 'quickfix'
|
13
|
+
# Base kind for quickfix actions: 'quickfix'
|
21
14
|
#
|
22
|
-
QUICK_FIX =
|
15
|
+
QUICK_FIX = "quickfix"
|
23
16
|
#
|
24
|
-
# Base kind for refactoring actions: 'refactor'
|
17
|
+
# Base kind for refactoring actions: 'refactor'
|
25
18
|
#
|
26
|
-
REFACTOR =
|
19
|
+
REFACTOR = "refactor"
|
27
20
|
#
|
28
|
-
# Base kind for refactoring extraction actions: 'refactor.extract'
|
21
|
+
# Base kind for refactoring extraction actions: 'refactor.extract'
|
29
22
|
#
|
30
23
|
# Example extract actions:
|
31
24
|
#
|
@@ -35,9 +28,9 @@ module LanguageServer
|
|
35
28
|
# - Extract interface from class
|
36
29
|
# - ...
|
37
30
|
#
|
38
|
-
REFACTOR_EXTRACT =
|
31
|
+
REFACTOR_EXTRACT = "refactor.extract"
|
39
32
|
#
|
40
|
-
# Base kind for refactoring inline actions: 'refactor.inline'
|
33
|
+
# Base kind for refactoring inline actions: 'refactor.inline'
|
41
34
|
#
|
42
35
|
# Example inline actions:
|
43
36
|
#
|
@@ -46,9 +39,9 @@ module LanguageServer
|
|
46
39
|
# - Inline constant
|
47
40
|
# - ...
|
48
41
|
#
|
49
|
-
REFACTOR_INLINE =
|
42
|
+
REFACTOR_INLINE = "refactor.inline"
|
50
43
|
#
|
51
|
-
# Base kind for refactoring rewrite actions: 'refactor.rewrite'
|
44
|
+
# Base kind for refactoring rewrite actions: 'refactor.rewrite'
|
52
45
|
#
|
53
46
|
# Example rewrite actions:
|
54
47
|
#
|
@@ -59,18 +52,26 @@ module LanguageServer
|
|
59
52
|
# - Move method to base class
|
60
53
|
# - ...
|
61
54
|
#
|
62
|
-
REFACTOR_REWRITE =
|
55
|
+
REFACTOR_REWRITE = "refactor.rewrite"
|
63
56
|
#
|
64
|
-
# Base kind for source actions: `source
|
57
|
+
# Base kind for source actions: `source`
|
65
58
|
#
|
66
59
|
# Source code actions apply to the entire file.
|
67
60
|
#
|
68
|
-
SOURCE =
|
61
|
+
SOURCE = "source"
|
62
|
+
#
|
63
|
+
# Base kind for an organize imports source action: `source.organizeImports`
|
64
|
+
#
|
65
|
+
SOURCE_ORGANIZE_IMPORTS = "source.organizeImports"
|
66
|
+
#
|
67
|
+
# Base kind for auto-fix source actions: `source.fixAll`.
|
68
|
+
#
|
69
|
+
# Fix all actions automatically fix errors that have a clear fix that do not require user input.
|
70
|
+
# They should not suppress errors or perform unsafe fixes such as generating new types or classes.
|
69
71
|
#
|
70
|
-
#
|
71
|
-
# `source.organizeImports`.
|
72
|
+
# @since 3.15.0
|
72
73
|
#
|
73
|
-
|
74
|
+
SOURCE_FIX_ALL = "source.fixAll"
|
74
75
|
end
|
75
76
|
end
|
76
77
|
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# The reason why code actions were requested.
|
6
|
+
#
|
7
|
+
# @since 3.17.0
|
8
|
+
#
|
9
|
+
module CodeActionTriggerKind
|
10
|
+
#
|
11
|
+
# Code actions were explicitly requested by the user or by an extension.
|
12
|
+
#
|
13
|
+
INVOKED = 1
|
14
|
+
#
|
15
|
+
# Code actions were requested automatically.
|
16
|
+
#
|
17
|
+
# This typically happens when current selection in a file changes, but can
|
18
|
+
# also be triggered when file content changes.
|
19
|
+
#
|
20
|
+
AUTOMATIC = 2
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -2,8 +2,10 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
4
|
#
|
5
|
-
# Completion item tags are extra annotations that tweak the rendering of a
|
6
|
-
#
|
5
|
+
# Completion item tags are extra annotations that tweak the rendering of a completion
|
6
|
+
# item.
|
7
|
+
#
|
8
|
+
# @since 3.15.0
|
7
9
|
#
|
8
10
|
module CompletionItemTag
|
9
11
|
#
|
@@ -12,12 +12,11 @@ module LanguageServer
|
|
12
12
|
INVOKED = 1
|
13
13
|
#
|
14
14
|
# Completion was triggered by a trigger character specified by
|
15
|
-
# the `triggerCharacters` properties of the
|
16
|
-
# `CompletionRegistrationOptions`.
|
15
|
+
# the `triggerCharacters` properties of the `CompletionRegistrationOptions`.
|
17
16
|
#
|
18
17
|
TRIGGER_CHARACTER = 2
|
19
18
|
#
|
20
|
-
# Completion was re-triggered as
|
19
|
+
# Completion was re-triggered as current completion list is incomplete
|
21
20
|
#
|
22
21
|
TRIGGER_FOR_INCOMPLETE_COMPLETIONS = 3
|
23
22
|
end
|
@@ -4,12 +4,14 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# The diagnostic tags.
|
6
6
|
#
|
7
|
+
# @since 3.15.0
|
8
|
+
#
|
7
9
|
module DiagnosticTag
|
8
10
|
#
|
9
11
|
# Unused or unnecessary code.
|
10
12
|
#
|
11
|
-
# Clients are allowed to render diagnostics with this tag faded out
|
12
|
-
#
|
13
|
+
# Clients are allowed to render diagnostics with this tag faded out instead of having
|
14
|
+
# an error squiggle.
|
13
15
|
#
|
14
16
|
UNNECESSARY = 1
|
15
17
|
#
|
@@ -1,6 +1,9 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
|
+
#
|
5
|
+
# Predefined error codes.
|
6
|
+
#
|
4
7
|
module ErrorCodes
|
5
8
|
PARSE_ERROR = -32700
|
6
9
|
INVALID_REQUEST = -32600
|
@@ -9,33 +12,35 @@ module LanguageServer
|
|
9
12
|
INTERNAL_ERROR = -32603
|
10
13
|
#
|
11
14
|
# This is the start range of JSON RPC reserved error codes.
|
12
|
-
# It doesn't denote a real error code. No
|
15
|
+
# It doesn't denote a real error code. No application error codes should
|
13
16
|
# be defined between the start and end range. For backwards
|
14
17
|
# compatibility the `ServerNotInitialized` and the `UnknownErrorCode`
|
15
18
|
# are left in the range.
|
16
19
|
#
|
20
|
+
# @since 3.16.0
|
21
|
+
#
|
17
22
|
JSONRPC_RESERVED_ERROR_RANGE_START = -32099
|
18
|
-
|
23
|
+
#
|
24
|
+
# @deprecated use jsonrpcReservedErrorRangeStart */
|
25
|
+
#
|
26
|
+
SERVER_ERROR_START = -32099
|
27
|
+
#
|
28
|
+
# Error code indicating that a server received a notification or
|
29
|
+
# request before the server has received the `initialize` request.
|
30
|
+
#
|
19
31
|
SERVER_NOT_INITIALIZED = -32002
|
20
32
|
UNKNOWN_ERROR_CODE = -32001
|
21
33
|
#
|
22
|
-
# This is the
|
34
|
+
# This is the end range of JSON RPC reserved error codes.
|
23
35
|
# It doesn't denote a real error code.
|
24
36
|
#
|
25
|
-
|
26
|
-
SERVER_ERROR_END = JSONRPC_RESERVED_ERROR_RANGE_END
|
27
|
-
#
|
28
|
-
# This is the start range of LSP reserved error codes.
|
29
|
-
# It doesn't denote a real error code.
|
37
|
+
# @since 3.16.0
|
30
38
|
#
|
31
|
-
|
32
|
-
CONTENT_MODIFIED = -32801
|
33
|
-
REQUEST_CANCELLED = -32800
|
39
|
+
JSONRPC_RESERVED_ERROR_RANGE_END = -32000
|
34
40
|
#
|
35
|
-
#
|
36
|
-
# It doesn't denote a real error code.
|
41
|
+
# @deprecated use jsonrpcReservedErrorRangeEnd */
|
37
42
|
#
|
38
|
-
|
43
|
+
SERVER_ERROR_END = -32000
|
39
44
|
end
|
40
45
|
end
|
41
46
|
end
|
@@ -3,27 +3,26 @@ module LanguageServer
|
|
3
3
|
module Constant
|
4
4
|
module FailureHandlingKind
|
5
5
|
#
|
6
|
-
# Applying the workspace change is simply aborted if one of the changes
|
7
|
-
#
|
8
|
-
# stay executed.
|
6
|
+
# Applying the workspace change is simply aborted if one of the changes provided
|
7
|
+
# fails. All operations executed before the failing operation stay executed.
|
9
8
|
#
|
10
|
-
ABORT =
|
9
|
+
ABORT = "abort"
|
11
10
|
#
|
12
11
|
# All operations are executed transactional. That means they either all
|
13
12
|
# succeed or no changes at all are applied to the workspace.
|
14
13
|
#
|
15
|
-
TRANSACTIONAL =
|
14
|
+
TRANSACTIONAL = "transactional"
|
16
15
|
#
|
17
|
-
# If the workspace edit contains only textual file changes they are
|
18
|
-
#
|
19
|
-
#
|
16
|
+
# If the workspace edit contains only textual file changes they are executed transactional.
|
17
|
+
# If resource changes (create, rename or delete file) are part of the change the failure
|
18
|
+
# handling strategy is abort.
|
20
19
|
#
|
21
|
-
TEXT_ONLY_TRANSACTIONAL =
|
20
|
+
TEXT_ONLY_TRANSACTIONAL = "textOnlyTransactional"
|
22
21
|
#
|
23
22
|
# The client tries to undo the operations already executed. But there is no
|
24
23
|
# guarantee that this is succeeding.
|
25
24
|
#
|
26
|
-
UNDO =
|
25
|
+
UNDO = "undo"
|
27
26
|
end
|
28
27
|
end
|
29
28
|
end
|
@@ -5,15 +5,17 @@ module LanguageServer
|
|
5
5
|
# A pattern kind describing if a glob pattern matches a file a folder or
|
6
6
|
# both.
|
7
7
|
#
|
8
|
+
# @since 3.16.0
|
9
|
+
#
|
8
10
|
module FileOperationPatternKind
|
9
11
|
#
|
10
12
|
# The pattern matches a file only.
|
11
13
|
#
|
12
|
-
FILE =
|
14
|
+
FILE = "file"
|
13
15
|
#
|
14
16
|
# The pattern matches a folder only.
|
15
17
|
#
|
16
|
-
FOLDER =
|
18
|
+
FOLDER = "folder"
|
17
19
|
end
|
18
20
|
end
|
19
21
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A set of predefined range kinds.
|
6
|
+
#
|
7
|
+
module FoldingRangeKind
|
8
|
+
#
|
9
|
+
# Folding range for a comment
|
10
|
+
#
|
11
|
+
COMMENT = "comment"
|
12
|
+
#
|
13
|
+
# Folding range for an import or include
|
14
|
+
#
|
15
|
+
IMPORTS = "imports"
|
16
|
+
#
|
17
|
+
# Folding range for a region (e.g. `#region`)
|
18
|
+
#
|
19
|
+
REGION = "region"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# Inlay hint kinds.
|
6
|
+
#
|
7
|
+
# @since 3.17.0
|
8
|
+
#
|
9
|
+
module InlayHintKind
|
10
|
+
#
|
11
|
+
# An inlay hint that for a type annotation.
|
12
|
+
#
|
13
|
+
TYPE = 1
|
14
|
+
#
|
15
|
+
# An inlay hint that is for a parameter.
|
16
|
+
#
|
17
|
+
PARAMETER = 2
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -18,6 +18,8 @@ module LanguageServer
|
|
18
18
|
# the end of the snippet. Placeholders with equal identifiers are linked,
|
19
19
|
# that is typing in one will update others too.
|
20
20
|
#
|
21
|
+
# See also: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#snippet_syntax
|
22
|
+
#
|
21
23
|
SNIPPET = 2
|
22
24
|
end
|
23
25
|
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
module LSPErrorCodes
|
5
|
+
#
|
6
|
+
# This is the start range of LSP reserved error codes.
|
7
|
+
# It doesn't denote a real error code.
|
8
|
+
#
|
9
|
+
# @since 3.16.0
|
10
|
+
#
|
11
|
+
LSP_RESERVED_ERROR_RANGE_START = -32899
|
12
|
+
#
|
13
|
+
# A request failed but it was syntactically correct, e.g the
|
14
|
+
# method name was known and the parameters were valid. The error
|
15
|
+
# message should contain human readable information about why
|
16
|
+
# the request failed.
|
17
|
+
#
|
18
|
+
# @since 3.17.0
|
19
|
+
#
|
20
|
+
REQUEST_FAILED = -32803
|
21
|
+
#
|
22
|
+
# The server cancelled the request. This error code should
|
23
|
+
# only be used for requests that explicitly support being
|
24
|
+
# server cancellable.
|
25
|
+
#
|
26
|
+
# @since 3.17.0
|
27
|
+
#
|
28
|
+
SERVER_CANCELLED = -32802
|
29
|
+
#
|
30
|
+
# The server detected that the content of a document got
|
31
|
+
# modified outside normal conditions. A server should
|
32
|
+
# NOT send this error code if it detects a content change
|
33
|
+
# in it unprocessed messages. The result even computed
|
34
|
+
# on an older state might still be useful for the client.
|
35
|
+
#
|
36
|
+
# If a client decides that a result is not of any use anymore
|
37
|
+
# the client should cancel the request.
|
38
|
+
#
|
39
|
+
CONTENT_MODIFIED = -32801
|
40
|
+
#
|
41
|
+
# The client has canceled a request and a server as detected
|
42
|
+
# the cancel.
|
43
|
+
#
|
44
|
+
REQUEST_CANCELLED = -32800
|
45
|
+
#
|
46
|
+
# This is the end range of LSP reserved error codes.
|
47
|
+
# It doesn't denote a real error code.
|
48
|
+
#
|
49
|
+
# @since 3.16.0
|
50
|
+
#
|
51
|
+
LSP_RESERVED_ERROR_RANGE_END = -32800
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -12,11 +12,11 @@ module LanguageServer
|
|
12
12
|
#
|
13
13
|
# Plain text is supported as a content format
|
14
14
|
#
|
15
|
-
PLAIN_TEXT =
|
15
|
+
PLAIN_TEXT = "plaintext"
|
16
16
|
#
|
17
17
|
# Markdown is supported as a content format
|
18
18
|
#
|
19
|
-
MARKDOWN =
|
19
|
+
MARKDOWN = "markdown"
|
20
20
|
end
|
21
21
|
end
|
22
22
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# The moniker kind.
|
6
|
+
#
|
7
|
+
# @since 3.16.0
|
8
|
+
#
|
9
|
+
module MonikerKind
|
10
|
+
#
|
11
|
+
# The moniker represent a symbol that is imported into a project
|
12
|
+
#
|
13
|
+
IMPORT = "import"
|
14
|
+
#
|
15
|
+
# The moniker represents a symbol that is exported from a project
|
16
|
+
#
|
17
|
+
EXPORT = "export"
|
18
|
+
#
|
19
|
+
# The moniker represents a symbol that is local to a project (e.g. a local
|
20
|
+
# variable of a function, a class not visible outside the project, ...)
|
21
|
+
#
|
22
|
+
LOCAL = "local"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A notebook cell kind.
|
6
|
+
#
|
7
|
+
# @since 3.17.0
|
8
|
+
#
|
9
|
+
module NotebookCellKind
|
10
|
+
#
|
11
|
+
# A markup-cell is formatted source that is used for display.
|
12
|
+
#
|
13
|
+
MARKUP = 1
|
14
|
+
#
|
15
|
+
# A code-cell is source code.
|
16
|
+
#
|
17
|
+
CODE = 2
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A set of predefined position encoding kinds.
|
6
|
+
#
|
7
|
+
# @since 3.17.0
|
8
|
+
#
|
9
|
+
module PositionEncodingKind
|
10
|
+
#
|
11
|
+
# Character offsets count UTF-8 code units.
|
12
|
+
#
|
13
|
+
UTF8 = "utf-8"
|
14
|
+
#
|
15
|
+
# Character offsets count UTF-16 code units.
|
16
|
+
#
|
17
|
+
# This is the default and must always be supported
|
18
|
+
# by servers
|
19
|
+
#
|
20
|
+
UTF16 = "utf-16"
|
21
|
+
#
|
22
|
+
# Character offsets count UTF-32 code units.
|
23
|
+
#
|
24
|
+
# Implementation note: these are the same as Unicode code points,
|
25
|
+
# so this `PositionEncodingKind` may also be used for an
|
26
|
+
# encoding-agnostic representation of character offsets.
|
27
|
+
#
|
28
|
+
UTF32 = "utf-32"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -1,22 +1,19 @@
|
|
1
1
|
module LanguageServer
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
|
-
#
|
5
|
-
# The kind of resource operations supported by the client.
|
6
|
-
#
|
7
4
|
module ResourceOperationKind
|
8
5
|
#
|
9
6
|
# Supports creating new files and folders.
|
10
7
|
#
|
11
|
-
CREATE =
|
8
|
+
CREATE = "create"
|
12
9
|
#
|
13
10
|
# Supports renaming existing files and folders.
|
14
11
|
#
|
15
|
-
RENAME =
|
12
|
+
RENAME = "rename"
|
16
13
|
#
|
17
14
|
# Supports deleting existing files and folders.
|
18
15
|
#
|
19
|
-
DELETE =
|
16
|
+
DELETE = "delete"
|
20
17
|
end
|
21
18
|
end
|
22
19
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A set of predefined token modifiers. This set is not fixed
|
6
|
+
# an clients can specify additional token types via the
|
7
|
+
# corresponding client capabilities.
|
8
|
+
#
|
9
|
+
# @since 3.16.0
|
10
|
+
#
|
11
|
+
module SemanticTokenModifiers
|
12
|
+
DECLARATION = "declaration"
|
13
|
+
DEFINITION = "definition"
|
14
|
+
READONLY = "readonly"
|
15
|
+
STATIC = "static"
|
16
|
+
DEPRECATED = "deprecated"
|
17
|
+
ABSTRACT = "abstract"
|
18
|
+
ASYNC = "async"
|
19
|
+
MODIFICATION = "modification"
|
20
|
+
DOCUMENTATION = "documentation"
|
21
|
+
DEFAULT_LIBRARY = "defaultLibrary"
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A set of predefined token types. This set is not fixed
|
6
|
+
# an clients can specify additional token types via the
|
7
|
+
# corresponding client capabilities.
|
8
|
+
#
|
9
|
+
# @since 3.16.0
|
10
|
+
#
|
11
|
+
module SemanticTokenTypes
|
12
|
+
NAMESPACE = "namespace"
|
13
|
+
#
|
14
|
+
# Represents a generic type. Acts as a fallback for types which can't be mapped to
|
15
|
+
# a specific type like class or enum.
|
16
|
+
#
|
17
|
+
TYPE = "type"
|
18
|
+
CLASS = "class"
|
19
|
+
ENUM = "enum"
|
20
|
+
INTERFACE = "interface"
|
21
|
+
STRUCT = "struct"
|
22
|
+
TYPE_PARAMETER = "typeParameter"
|
23
|
+
PARAMETER = "parameter"
|
24
|
+
VARIABLE = "variable"
|
25
|
+
PROPERTY = "property"
|
26
|
+
ENUM_MEMBER = "enumMember"
|
27
|
+
EVENT = "event"
|
28
|
+
FUNCTION = "function"
|
29
|
+
METHOD = "method"
|
30
|
+
MACRO = "macro"
|
31
|
+
KEYWORD = "keyword"
|
32
|
+
MODIFIER = "modifier"
|
33
|
+
COMMENT = "comment"
|
34
|
+
STRING = "string"
|
35
|
+
NUMBER = "number"
|
36
|
+
REGEXP = "regexp"
|
37
|
+
OPERATOR = "operator"
|
38
|
+
#
|
39
|
+
# @since 3.17.0
|
40
|
+
#
|
41
|
+
DECORATOR = "decorator"
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -4,6 +4,8 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# How a signature help was triggered.
|
6
6
|
#
|
7
|
+
# @since 3.15.0
|
8
|
+
#
|
7
9
|
module SignatureHelpTriggerKind
|
8
10
|
#
|
9
11
|
# Signature help was invoked manually by the user or by a command.
|
@@ -14,8 +16,7 @@ module LanguageServer
|
|
14
16
|
#
|
15
17
|
TRIGGER_CHARACTER = 2
|
16
18
|
#
|
17
|
-
# Signature help was triggered by the cursor moving or by the document
|
18
|
-
# content changing.
|
19
|
+
# Signature help was triggered by the cursor moving or by the document content changing.
|
19
20
|
#
|
20
21
|
CONTENT_CHANGE = 3
|
21
22
|
end
|