jonathanyeung / mark-sharp

Mark Sharp WYSIWYG Markdown Editor for VS Code
44 stars 0 forks source link

Mark Sharp should populate the VSCode outline panel to aid swift navigation #35

Open aioue opened 1 month ago

aioue commented 1 month ago

When using the Mark Sharp WYSIWYG editor, the markdown outline is replaced with "The active editor cannot provide outline information.", removing the ability to quickly navigate a long document.

Describe the solution you'd like The same as if a user was editing raw markdown:

image
jonathanyeung commented 1 month ago

Hi @aioue - I added a panel called 'M# Outline' that contains outline information and navigation links, see here for details.

I really wanted to integrate this view into VS Code's Outline panel as you suggest here, but unfortunately it's not possible with the VS Code extension API. The API doesn't expose a hook for custom editors (like M#) to hook into the outline view; it only works when the default editor is open. If the API ever changes I'll move the view into the native Outline panel.

aioue commented 1 month ago

Thanks Jonathan. Happy to close :)