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 #327247
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 custovem 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).
(copied over from issue #97095, cause now a pull request exists)
Reacted by Alberto Fabbri, RedCMD, Edoardo Luppi, Max Klein, Jochen Kühner, John Murray, brandonthomascheung, Frederic Lachasse, wnwaynelee, Philip Cohn-Cort and 22 more
I would also extend this to webview panels, but as a starting point custom editors are good enough. Jochen Kühner (@jogibear9988) does your solution work for non-textual custom editors?
We have customers requesting outlines, and a native approach would be far better than trying to come up with yet another tool window webview, or with an in-editor custom outline.
Yes, but we don't always need a custom editor when a webview panel is sufficient without all the editor infrastructure. The "workaround" in this case, if we want an outline, would be to convert the panel to a read-only editor.
Could be ground work to make the Outline view work with jupyter notebooks
As a Jupyter dev, I support this effort.
I also want this pulled in to help fix a years-long pet peeve of mine: the missing outline in markdown preview. Why the hell does my markdown outline disappear when I go from raw to preview? I understand that from a practical perspective the preview outline requires the missing functionality that this issue/pr would provide. But from a UX perspective it's complete dogwater
Yeah having this as the single entry point for outlines would solve soooo many UX issues. There is no reason to have everyone create their own custom outlines, it's just a usability nightmare.
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 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.
It's now getting more and more irelevant, as the days of the coding IDE's are nearly over.... I more and more start VSCode myself, or edit any code with it...
So for me, it does not matter any more if this ever will land.
And as I see, when I created the Pull for this, vscode had 1k of open pulls, now it's 3k... so I think also the days of open source mergenes are nearly over, as noone can review this amount of code
I'd prefer this to be merged to be honest. VS Code is a platform, and it's not used exclusively for coding. We build custom editors and webviews for more "resource-management" style workflows, and those would benefit from reusing the standardized outline.
Activity
jogibear9988 commentedon Jul 24, 2026
pull: #304909
original issue: #97095
lppedd commentedon Jul 26, 2026
Very much in favor of this.
I would also extend this to webview panels, but as a starting point custom editors are good enough.
Jochen Kühner (@jogibear9988) does your solution work for non-textual custom editors?
We have customers requesting outlines, and a native approach would be far better than trying to come up with yet another tool window webview, or with an in-editor custom outline.
jogibear9988 commentedon Jul 26, 2026
Custom Editors are a webview.
I created a WYSIWYG HTML editor, and the outline view works with it. So yeah, it works for non textual editors
lppedd commentedon Jul 26, 2026
Yes, but we don't always need a custom editor when a webview panel is sufficient without all the editor infrastructure. The "workaround" in this case, if we want an outline, would be to convert the panel to a read-only editor.
jogibear9988 commentedon Jul 26, 2026
I can check if a Editor is really needed…
I did this months ago, so I don‘t know any more…
lppedd commentedon Jul 26, 2026
Keep it as it is, I'd avoid changes now. I'm honestly more interested into them reviewing your code.
jogibear9988 commentedon Jul 26, 2026
Don‘t know if this happens
lszomoru commentedon Jul 27, 2026
Dirk Bäumer (@dbaeumer), could you please triage this issue? Thank you!
telamonian commentedon Aug 5, 2026
As a Jupyter dev, I support this effort.
I also want this pulled in to help fix a years-long pet peeve of mine: the missing outline in markdown preview. Why the hell does my markdown outline disappear when I go from raw to preview? I understand that from a practical perspective the preview outline requires the missing functionality that this issue/pr would provide. But from a UX perspective it's complete dogwater
lppedd commentedon Aug 5, 2026
Yeah having this as the single entry point for outlines would solve soooo many UX issues. There is no reason to have everyone create their own custom outlines, it's just a usability nightmare.
jogibear9988 commentedon Aug 6, 2026
looks like this in my wysiwyg html designer:
vs-code-engineering commentedon Aug 10, 2026
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!
vs-code-engineering commentedon Aug 12, 2026
🙂 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!
jogibear9988 commentedon Oct 22, 2026
It's now getting more and more irelevant, as the days of the coding IDE's are nearly over.... I more and more start VSCode myself, or edit any code with it...
So for me, it does not matter any more if this ever will land.
And as I see, when I created the Pull for this, vscode had 1k of open pulls, now it's 3k... so I think also the days of open source mergenes are nearly over, as noone can review this amount of code
lppedd commentedon Oct 22, 2026
I'd prefer this to be merged to be honest. VS Code is a platform, and it's not used exclusively for coding. We build custom editors and webviews for more "resource-management" style workflows, and those would benefit from reusing the standardized outline.
But I understand the frustration...
jogibear9988 commentedon Oct 22, 2026
I would also prefer it... but it seems to me nothing is going on any more, at least no reaction to community pull requests....