Creates a new document symbol.
The name of the symbol.
Details for the symbol.
The kind of the symbol.
The full range of the symbol.
The range that should be reveal.
The name of this symbol.
More detail for this symbol, e.g. the signature of a function.
The kind of this symbol.
Tags for this symbol.
The range enclosing this symbol not including leading/trailing whitespace but everything else, e.g. comments and code.
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
.
Children of this symbol, e.g. properties of a class.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
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.