'VSCode Get current file hierarchy (outline)?
On VSCode API, is there a way to get the file structure hierarchy (the outline)?
For example, let's say I have a markdown file opened, I want to get the structure, token, parsed result in any form of the document, so I can pass the data to my extension program (and render on the Treeview for example).
I googled some and found a issue on Github such as this, or SO posts such as this, according to my research I could use something like vscode.DocumentSymbol.children, but this code doesn't show an output. (I could expect this since I just tried to run to see if it works by chance)
So how is it possible? Thanks.
Solution 1:[1]
Choose from menu:
View -> Open View
In the list that is shown scroll down and select 'Outline'
Good luck!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ove Stoerholt |
