Skip to content
This repository has been archived by the owner on Jul 11, 2018. It is now read-only.

Navigating to a symbol shows it in a less than ideal position in the editor #137

Open
StigOlavsen opened this issue May 25, 2018 · 2 comments

Comments

@StigOlavsen
Copy link

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.

@patrys
Copy link
Owner

patrys commented May 25, 2018

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.

@StigOlavsen
Copy link
Author

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 microsoft/vscode#50457

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants