Class: LanguageServer::Protocol::Interface::CodeLensWorkspaceClientCapabilities
- Inherits:
-
Object
- Object
- LanguageServer::Protocol::Interface::CodeLensWorkspaceClientCapabilities
- Defined in:
- lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Instance Method Summary collapse
-
#initialize(refresh_support: nil) ⇒ CodeLensWorkspaceClientCapabilities
constructor
A new instance of CodeLensWorkspaceClientCapabilities.
-
#refresh_support ⇒ boolean
Whether the client implementation supports a refresh request sent from the server to the client.
- #to_hash ⇒ Object
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(refresh_support: nil) ⇒ CodeLensWorkspaceClientCapabilities
Returns a new instance of CodeLensWorkspaceClientCapabilities.
5 6 7 8 9 10 11 |
# File 'lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb', line 5 def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
27 28 29 |
# File 'lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb', line 27 def attributes @attributes end |
Instance Method Details
#refresh_support ⇒ boolean
Whether the client implementation supports a refresh request sent from the server to the client.
Note that this event is global and will force the client to refresh all code lenses currently shown. It should be used with absolute care and is useful for situation where a server for example detect a project wide change that requires such a calculation.
23 24 25 |
# File 'lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb', line 23 def refresh_support attributes.fetch(:refreshSupport) end |
#to_hash ⇒ Object
29 30 31 |
# File 'lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb', line 29 def to_hash attributes end |
#to_json(*args) ⇒ Object
33 34 35 |
# File 'lib/language_server/protocol/interface/code_lens_workspace_client_capabilities.rb', line 33 def to_json(*args) to_hash.to_json(*args) end |