Skip to content

Support DocumentSymbolProvider in CustomTextEditor #97095

Closed as not planned

Description

@chq-matteo

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).

Activity

  1. chq-matteo commented on May 6, 2020

    @chq-matteo
    Author

    This is a screenshot of Google Colab for reference
    image

  2. jrieken commented on May 11, 2020

    @jrieken
    Contributor

    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.

  3. added
    custom-editors
    feature-request
    outline
    on May 11, 2020
  4. vscode-triage-bot commented on May 11, 2020

    @vscode-triage-bot

    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!

  5. vscode-triage-bot commented on Jul 1, 2020

    @vscode-triage-bot

    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

  6. vscode-triage-bot commented on Jul 11, 2020

    @vscode-triage-bot

    🙂 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!

  7. iantbutler01 commented on Apr 12, 2021

    @iantbutler01
  8. jogibear9988 commented on Mar 24, 2023

    @jogibear9988
    Contributor

    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

  9. added
    *out-of-scope
    on Dec 7, 2023
  10. vscodenpa commented on Dec 7, 2023

    @vscodenpa

    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!

  11. AlbertoFabbri93 commented on Mar 21, 2026

    @AlbertoFabbri93

    Is there any plan for an alternative way of showing the outline when previewing markdown documents?

  12. jogibear9988 commented on Mar 25, 2026

    @jogibear9988
    Contributor

    I've implemented a solution in this PR:
    #304909

    would look like this:

    Image
  13. jogibear9988 commented on Mar 25, 2026

    @jogibear9988
    Contributor

    implementation would look like this:

    node-projects/vs-code-designer-addon#12

  14. jogibear9988 commented on Mar 29, 2026

    @jogibear9988
    Contributor

    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

  15. jogibear9988 commented on Aug 10, 2026

    @jogibear9988
    Contributor

    Can everybody who voted here, upvote: #327247

  16. jogibear9988 commented on Aug 10, 2026

    @jogibear9988
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*out-of-scopecustom-editorsfeature-requestoutline

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions