You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support DocumentSymbolProvider in CustomTextEditor #97095
*out-of-scopePosted issue is not in scope of VS Codecustom-editorsCustom editor API (webview based editors)feature-requestRequest for new features or functionalityoutlineSource outline view issues
I think it would be a great idea if CustomTextEditor supported DocumentSymbolProvider since CustomTextEditor use TextDocument as a model.
For example, I am writing an extension with the new CustomTextEditor APIs for special xml files that can be rendered in a special way. I have written a DocumentSymbolProvider for xml files with this schema and I expected the Outline view to be populated by the symbols.
Other examples for how useful it would be to support DocumentSymbolProvider are:
Getting the outline for markdown documents while displaying the preview mode
Could be ground work to make the Outline view work with jupyter notebooks (see the sections tree view on Google Colab to get an idea of the end result)
Many UI frameworks use xml to describe a layout, with custom editors and DocumentSymbolProvider you could potentially have GUI based editor and the view hierarchy in the outline
Ideally the CustomTextEditor should be able to intercept "goto symbol" events to focus the symbol in the custom editor (i.e. going to a particular section or highlighting an element in the layout editor).
Reacted by Tal Ben-Nun, Piers Deseilligny, Phil Fearon, John Murray, Ido Perez, Amiram Wingarten, B Raghavendra Rao, sumedhaGargGithub, Vaishnavi Dharmaraja, klayman and 49 more
This is valid request but I don't think using document symbol notion makes a lot of sense here. It's more like a table of contents provider with toc entries (that are similar to document symbols) Custom editors are then in charge of revealing them because only they know how to scroll an element into view.
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
*out-of-scopePosted issue is not in scope of VS Codecustom-editorsCustom editor API (webview based editors)feature-requestRequest for new features or functionalityoutlineSource outline view issues
Activity
chq-matteo commentedon May 6, 2020
This is a screenshot of Google Colab for reference

jrieken commentedon May 11, 2020
very much related to #95234
This is valid request but I don't think using document symbol notion makes a lot of sense here. It's more like a table of contents provider with toc entries (that are similar to document symbols) Custom editors are then in charge of revealing them because only they know how to scroll an element into view.
vscode-triage-bot commentedon May 11, 2020
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
vscode-triage-bot commentedon Jul 1, 2020
This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.
Happy Coding
vscode-triage-bot commentedon Jul 11, 2020
🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
iantbutler01 commentedon Apr 12, 2021
jogibear9988 commentedon Mar 24, 2023
Johannes Rieken (@jrieken)
as this is on the backlog for 3 years now, any news when there is something going to happen?
maybe my issue with extra buttons for treeviews #176910 is also related to this
vscodenpa commentedon Dec 7, 2023
We closed this issue because we don't plan to address it in the foreseeable future. If you disagree and feel that this issue is crucial: we are happy to listen and to reconsider.
If you wonder what we are up to, please see our roadmap and issue reporting guidelines.
Thanks for your understanding, and happy coding!
AlbertoFabbri93 commentedon Mar 21, 2026
Is there any plan for an alternative way of showing the outline when previewing markdown documents?
jogibear9988 commentedon Mar 25, 2026
I've implemented a solution in this PR:
#304909
would look like this:
jogibear9988 commentedon Mar 25, 2026
implementation would look like this:
node-projects/vs-code-designer-addon#12
jogibear9988 commentedon Mar 29, 2026
I'm not sure if it helps, but maybe som of the requestors can vote up my pull, maybe then they decide again to look after
jogibear9988 commentedon Aug 10, 2026
Can everybody who voted here, upvote: #327247
jogibear9988 commentedon Aug 10, 2026
Tal Ben-Nun (@tbennun), Piers Deseilligny (@piersdeseilligny), Phil Fearon (@pgfearo), Ido Perez (@idoprz), Amiram Wingarten (@amiramw), B Raghavendra Rao (@braghavendrarao), sumedhaGargGithub, Vaishnavi Dharmaraja (@vaishd), klayman (@avishaik), Sumeet Bagewadi (@sumeet4u55), Johannes de Fine Licht (@definelicht), alexnick83, Tiziano De Matteis (@TizianoDeMatteis), Philipp Schaad (@phschaad), Yishai Oltchik (@Larrath), acalotoiu, Linus (@gronerl), Jan Kleine (@JanKleine), Noah Bar (@NoaBar), Oliver Rausch (@orausch), Dominic Hofer (@dominichofer), Daniele De Sensi (@DanieleDeSensi), Salvatore Di Girolamo (@SalvatoreDiGirolamo), Torsten Hoefler (@htorst), Jakub Beránek (@Kobzol), Thompson Lee (@tommai78101), Protostomien, Ian Butler (@iantbutler01), chq-matteo, Ricardo Gonçalves (@rgoncalves-fuze), Tushar Sadhwani (@tusharsadhwani), liangjiancang (@liangjiancang), Manoj Baishya (@manojbaishya), yy0931, Adam Rose (@adamerose), go-commit-code, Tomas Panacek (@tpanacek), depascalis, soargon (@soargon), Chen XI (@xc1427), Jessica Rodriguez (@jessicarod7), Gabriel Grinberg (@GabiGrin), emi (@emiliorizzo), Daniele Abbatelli (@dnabb), Nathaniel Palmer (@diminutivesloop), vvchebotar, heartacker, Victor Epain (@vepain), Lukas Lieb (@ivy-lli), globalhuman, @kalin91, @darknoon, @goanpeca, @corey-kdm, @cad0p
you all upvoted this issue, maybe you are still interested in this, the upvote the followup: #327247