Sha256: 5b5eeaf997dd5b618ba8938045dff06304cdb09a5e1132ae673ede0c8534a2a8
Contents?: true
Size: 1.1 KB
Versions: 105
Compression:
Stored size: 1.1 KB
Contents
module LanguageServer module Protocol module Interface # # Client workspace capabilities specific to inlay hints. # class InlayHintWorkspaceClientCapabilities def initialize(refresh_support: nil) @attributes = {} @attributes[:refreshSupport] = refresh_support if refresh_support @attributes.freeze end # # 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 # inlay hints currently shown. It should be used with absolute care and # is useful for situation where a server for example detects a project wide # change that requires such a calculation. # # @return [boolean] def refresh_support attributes.fetch(:refreshSupport) end attr_reader :attributes def to_hash attributes end def to_json(*args) to_hash.to_json(*args) end end end end end
Version data entries
105 entries across 105 versions & 14 rubygems