Class: LanguageServer::Protocol::Interface::SignatureHelpOptions
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::SignatureHelpOptions
- Defined in:
- lib/language_server/protocol/interface/signature_help_options.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil) ⇒ SignatureHelpOptions
constructor
A new instance of SignatureHelpOptions.
-
#retrigger_characters ⇒ string[]
List of characters that re-trigger signature help.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
-
#trigger_characters ⇒ string[]
The characters that trigger signature help automatically.
- #work_done_progress ⇒ boolean
Constructor Details
#initialize(work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil) ⇒ SignatureHelpOptions
Returns a new instance of SignatureHelpOptions.
5 6 7 8 9 10 11 12 13 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 5 def initialize(work_done_progress: nil, trigger_characters: nil, retrigger_characters: nil) @attributes = {} @attributes[:workDoneProgress] = work_done_progress if work_done_progress @attributes[:triggerCharacters] = trigger_characters if trigger_characters @attributes[:retriggerCharacters] = retrigger_characters if retrigger_characters @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
41 42 43 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 41 def attributes @attributes end |
Instance Method Details
#retrigger_characters ⇒ string[]
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.
37 38 39 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 37 def retrigger_characters attributes.fetch(:retriggerCharacters) end |
#to_hash ⇒ Object
43 44 45 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 43 def to_hash attributes end |
#to_json(*args) ⇒ Object
47 48 49 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 47 def to_json(*args) to_hash.to_json(*args) end |
#trigger_characters ⇒ string[]
The characters that trigger signature help automatically.
25 26 27 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 25 def trigger_characters attributes.fetch(:triggerCharacters) end |
#work_done_progress ⇒ boolean
16 17 18 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 16 def work_done_progress attributes.fetch(:workDoneProgress) end |