Class: LanguageServer::Protocol::Interface::SignatureHelpClientCapabilities
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::SignatureHelpClientCapabilities
- Defined in:
- lib/language_server/protocol/interface/signature_help_client_capabilities.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#context_support ⇒ boolean
The client supports to send additional context information for a ‘textDocument/signatureHelp` request.
-
#dynamic_registration ⇒ boolean
Whether signature help supports dynamic registration.
-
#initialize(dynamic_registration: nil, signature_information: nil, context_support: nil) ⇒ SignatureHelpClientCapabilities
constructor
A new instance of SignatureHelpClientCapabilities.
-
#signature_information ⇒ { documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }
The client supports the following ‘SignatureInformation` specific properties.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(dynamic_registration: nil, signature_information: nil, context_support: nil) ⇒ SignatureHelpClientCapabilities
Returns a new instance of SignatureHelpClientCapabilities.
5 6 7 8 9 10 11 12 13 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 5 def initialize(dynamic_registration: nil, signature_information: nil, context_support: nil) @attributes = {} @attributes[:dynamicRegistration] = dynamic_registration if dynamic_registration @attributes[:signatureInformation] = signature_information if signature_information @attributes[:contextSupport] = context_support if context_support @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
43 44 45 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 43 def attributes @attributes end |
Instance Method Details
#context_support ⇒ boolean
The client supports to send additional context information for a ‘textDocument/signatureHelp` request. A client that opts into contextSupport will also support the `retriggerCharacters` on `SignatureHelpOptions`.
39 40 41 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 39 def context_support attributes.fetch(:contextSupport) end |
#dynamic_registration ⇒ boolean
Whether signature help supports dynamic registration.
19 20 21 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 19 def dynamic_registration attributes.fetch(:dynamicRegistration) end |
#signature_information ⇒ { documentationFormat?: MarkupKind[]; parameterInformation?: { labelOffsetSupport?: boolean; }; activeParameterSupport?: boolean; }
The client supports the following ‘SignatureInformation` specific properties.
28 29 30 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 28 def signature_information attributes.fetch(:signatureInformation) end |
#to_hash ⇒ Object
45 46 47 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 45 def to_hash attributes end |
#to_json(*args) ⇒ Object
49 50 51 |
# File 'lib/language_server/protocol/interface/signature_help_client_capabilities.rb', line 49 def to_json(*args) to_hash.to_json(*args) end |