class LanguageServer::Protocol::Interface::WorkspaceFoldersServerCapabilities
Attributes
attributes[R]
Public Class Methods
new(supported: nil, change_notifications: nil)
click to toggle source
# File lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb, line 5 def initialize(supported: nil, change_notifications: nil) @attributes = {} @attributes[:supported] = supported if supported @attributes[:changeNotifications] = change_notifications if change_notifications @attributes.freeze end
Public Instance Methods
change_notifications()
click to toggle source
Whether the server wants to receive workspace folder change notifications.
If a string is provided, the string is treated as an ID under which the notification is registered on the client side. The ID can be used to unregister for these events using the `client/unregisterCapability` request.
@return [string | boolean]
# File lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb, line 32 def change_notifications attributes.fetch(:changeNotifications) end
supported()
click to toggle source
The server has support for workspace folders
@return [boolean]
# File lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb, line 18 def supported attributes.fetch(:supported) end
to_hash()
click to toggle source
# File lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb, line 38 def to_hash attributes end
to_json(*args)
click to toggle source
# File lib/language_server/protocol/interface/workspace_folders_server_capabilities.rb, line 42 def to_json(*args) to_hash.to_json(*args) end