DocumentSymbol

Represents programming constructs like variables, classes, interfaces etc. that appear in a document. Document symbols can be hierarchical and they have two ranges: one that encloses its definition and one that points to its most interesting range, e.g. the range of an identifier.

Online Documentation

Constructors

Link copied to clipboard
constructor(name: String, detail: String, kind: SymbolKind, range: Range, selectionRange: Range)

Creates a new document symbol.

Properties

Link copied to clipboard

Children of this symbol, e.g. properties of a class.

Link copied to clipboard
external var detail: String

More detail for this symbol, e.g. the signature of a function.

Link copied to clipboard
external var kind: SymbolKind

The kind of this symbol.

Link copied to clipboard
external var name: String

The name of this symbol.

Link copied to clipboard
external var range: Range

The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.

Link copied to clipboard
external var selectionRange: Range

The range that should be selected and reveal when this symbol is being picked, e.g. the name of a function. Must be contained by the range.

Link copied to clipboard
external var tags: ReadonlyArray<SymbolTag>?

Tags for this symbol.