Class: LSP::PublishDiagnosticsClientCapabilities
- Defined in:
- lib/lsp/lsp_protocol.rb
Overview
export interface PublishDiagnosticsClientCapabilities {
/**
* Whether the clients accepts diagnostics with related information.
*/
relatedInformation?: boolean;
/**
* Client supports the tag property to provide meta data about a diagnostic.
* Clients supporting tags have to handle unknown tags gracefully.
*
* @since 3.15.0
*/
tagSupport?: {
/**
* The tags supported by the client.
*/
valueSet: DiagnosticTag[];
};
/**
* Whether the client interprets the version property of the
* `textDocument/publishDiagnostics` notification`s parameter.
*
* @since 3.15.0
*/
versionSupport?: boolean;
}
Instance Attribute Summary collapse
-
#relatedInformation ⇒ Object
type: boolean # type: {.
-
#tagSupport ⇒ Object
type: boolean # type: {.
-
#versionSupport ⇒ Object
/** * The tags supported by the client.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ PublishDiagnosticsClientCapabilities
constructor
A new instance of PublishDiagnosticsClientCapabilities.
Methods inherited from LSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ PublishDiagnosticsClientCapabilities
Returns a new instance of PublishDiagnosticsClientCapabilities.
833 834 835 836 |
# File 'lib/lsp/lsp_protocol.rb', line 833 def initialize(initial_hash = nil) super @optional_method_names = %i[relatedInformation tagSupport versionSupport] end |
Instance Attribute Details
#relatedInformation ⇒ Object
type: boolean # type: {
825 826 827 |
# File 'lib/lsp/lsp_protocol.rb', line 825 def @relatedInformation end |
#tagSupport ⇒ Object
type: boolean # type: {
825 826 827 |
# File 'lib/lsp/lsp_protocol.rb', line 825 def tagSupport @tagSupport end |
#versionSupport ⇒ Object
/**
* The tags supported by the client.
*/
valueSet: DiagnosticTag[];
}
831 832 833 |
# File 'lib/lsp/lsp_protocol.rb', line 831 def versionSupport @versionSupport end |
Instance Method Details
#from_h!(value) ⇒ Object
838 839 840 841 842 843 844 |
# File 'lib/lsp/lsp_protocol.rb', line 838 def from_h!(value) value = {} if value.nil? self. = value['relatedInformation'] # Unknown type self.tagSupport = value['tagSupport'] # Unknown type self.versionSupport = value['versionSupport'] # Unknown type self end |