vscode-code-outline
vscode-code-outline copied to clipboard
Navigating to a symbol shows it in a less than ideal position in the editor
When selecting something in the code outline, the editor scrolls to the symbol, but the symbol is found at the bottom of the screen. Ideally, it should be positioned at the top so it's easier to see.
That's how "reveal" works by default. I can request a particular position (top, middle, bottom) but that often breaks when the symbol range is longer than fits on your screen. The default behavior also usually moves the screen only as much as possible, maintaining much of the context. If you want to play with it, I suggest that you test other behaviors before submitting a pull request.
Ok you're right. I would prefer AtTop, and that AtTop in fact always displayed it at the top.
I've logged an issue with vscode about this at https://github.com/Microsoft/vscode/issues/50457