language_server-protocol 3.14.0.1 → 3.16.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/language_server/protocol/constant.rb +18 -0
- data/lib/language_server/protocol/constant/code_action_kind.rb +17 -11
- data/lib/language_server/protocol/constant/completion_item_tag.rb +16 -0
- data/lib/language_server/protocol/constant/completion_trigger_kind.rb +2 -1
- data/lib/language_server/protocol/constant/diagnostic_tag.rb +24 -0
- data/lib/language_server/protocol/constant/error_codes.rb +26 -3
- data/lib/language_server/protocol/constant/failure_handling_kind.rb +6 -5
- data/lib/language_server/protocol/constant/file_operation_pattern_kind.rb +20 -0
- data/lib/language_server/protocol/constant/initialize_error.rb +2 -1
- data/lib/language_server/protocol/constant/insert_text_mode.rb +30 -0
- data/lib/language_server/protocol/constant/prepare_support_default_behavior.rb +13 -0
- data/lib/language_server/protocol/constant/signature_help_trigger_kind.rb +24 -0
- data/lib/language_server/protocol/constant/symbol_tag.rb +15 -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 +2 -1
- data/lib/language_server/protocol/constant/token_format.rb +9 -0
- data/lib/language_server/protocol/interface.rb +270 -6
- data/lib/language_server/protocol/interface/annotated_text_edit.rb +38 -0
- data/lib/language_server/protocol/interface/apply_workspace_edit_response.rb +24 -1
- data/lib/language_server/protocol/interface/call_hierarchy_client_capabilities.rb +36 -0
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_call.rb +43 -0
- data/lib/language_server/protocol/interface/call_hierarchy_incoming_calls_params.rb +31 -0
- data/lib/language_server/protocol/interface/call_hierarchy_item.rb +100 -0
- data/lib/language_server/protocol/interface/call_hierarchy_options.rb +25 -0
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_call.rb +43 -0
- data/lib/language_server/protocol/interface/call_hierarchy_outgoing_calls_params.rb +31 -0
- data/lib/language_server/protocol/interface/call_hierarchy_prepare_params.rb +25 -0
- data/lib/language_server/protocol/interface/call_hierarchy_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/change_annotation.rb +57 -0
- data/lib/language_server/protocol/interface/client_capabilities.rb +20 -2
- data/lib/language_server/protocol/interface/code_action.rb +52 -4
- data/lib/language_server/protocol/interface/code_action_client_capabilities.rb +95 -0
- data/lib/language_server/protocol/interface/code_action_context.rb +8 -3
- data/lib/language_server/protocol/interface/code_action_options.rb +15 -7
- data/lib/language_server/protocol/interface/code_action_params.rb +3 -2
- data/lib/language_server/protocol/interface/code_action_registration_options.rb +4 -1
- data/lib/language_server/protocol/interface/code_description.rb +36 -0
- data/lib/language_server/protocol/interface/code_lens.rb +5 -3
- data/lib/language_server/protocol/interface/code_lens_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/code_lens_options.rb +3 -5
- data/lib/language_server/protocol/interface/code_lens_params.rb +3 -2
- data/lib/language_server/protocol/interface/code_lens_registration_options.rb +3 -10
- data/lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb +39 -0
- data/lib/language_server/protocol/interface/color_presentation.rb +7 -6
- data/lib/language_server/protocol/interface/color_presentation_params.rb +3 -2
- data/lib/language_server/protocol/interface/completion_client_capabilities.rb +59 -0
- data/lib/language_server/protocol/interface/completion_context.rb +5 -3
- data/lib/language_server/protocol/interface/completion_item.rb +71 -29
- data/lib/language_server/protocol/interface/completion_list.rb +2 -2
- data/lib/language_server/protocol/interface/completion_options.rb +36 -11
- data/lib/language_server/protocol/interface/completion_params.rb +5 -3
- data/lib/language_server/protocol/interface/completion_registration_options.rb +4 -26
- data/lib/language_server/protocol/interface/create_file.rb +10 -1
- data/lib/language_server/protocol/interface/create_files_params.rb +37 -0
- data/lib/language_server/protocol/interface/declaration_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/declaration_options.rb +25 -0
- data/lib/language_server/protocol/interface/declaration_params.rb +25 -0
- data/lib/language_server/protocol/interface/{folding_range_provider_options.rb → declaration_registration_options.rb} +3 -5
- data/lib/language_server/protocol/interface/definition_client_capabilities.rb +42 -0
- data/lib/language_server/protocol/interface/definition_options.rb +25 -0
- data/lib/language_server/protocol/interface/definition_params.rb +25 -0
- data/lib/language_server/protocol/interface/definition_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/delete_file.rb +10 -1
- data/lib/language_server/protocol/interface/delete_files_params.rb +37 -0
- data/lib/language_server/protocol/interface/diagnostic.rb +31 -2
- data/lib/language_server/protocol/interface/diagnostic_related_information.rb +3 -3
- data/lib/language_server/protocol/interface/did_change_configuration_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/did_change_text_document_params.rb +13 -3
- data/lib/language_server/protocol/interface/did_change_watched_files_client_capabilities.rb +35 -0
- data/lib/language_server/protocol/interface/did_change_watched_files_registration_options.rb +1 -1
- data/lib/language_server/protocol/interface/document_color_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/document_color_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_color_params.rb +34 -0
- data/lib/language_server/protocol/interface/document_color_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_filter.rb +7 -3
- data/lib/language_server/protocol/interface/document_formatting_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/document_formatting_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_formatting_params.rb +3 -2
- data/lib/language_server/protocol/interface/document_formatting_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_highlight.rb +1 -1
- data/lib/language_server/protocol/interface/document_highlight_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/document_highlight_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_highlight_params.rb +25 -0
- data/lib/language_server/protocol/interface/document_highlight_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_link.rb +17 -3
- data/lib/language_server/protocol/interface/document_link_client_capabilities.rb +42 -0
- data/lib/language_server/protocol/interface/document_link_options.rb +3 -5
- data/lib/language_server/protocol/interface/document_link_params.rb +3 -2
- data/lib/language_server/protocol/interface/document_link_registration_options.rb +3 -10
- data/lib/language_server/protocol/interface/document_on_type_formatting_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/document_on_type_formatting_options.rb +0 -3
- data/lib/language_server/protocol/interface/document_on_type_formatting_params.rb +1 -17
- data/lib/language_server/protocol/interface/document_on_type_formatting_registration_options.rb +2 -18
- data/lib/language_server/protocol/interface/document_range_formatting_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/document_range_formatting_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_range_formatting_params.rb +3 -2
- data/lib/language_server/protocol/interface/document_range_formatting_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/document_symbol.rb +108 -0
- data/lib/language_server/protocol/interface/document_symbol_client_capabilities.rb +73 -0
- data/lib/language_server/protocol/interface/document_symbol_options.rb +35 -0
- data/lib/language_server/protocol/interface/document_symbol_params.rb +3 -2
- data/lib/language_server/protocol/interface/document_symbol_registration_options.rb +26 -0
- data/lib/language_server/protocol/interface/execute_command_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/execute_command_options.rb +3 -5
- data/lib/language_server/protocol/interface/execute_command_params.rb +3 -2
- data/lib/language_server/protocol/interface/execute_command_registration_options.rb +3 -10
- data/lib/language_server/protocol/interface/file_create.rb +36 -0
- data/lib/language_server/protocol/interface/file_delete.rb +36 -0
- data/lib/language_server/protocol/interface/file_operation_filter.rb +46 -0
- data/lib/language_server/protocol/interface/file_operation_pattern.rb +67 -0
- data/lib/language_server/protocol/interface/file_operation_pattern_options.rb +36 -0
- data/lib/language_server/protocol/interface/file_operation_registration_options.rb +36 -0
- data/lib/language_server/protocol/interface/file_rename.rb +45 -0
- data/lib/language_server/protocol/interface/file_system_watcher.rb +7 -3
- data/lib/language_server/protocol/interface/folding_range.rb +17 -8
- data/lib/language_server/protocol/interface/folding_range_client_capabilities.rb +58 -0
- data/lib/language_server/protocol/interface/folding_range_options.rb +25 -0
- data/lib/language_server/protocol/interface/folding_range_params.rb +3 -2
- data/lib/language_server/protocol/interface/{color_provider_options.rb → folding_range_registration_options.rb} +3 -5
- data/lib/language_server/protocol/interface/formatting_options.rb +28 -1
- data/lib/language_server/protocol/interface/hover.rb +1 -1
- data/lib/language_server/protocol/interface/hover_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/hover_options.rb +25 -0
- data/lib/language_server/protocol/interface/hover_params.rb +25 -0
- data/lib/language_server/protocol/interface/hover_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/implementation_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/implementation_options.rb +25 -0
- data/lib/language_server/protocol/interface/implementation_params.rb +25 -0
- data/lib/language_server/protocol/interface/implementation_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/initialize_params.rb +31 -8
- data/lib/language_server/protocol/interface/initialize_result.rb +10 -1
- data/lib/language_server/protocol/interface/insert_replace_edit.rb +54 -0
- data/lib/language_server/protocol/interface/linked_editing_range_client_capabilities.rb +36 -0
- data/lib/language_server/protocol/interface/linked_editing_range_options.rb +25 -0
- data/lib/language_server/protocol/interface/linked_editing_range_params.rb +25 -0
- data/lib/language_server/protocol/interface/linked_editing_range_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/linked_editing_ranges.rb +45 -0
- data/lib/language_server/protocol/interface/location_link.rb +11 -6
- data/lib/language_server/protocol/interface/log_message_params.rb +1 -1
- data/lib/language_server/protocol/interface/log_trace_params.rb +43 -0
- data/lib/language_server/protocol/interface/markdown_client_capabilities.rb +45 -0
- data/lib/language_server/protocol/interface/markup_content.rb +9 -7
- data/lib/language_server/protocol/interface/moniker.rb +64 -0
- data/lib/language_server/protocol/interface/moniker_client_capabilities.rb +36 -0
- data/lib/language_server/protocol/interface/moniker_options.rb +25 -0
- data/lib/language_server/protocol/interface/moniker_params.rb +25 -0
- data/lib/language_server/protocol/interface/moniker_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/notification_message.rb +2 -1
- data/lib/language_server/protocol/interface/optional_versioned_text_document_identifier.rb +42 -0
- data/lib/language_server/protocol/interface/parameter_information.rb +7 -5
- data/lib/language_server/protocol/interface/partial_result_params.rb +34 -0
- data/lib/language_server/protocol/interface/position.rb +5 -5
- data/lib/language_server/protocol/interface/prepare_rename_params.rb +26 -0
- data/lib/language_server/protocol/interface/progress_params.rb +42 -0
- data/lib/language_server/protocol/interface/publish_diagnostics_client_capabilities.rb +73 -0
- data/lib/language_server/protocol/interface/publish_diagnostics_params.rb +11 -1
- data/lib/language_server/protocol/interface/reference_client_capabilities.rb +33 -0
- data/lib/language_server/protocol/interface/reference_options.rb +25 -0
- data/lib/language_server/protocol/interface/reference_params.rb +3 -2
- data/lib/language_server/protocol/interface/reference_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/regular_expressions_client_capabilities.rb +45 -0
- data/lib/language_server/protocol/interface/rename_client_capabilities.rb +69 -0
- data/lib/language_server/protocol/interface/rename_file.rb +10 -1
- data/lib/language_server/protocol/interface/rename_files_params.rb +38 -0
- data/lib/language_server/protocol/interface/rename_options.rb +3 -5
- data/lib/language_server/protocol/interface/rename_params.rb +3 -20
- data/lib/language_server/protocol/interface/rename_registration_options.rb +3 -10
- data/lib/language_server/protocol/interface/request_message.rb +2 -1
- data/lib/language_server/protocol/interface/response_error.rb +2 -2
- data/lib/language_server/protocol/interface/response_message.rb +5 -4
- data/lib/language_server/protocol/interface/save_options.rb +0 -3
- data/lib/language_server/protocol/interface/selection_range.rb +43 -0
- data/lib/language_server/protocol/interface/selection_range_client_capabilities.rb +36 -0
- data/lib/language_server/protocol/interface/selection_range_options.rb +25 -0
- data/lib/language_server/protocol/interface/selection_range_params.rb +43 -0
- data/lib/language_server/protocol/interface/selection_range_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/semantic_tokens.rb +45 -0
- data/lib/language_server/protocol/interface/semantic_tokens_client_capabilities.rb +97 -0
- data/lib/language_server/protocol/interface/semantic_tokens_delta.rb +40 -0
- data/lib/language_server/protocol/interface/semantic_tokens_delta_params.rb +44 -0
- data/lib/language_server/protocol/interface/semantic_tokens_delta_partial_result.rb +30 -0
- data/lib/language_server/protocol/interface/semantic_tokens_edit.rb +51 -0
- data/lib/language_server/protocol/interface/semantic_tokens_legend.rb +42 -0
- data/lib/language_server/protocol/interface/semantic_tokens_options.rb +53 -0
- data/lib/language_server/protocol/interface/semantic_tokens_params.rb +34 -0
- data/lib/language_server/protocol/interface/semantic_tokens_partial_result.rb +30 -0
- data/lib/language_server/protocol/interface/semantic_tokens_range_params.rb +43 -0
- data/lib/language_server/protocol/interface/semantic_tokens_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/semantic_tokens_workspace_client_capabilities.rb +39 -0
- data/lib/language_server/protocol/interface/server_capabilities.rb +108 -60
- data/lib/language_server/protocol/interface/set_trace_params.rb +33 -0
- data/lib/language_server/protocol/interface/show_document_client_capabilities.rb +37 -0
- data/lib/language_server/protocol/interface/show_document_params.rb +71 -0
- data/lib/language_server/protocol/interface/show_document_result.rb +36 -0
- data/lib/language_server/protocol/interface/show_message_params.rb +1 -1
- data/lib/language_server/protocol/interface/show_message_request_client_capabilities.rb +36 -0
- data/lib/language_server/protocol/interface/show_message_request_params.rb +1 -1
- data/lib/language_server/protocol/interface/signature_help.rb +7 -4
- data/lib/language_server/protocol/interface/signature_help_client_capabilities.rb +55 -0
- data/lib/language_server/protocol/interface/signature_help_context.rb +74 -0
- data/lib/language_server/protocol/interface/signature_help_options.rb +16 -5
- data/lib/language_server/protocol/interface/signature_help_params.rb +36 -0
- data/lib/language_server/protocol/interface/signature_help_registration_options.rb +4 -11
- data/lib/language_server/protocol/interface/signature_information.rb +12 -1
- data/lib/language_server/protocol/interface/symbol_information.rb +11 -2
- data/lib/language_server/protocol/interface/text_document_change_registration_options.rb +2 -1
- data/lib/language_server/protocol/interface/text_document_client_capabilities.rb +123 -86
- data/lib/language_server/protocol/interface/text_document_content_change_event.rb +10 -6
- data/lib/language_server/protocol/interface/text_document_edit.rb +2 -2
- data/lib/language_server/protocol/interface/text_document_registration_options.rb +6 -3
- data/lib/language_server/protocol/interface/text_document_save_registration_options.rb +1 -0
- data/lib/language_server/protocol/interface/text_document_sync_client_capabilities.rb +62 -0
- data/lib/language_server/protocol/interface/text_document_sync_options.rb +14 -8
- data/lib/language_server/protocol/interface/type_definition_client_capabilities.rb +44 -0
- data/lib/language_server/protocol/interface/type_definition_options.rb +25 -0
- data/lib/language_server/protocol/interface/type_definition_params.rb +25 -0
- data/lib/language_server/protocol/interface/type_definition_registration_options.rb +25 -0
- data/lib/language_server/protocol/interface/versioned_text_document_identifier.rb +4 -7
- 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 +80 -0
- data/lib/language_server/protocol/interface/work_done_progress_cancel_params.rb +33 -0
- data/lib/language_server/protocol/interface/work_done_progress_create_params.rb +33 -0
- data/lib/language_server/protocol/interface/work_done_progress_end.rb +40 -0
- data/lib/language_server/protocol/interface/work_done_progress_options.rb +30 -0
- data/lib/language_server/protocol/interface/work_done_progress_params.rb +33 -0
- data/lib/language_server/protocol/interface/work_done_progress_report.rb +70 -0
- data/lib/language_server/protocol/interface/workspace_edit.rb +25 -8
- data/lib/language_server/protocol/interface/workspace_edit_client_capabilities.rb +75 -0
- data/lib/language_server/protocol/interface/workspace_folder.rb +2 -2
- data/lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb +48 -0
- data/lib/language_server/protocol/interface/workspace_symbol_client_capabilities.rb +53 -0
- data/lib/language_server/protocol/interface/workspace_symbol_options.rb +25 -0
- data/lib/language_server/protocol/interface/workspace_symbol_params.rb +5 -3
- data/lib/language_server/protocol/interface/workspace_symbol_registration_options.rb +25 -0
- data/lib/language_server/protocol/transport/io/reader.rb +1 -1
- data/lib/language_server/protocol/version.rb +1 -1
- metadata +154 -35
- data/.gitignore +0 -10
- data/.travis.yml +0 -5
- data/CHANGELOG.md +0 -26
- data/CODE_OF_CONDUCT.md +0 -74
- data/Dockerfile-node.development +0 -6
- data/Dockerfile.development +0 -24
- data/Gemfile +0 -6
- data/Rakefile +0 -10
- data/bin/console +0 -14
- data/bin/generate_files +0 -5
- data/bin/m +0 -17
- data/bin/setup +0 -6
- data/circle.yml +0 -40
- data/docker-compose.ci.yml +0 -14
- data/docker-compose.override.yml +0 -16
- data/docker-compose.yml +0 -33
- data/language_server-protocol.gemspec +0 -33
- data/lib/language_server/protocol/interface/workspace_client_capabilities.rb +0 -104
- data/package.json +0 -10
- data/scripts/generateFiles.ts +0 -320
- data/yarn.lock +0 -293
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00220a60292ca5389c9c868b6a353365ac849beb73f5c4ae31b2fe232b97cf12
|
4
|
+
data.tar.gz: 6dcfe25b611fb4bc0c2d84b92330d92009d928259cf4ef1c2efb5b64476beede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bca0506fe727899f789680333657d9ff2ec5f7e99124343dc1580cfcfa74e3ff7972da1f35cbd00617df25d0b5dbff8a05a055cdc72fb3cc5f7fff0227df39d8
|
7
|
+
data.tar.gz: 3ae1247e1ecdb1b5e1cf2a357a6b5057ce271707f6975181a1ef7fb51e160f379af7192c34cd72e2fe00bcbcd3061c1f5f87b4b6aaf144da7c524b1f00ebea08
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
Currently, this gem supports only stdio as transport layer out of box.
|
24
24
|
|
25
25
|
```ruby
|
26
26
|
require "language_server-protocol"
|
@@ -53,6 +53,14 @@ reader.read do |request|
|
|
53
53
|
end
|
54
54
|
```
|
55
55
|
|
56
|
+
You can use any IO object as transport layer:
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
io = StringIO.new
|
60
|
+
writer = LSP::Transport::Io::Writer.new(io)
|
61
|
+
reader = LSP::Transport::Io::Reader.new(io)
|
62
|
+
```
|
63
|
+
|
56
64
|
## Versioning
|
57
65
|
|
58
66
|
language_server-protocol gem does NOT use semantic versioning.
|
@@ -75,4 +83,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
75
83
|
|
76
84
|
## Code of Conduct
|
77
85
|
|
78
|
-
Everyone interacting in the LanguageServer::Protocol project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
86
|
+
Everyone interacting in the LanguageServer::Protocol project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/mtsmfm/language_server-protocol/blob/master/CODE_OF_CONDUCT.md).
|
@@ -3,38 +3,56 @@ module LanguageServer
|
|
3
3
|
module Constant
|
4
4
|
autoload :CodeActionKind, "language_server/protocol/constant/code_action_kind"
|
5
5
|
autoload :CompletionItemKind, "language_server/protocol/constant/completion_item_kind"
|
6
|
+
autoload :CompletionItemTag, "language_server/protocol/constant/completion_item_tag"
|
6
7
|
autoload :CompletionTriggerKind, "language_server/protocol/constant/completion_trigger_kind"
|
7
8
|
autoload :DiagnosticSeverity, "language_server/protocol/constant/diagnostic_severity"
|
9
|
+
autoload :DiagnosticTag, "language_server/protocol/constant/diagnostic_tag"
|
8
10
|
autoload :DocumentHighlightKind, "language_server/protocol/constant/document_highlight_kind"
|
9
11
|
autoload :ErrorCodes, "language_server/protocol/constant/error_codes"
|
10
12
|
autoload :FailureHandlingKind, "language_server/protocol/constant/failure_handling_kind"
|
11
13
|
autoload :FileChangeType, "language_server/protocol/constant/file_change_type"
|
14
|
+
autoload :FileOperationPatternKind, "language_server/protocol/constant/file_operation_pattern_kind"
|
12
15
|
autoload :InitializeError, "language_server/protocol/constant/initialize_error"
|
13
16
|
autoload :InsertTextFormat, "language_server/protocol/constant/insert_text_format"
|
17
|
+
autoload :InsertTextMode, "language_server/protocol/constant/insert_text_mode"
|
14
18
|
autoload :MarkupKind, "language_server/protocol/constant/markup_kind"
|
15
19
|
autoload :MessageType, "language_server/protocol/constant/message_type"
|
20
|
+
autoload :PrepareSupportDefaultBehavior, "language_server/protocol/constant/prepare_support_default_behavior"
|
16
21
|
autoload :ResourceOperationKind, "language_server/protocol/constant/resource_operation_kind"
|
22
|
+
autoload :SignatureHelpTriggerKind, "language_server/protocol/constant/signature_help_trigger_kind"
|
17
23
|
autoload :SymbolKind, "language_server/protocol/constant/symbol_kind"
|
24
|
+
autoload :SymbolTag, "language_server/protocol/constant/symbol_tag"
|
18
25
|
autoload :TextDocumentSaveReason, "language_server/protocol/constant/text_document_save_reason"
|
19
26
|
autoload :TextDocumentSyncKind, "language_server/protocol/constant/text_document_sync_kind"
|
27
|
+
autoload :TextDocumentSyncKind, "language_server/protocol/constant/text_document_sync_kind"
|
28
|
+
autoload :TokenFormat, "language_server/protocol/constant/token_format"
|
20
29
|
autoload :WatchKind, "language_server/protocol/constant/watch_kind"
|
21
30
|
|
22
31
|
require "language_server/protocol/constant/code_action_kind"
|
23
32
|
require "language_server/protocol/constant/completion_item_kind"
|
33
|
+
require "language_server/protocol/constant/completion_item_tag"
|
24
34
|
require "language_server/protocol/constant/completion_trigger_kind"
|
25
35
|
require "language_server/protocol/constant/diagnostic_severity"
|
36
|
+
require "language_server/protocol/constant/diagnostic_tag"
|
26
37
|
require "language_server/protocol/constant/document_highlight_kind"
|
27
38
|
require "language_server/protocol/constant/error_codes"
|
28
39
|
require "language_server/protocol/constant/failure_handling_kind"
|
29
40
|
require "language_server/protocol/constant/file_change_type"
|
41
|
+
require "language_server/protocol/constant/file_operation_pattern_kind"
|
30
42
|
require "language_server/protocol/constant/initialize_error"
|
31
43
|
require "language_server/protocol/constant/insert_text_format"
|
44
|
+
require "language_server/protocol/constant/insert_text_mode"
|
32
45
|
require "language_server/protocol/constant/markup_kind"
|
33
46
|
require "language_server/protocol/constant/message_type"
|
47
|
+
require "language_server/protocol/constant/prepare_support_default_behavior"
|
34
48
|
require "language_server/protocol/constant/resource_operation_kind"
|
49
|
+
require "language_server/protocol/constant/signature_help_trigger_kind"
|
35
50
|
require "language_server/protocol/constant/symbol_kind"
|
51
|
+
require "language_server/protocol/constant/symbol_tag"
|
36
52
|
require "language_server/protocol/constant/text_document_save_reason"
|
37
53
|
require "language_server/protocol/constant/text_document_sync_kind"
|
54
|
+
require "language_server/protocol/constant/text_document_sync_kind"
|
55
|
+
require "language_server/protocol/constant/token_format"
|
38
56
|
require "language_server/protocol/constant/watch_kind"
|
39
57
|
end
|
40
58
|
end
|
@@ -4,23 +4,28 @@ module LanguageServer
|
|
4
4
|
#
|
5
5
|
# The kind of a code action.
|
6
6
|
#
|
7
|
-
# Kinds are a hierarchical list of identifiers separated by `.`,
|
7
|
+
# Kinds are a hierarchical list of identifiers separated by `.`,
|
8
|
+
# e.g. `"refactor.extract.function"`.
|
8
9
|
#
|
9
|
-
# The set of kinds is open and client needs to announce the kinds it supports
|
10
|
-
# initialization.
|
11
|
-
# A set of predefined code action kinds
|
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.
|
12
13
|
#
|
13
14
|
module CodeActionKind
|
14
15
|
#
|
15
|
-
#
|
16
|
+
# Empty kind.
|
17
|
+
#
|
18
|
+
EMPTY = ''
|
19
|
+
#
|
20
|
+
# Base kind for quickfix actions: 'quickfix'.
|
16
21
|
#
|
17
22
|
QUICK_FIX = 'quickfix'
|
18
23
|
#
|
19
|
-
# Base kind for refactoring actions: 'refactor'
|
24
|
+
# Base kind for refactoring actions: 'refactor'.
|
20
25
|
#
|
21
26
|
REFACTOR = 'refactor'
|
22
27
|
#
|
23
|
-
# Base kind for refactoring extraction actions: 'refactor.extract'
|
28
|
+
# Base kind for refactoring extraction actions: 'refactor.extract'.
|
24
29
|
#
|
25
30
|
# Example extract actions:
|
26
31
|
#
|
@@ -32,7 +37,7 @@ module LanguageServer
|
|
32
37
|
#
|
33
38
|
REFACTOR_EXTRACT = 'refactor.extract'
|
34
39
|
#
|
35
|
-
# Base kind for refactoring inline actions: 'refactor.inline'
|
40
|
+
# Base kind for refactoring inline actions: 'refactor.inline'.
|
36
41
|
#
|
37
42
|
# Example inline actions:
|
38
43
|
#
|
@@ -43,7 +48,7 @@ module LanguageServer
|
|
43
48
|
#
|
44
49
|
REFACTOR_INLINE = 'refactor.inline'
|
45
50
|
#
|
46
|
-
# Base kind for refactoring rewrite actions: 'refactor.rewrite'
|
51
|
+
# Base kind for refactoring rewrite actions: 'refactor.rewrite'.
|
47
52
|
#
|
48
53
|
# Example rewrite actions:
|
49
54
|
#
|
@@ -56,13 +61,14 @@ module LanguageServer
|
|
56
61
|
#
|
57
62
|
REFACTOR_REWRITE = 'refactor.rewrite'
|
58
63
|
#
|
59
|
-
# Base kind for source actions: `source
|
64
|
+
# Base kind for source actions: `source`.
|
60
65
|
#
|
61
66
|
# Source code actions apply to the entire file.
|
62
67
|
#
|
63
68
|
SOURCE = 'source'
|
64
69
|
#
|
65
|
-
# Base kind for an organize imports source action:
|
70
|
+
# Base kind for an organize imports source action:
|
71
|
+
# `source.organizeImports`.
|
66
72
|
#
|
67
73
|
SOURCE_ORGANIZE_IMPORTS = 'source.organizeImports'
|
68
74
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# Completion item tags are extra annotations that tweak the rendering of a
|
6
|
+
# completion item.
|
7
|
+
#
|
8
|
+
module CompletionItemTag
|
9
|
+
#
|
10
|
+
# Render a completion as obsolete, usually using a strike-out.
|
11
|
+
#
|
12
|
+
DEPRECATED = 1
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -12,7 +12,8 @@ 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
|
15
|
+
# the `triggerCharacters` properties of the
|
16
|
+
# `CompletionRegistrationOptions`.
|
16
17
|
#
|
17
18
|
TRIGGER_CHARACTER = 2
|
18
19
|
#
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# The diagnostic tags.
|
6
|
+
#
|
7
|
+
module DiagnosticTag
|
8
|
+
#
|
9
|
+
# Unused or unnecessary code.
|
10
|
+
#
|
11
|
+
# Clients are allowed to render diagnostics with this tag faded out
|
12
|
+
# instead of having an error squiggle.
|
13
|
+
#
|
14
|
+
UNNECESSARY = 1
|
15
|
+
#
|
16
|
+
# Deprecated or obsolete code.
|
17
|
+
#
|
18
|
+
# Clients are allowed to rendered diagnostics with this tag strike through.
|
19
|
+
#
|
20
|
+
DEPRECATED = 2
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -7,12 +7,35 @@ module LanguageServer
|
|
7
7
|
METHOD_NOT_FOUND = -32601
|
8
8
|
INVALID_PARAMS = -32602
|
9
9
|
INTERNAL_ERROR = -32603
|
10
|
-
|
11
|
-
|
10
|
+
#
|
11
|
+
# This is the start range of JSON RPC reserved error codes.
|
12
|
+
# It doesn't denote a real error code. No LSP error codes should
|
13
|
+
# be defined between the start and end range. For backwards
|
14
|
+
# compatibility the `ServerNotInitialized` and the `UnknownErrorCode`
|
15
|
+
# are left in the range.
|
16
|
+
#
|
17
|
+
JSONRPC_RESERVED_ERROR_RANGE_START = -32099
|
18
|
+
SERVER_ERROR_START = JSONRPC_RESERVED_ERROR_RANGE_START
|
12
19
|
SERVER_NOT_INITIALIZED = -32002
|
13
20
|
UNKNOWN_ERROR_CODE = -32001
|
14
|
-
|
21
|
+
#
|
22
|
+
# This is the start range of JSON RPC reserved error codes.
|
23
|
+
# It doesn't denote a real error code.
|
24
|
+
#
|
25
|
+
JSONRPC_RESERVED_ERROR_RANGE_END = -32000
|
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.
|
30
|
+
#
|
31
|
+
LSP_RESERVED_ERROR_RANGE_START = -32899
|
15
32
|
CONTENT_MODIFIED = -32801
|
33
|
+
REQUEST_CANCELLED = -32800
|
34
|
+
#
|
35
|
+
# This is the end range of LSP reserved error codes.
|
36
|
+
# It doesn't denote a real error code.
|
37
|
+
#
|
38
|
+
LSP_RESERVED_ERROR_RANGE_END = -32800
|
16
39
|
end
|
17
40
|
end
|
18
41
|
end
|
@@ -3,8 +3,9 @@ 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
|
-
# fails. All operations executed before the failing operation
|
6
|
+
# Applying the workspace change is simply aborted if one of the changes
|
7
|
+
# provided fails. All operations executed before the failing operation
|
8
|
+
# stay executed.
|
8
9
|
#
|
9
10
|
ABORT = 'abort'
|
10
11
|
#
|
@@ -13,9 +14,9 @@ module LanguageServer
|
|
13
14
|
#
|
14
15
|
TRANSACTIONAL = 'transactional'
|
15
16
|
#
|
16
|
-
# If the workspace edit contains only textual file changes they are
|
17
|
-
# If resource changes (create, rename or delete
|
18
|
-
# handling strategy is abort.
|
17
|
+
# If the workspace edit contains only textual file changes they are
|
18
|
+
# executed transactional. If resource changes (create, rename or delete
|
19
|
+
# file) are part of the change the failure handling strategy is abort.
|
19
20
|
#
|
20
21
|
TEXT_ONLY_TRANSACTIONAL = 'textOnlyTransactional'
|
21
22
|
#
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# A pattern kind describing if a glob pattern matches a file a folder or
|
6
|
+
# both.
|
7
|
+
#
|
8
|
+
module FileOperationPatternKind
|
9
|
+
#
|
10
|
+
# The pattern matches a file only.
|
11
|
+
#
|
12
|
+
FILE = 'file'
|
13
|
+
#
|
14
|
+
# The pattern matches a folder only.
|
15
|
+
#
|
16
|
+
FOLDER = 'folder'
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -6,7 +6,8 @@ module LanguageServer
|
|
6
6
|
#
|
7
7
|
module InitializeError
|
8
8
|
#
|
9
|
-
# If the protocol version provided by the client can't be handled by the
|
9
|
+
# If the protocol version provided by the client can't be handled by the
|
10
|
+
# server.
|
10
11
|
#
|
11
12
|
UNKNOWN_PROTOCOL_VERSION = 1
|
12
13
|
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# How whitespace and indentation is handled during completion
|
6
|
+
# item insertion.
|
7
|
+
#
|
8
|
+
module InsertTextMode
|
9
|
+
#
|
10
|
+
# The insertion or replace strings is taken as it is. If the
|
11
|
+
# value is multi line the lines below the cursor will be
|
12
|
+
# inserted using the indentation defined in the string value.
|
13
|
+
# The client will not apply any kind of adjustments to the
|
14
|
+
# string.
|
15
|
+
#
|
16
|
+
AS_IS = 1
|
17
|
+
#
|
18
|
+
# The editor adjusts leading whitespace of new lines so that
|
19
|
+
# they match the indentation up to the cursor of the line for
|
20
|
+
# which the item is accepted.
|
21
|
+
#
|
22
|
+
# Consider a line like this: <2tabs><cursor><3tabs>foo. Accepting a
|
23
|
+
# multi line completion item is indented using 2 tabs and all
|
24
|
+
# following lines inserted will be indented using 2 tabs as well.
|
25
|
+
#
|
26
|
+
ADJUST_INDENTATION = 2
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
module PrepareSupportDefaultBehavior
|
5
|
+
#
|
6
|
+
# The client's default behavior is to select the identifier
|
7
|
+
# according the to language's syntax rule.
|
8
|
+
#
|
9
|
+
IDENTIFIER = 1
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# How a signature help was triggered.
|
6
|
+
#
|
7
|
+
module SignatureHelpTriggerKind
|
8
|
+
#
|
9
|
+
# Signature help was invoked manually by the user or by a command.
|
10
|
+
#
|
11
|
+
INVOKED = 1
|
12
|
+
#
|
13
|
+
# Signature help was triggered by a trigger character.
|
14
|
+
#
|
15
|
+
TRIGGER_CHARACTER = 2
|
16
|
+
#
|
17
|
+
# Signature help was triggered by the cursor moving or by the document
|
18
|
+
# content changing.
|
19
|
+
#
|
20
|
+
CONTENT_CHANGE = 3
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module LanguageServer
|
2
|
+
module Protocol
|
3
|
+
module Constant
|
4
|
+
#
|
5
|
+
# Symbol tags are extra annotations that tweak the rendering of a symbol.
|
6
|
+
#
|
7
|
+
module SymbolTag
|
8
|
+
#
|
9
|
+
# Render a symbol as obsolete, usually using a strike-out.
|
10
|
+
#
|
11
|
+
DEPRECATED = 1
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -6,8 +6,8 @@ module LanguageServer
|
|
6
6
|
#
|
7
7
|
module TextDocumentSaveReason
|
8
8
|
#
|
9
|
-
# Manually triggered, e.g. by the user pressing save, by starting
|
10
|
-
# or by an API call.
|
9
|
+
# Manually triggered, e.g. by the user pressing save, by starting
|
10
|
+
# debugging, or by an API call.
|
11
11
|
#
|
12
12
|
MANUAL = 1
|
13
13
|
#
|
@@ -2,7 +2,8 @@ module LanguageServer
|
|
2
2
|
module Protocol
|
3
3
|
module Constant
|
4
4
|
#
|
5
|
-
# Defines how the host (editor) should sync document changes to the language
|
5
|
+
# Defines how the host (editor) should sync document changes to the language
|
6
|
+
# server.
|
6
7
|
#
|
7
8
|
module TextDocumentSyncKind
|
8
9
|
#
|