Class: LanguageServer::Protocol::Interface::SignatureHelpOptions
- Inherits:
-
WorkDoneProgressOptions
- Object
- WorkDoneProgressOptions
- LanguageServer::Protocol::Interface::SignatureHelpOptions
- Defined in:
- lib/language_server/protocol/interface/signature_help_options.rb
Direct Known Subclasses
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.
Methods inherited from WorkDoneProgressOptions
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.
35 36 37 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 35 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.
31 32 33 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 31 def retrigger_characters attributes.fetch(:retriggerCharacters) end |
#to_hash ⇒ Object
37 38 39 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 37 def to_hash attributes end |
#to_json(*args) ⇒ Object
41 42 43 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 41 def to_json(*args) to_hash.to_json(*args) end |
#trigger_characters ⇒ string[]
The characters that trigger signature help automatically.
20 21 22 |
# File 'lib/language_server/protocol/interface/signature_help_options.rb', line 20 def trigger_characters attributes.fetch(:triggerCharacters) end |