class LSProtocol::WorkspaceSymbol
 
  - LSProtocol::WorkspaceSymbol
- Reference
- Object
Overview
A special workspace symbol that supports locations without a range.
See also SymbolInformation.
@since 3.17.0
Included Modules
- JSON::Serializable
Defined in:
lsprotocol/types.crConstructors
- .new(kind : SymbolKind | Nil, location : Location | LocationUriOnly | Nil, name : String | Nil, container_name : String | Nil = nil, data : LSPAny | Nil = nil, tags : Array(SymbolTag) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- 
        #container_name : String | Nil
        
          The name of the symbol containing this symbol. 
- 
        #data : LSPAny | Nil
        
          A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request. 
- 
        #kind : SymbolKind
        
          The kind of this symbol. 
- 
        #location : Location | LocationUriOnly
        
          The location of the symbol. 
- 
        #name : String
        
          The name of this symbol. 
- 
        #tags : Array(SymbolTag) | Nil
        
          Tags for this symbol. 
Constructor Detail
Instance Method Detail
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.
A data entry field that is preserved on a workspace symbol between a workspace symbol request and a workspace symbol resolve request.
The location of the symbol. Whether a server is allowed to
return a location without a range depends on the client
capability workspace.symbol.resolveSupport.
See SymbolInformation#location for more details.