Class: LanguageServer::Protocol::Interface::SignatureHelpOptions
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::SignatureHelpOptions
- Defined in:
- lib/language_server/protocol/interface/signature_help_options.rb
Overview
Server Capabilities for a [SignatureHelpRequest](#SignatureHelpRequest).
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(trigger_characters: nil, retrigger_characters: nil, work_done_progress: nil) ⇒ SignatureHelpOptions
constructor
A new instance of SignatureHelpOptions.
-
#retrigger_characters ⇒ string[] | nil
List of characters that re-trigger signature help.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
-
#trigger_characters ⇒ string[] | nil
List of characters that trigger signature help automatically.
- #work_done_progress ⇒ boolean | nil
Constructor Details
#initialize(trigger_characters: nil, retrigger_characters: nil, work_done_progress: nil) ⇒ SignatureHelpOptions
Returns a new instance of SignatureHelpOptions.
8 9 10 11 12 13 14 15 16 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 8 def initialize(trigger_characters: nil, retrigger_characters: nil, work_done_progress: nil) @attributes = {} @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
44 45 46 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 44 def attributes @attributes end |
Instance Method Details
#retrigger_characters ⇒ string[] | nil
List of characters that re-trigger signature help.
These trigger characters are only active when signature help is already showing. All trigger characters are also counted as re-trigger characters.
35 36 37 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 35 def retrigger_characters attributes.fetch(:retriggerCharacters) end |
#to_hash ⇒ Object
46 47 48 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 46 def to_hash attributes end |
#to_json(*args) ⇒ Object
50 51 52 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 50 def to_json(*args) to_hash.to_json(*args) end |
#trigger_characters ⇒ string[] | nil
List of characters that trigger signature help automatically.
22 23 24 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 22 def trigger_characters attributes.fetch(:triggerCharacters) end |
#work_done_progress ⇒ boolean | nil
40 41 42 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 40 def work_done_progress attributes.fetch(:workDoneProgress) end |