struct

LSP::WorkspaceSymbol

Inherits JSON::Serializable < Struct < Value < Object

A special workspace symbol that supports locations without a range

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

container_name

The name of the symbol containing this symbol. This information is for user interface purposes (e.g. to render a qualifier in the user interface if necessary). It can't be used to re-infer a hierarchy for the document symbols.

Source
container_name=(container_name : String | Nil)

The name of the symbol containing this symbol. This information is for user interface purposes (e.g. to render a qualifier in the user interface if necessary). It can't be used to re-infer a hierarchy for the document symbols.

Source
data

A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request.

Source
data=(data : JSON::Any | Nil)

A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request.

Source
kind

The kind of this symbol.

Source
kind=(kind : SymbolKind)

The kind of this symbol.

Source
location

The location of this symbol. Whether a server is allowed to return a location without a range depends on the client capability workspace.symbol.resolveSupport.

See also SymbolInformation.location.

Source
location=(location : Location | NamedTuple(uri: String))

The location of this symbol. Whether a server is allowed to return a location without a range depends on the client capability workspace.symbol.resolveSupport.

See also SymbolInformation.location.

Source
name

The name of this symbol.

Source
name=(name : String)

The name of this symbol.

Source
tags

FIXME : How to serialize an array of enums? Tags for this completion item.

Source
tags=(tags : Array(SymbolTag) | Nil)

FIXME : How to serialize an array of enums? Tags for this completion item.

Source