Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 800 Bytes

File metadata and controls

15 lines (8 loc) · 800 Bytes

Document Symbols

Document Symbols are used to provide an outline of a document.

Default Implementation in AnyText

By default, no document symbols are provided.

Customizations

To define that a rule denotes a document symbol, one can override the property SymbolKind of the class Rule. Because LSP restricts the possible valuies of a document symbol kind, this is implemented as an enumeration.

Making a rule representing a document symbol also registers that symbol kind for completions and activates a folding range by default.

Symbols can be tagged, overriding the method SymbolTag.