Skip to content

Commit 20a8e70

Browse files
committed
$ bin/generate_files
1 parent 07c2813 commit 20a8e70

13 files changed

+11
-16
lines changed

lib/language_server/protocol/constant/text_document_sync_kind.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ module Protocol
33
module Constant
44
#
55
# Defines how the host (editor) should sync document changes to the language server.
6-
# Defines how the host (editor) should sync document changes to the language server.
76
#
87
module TextDocumentSyncKind
98
#

lib/language_server/protocol/interface/client_capabilities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def initialize(workspace: nil, text_document: nil, window: nil, experimental: ni
1616
#
1717
# Workspace specific client capabilities.
1818
#
19-
# @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: ...]
19+
# @return [{ applyEdit?: boolean; workspaceEdit?: WorkspaceEditClientCapabilities; didChangeConfiguration?: DidChangeConfigurationClientCapabilities; ... 4 more ...; configuration?: boolean; }]
2020
def workspace
2121
attributes.fetch(:workspace)
2222
end

lib/language_server/protocol/interface/completion_client_capabilities.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def dynamic_registration
2525
# The client supports the following `CompletionItem` specific
2626
# capabilities.
2727
#
28-
# @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]...]
28+
# @return [{ snippetSupport?: boolean; commitCharactersSupport?: boolean; documentationFormat?: MarkupKind[]; deprecatedSupport?: boolean; preselectSupport?: boolean; tagSupport?: { valueSet: 1[]; }; }]
2929
def completion_item
3030
attributes.fetch(:completionItem)
3131
end

lib/language_server/protocol/interface/completion_item.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def insert_text
129129
# and the `newText` property of a provided `textEdit`. If omitted defaults to
130130
# `InsertTextFormat.PlainText`.
131131
#
132-
# @return [DiagnosticTag]
132+
# @return [InsertTextFormat]
133133
def insert_text_format
134134
attributes.fetch(:insertTextFormat)
135135
end

lib/language_server/protocol/interface/hover.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(contents:, range: nil)
1717
#
1818
# The hover's content
1919
#
20-
# @return [string | MarkupContent | { language: string; value: string; } | MarkedString[]]
20+
# @return [MarkupContent | MarkedString | MarkedString[]]
2121
def contents
2222
attributes.fetch(:contents)
2323
end

lib/language_server/protocol/interface/partial_result_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(partial_result_token: nil)
1414
# An optional token that a server can use to report partial results (e.g. streaming) to
1515
# the client.
1616
#
17-
# @return [string | number]
17+
# @return [ProgressToken]
1818
def partial_result_token
1919
attributes.fetch(:partialResultToken)
2020
end

lib/language_server/protocol/interface/progress_params.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def initialize(token:, value:)
1414
#
1515
# The progress token provided by the client or server.
1616
#
17-
# @return [string | number]
17+
# @return [ProgressToken]
1818
def token
1919
attributes.fetch(:token)
2020
end

lib/language_server/protocol/interface/signature_help_context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def initialize(trigger_kind:, trigger_character: nil, is_retrigger:, active_sign
1919
#
2020
# Action that caused signature help to be triggered.
2121
#
22-
# @return [CompletionTriggerKind]
22+
# @return [SignatureHelpTriggerKind]
2323
def trigger_kind
2424
attributes.fetch(:triggerKind)
2525
end

lib/language_server/protocol/interface/text_document_registration_options.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def initialize(document_selector:)
1717
# A document selector to identify the scope of the registration. If set to null
1818
# the document selector provided on the client side will be used.
1919
#
20-
# @return [DocumentFilter[]]
20+
# @return [DocumentSelector]
2121
def document_selector
2222
attributes.fetch(:documentSelector)
2323
end

lib/language_server/protocol/interface/text_document_sync_options.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ def initialize(open_close: nil, change: nil, will_save: nil, will_save_wait_unti
1717
#
1818
# Open and close notifications are sent to the server. If omitted open close notification should not
1919
# be sent.
20-
# Open and close notifications are sent to the server. If omitted open close notification should not
21-
# be sent.
2220
#
2321
# @return [boolean]
2422
def open_close
@@ -28,8 +26,6 @@ def open_close
2826
#
2927
# Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
3028
# and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
31-
# Change notifications are sent to the server. See TextDocumentSyncKind.None, TextDocumentSyncKind.Full
32-
# and TextDocumentSyncKind.Incremental. If omitted it defaults to TextDocumentSyncKind.None.
3329
#
3430
# @return [any]
3531
def change

0 commit comments

Comments
 (0)