Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update explorer inline treeview when moving selection on current editor #224705

Closed
cognominal opened this issue Aug 4, 2024 · 5 comments
Closed
Assignees

Comments

@cognominal
Copy link

The RFE is relevant only when the current editor contains a file content which format is supported by the language
service: markdown, typescript... So that an inline treeview is displayed in the explorer sidebar.

When selecting an item in the explorer sidebar treeview, the corresponding code in the current editor is selected, and,
possibly, scrolling happens to make that selection visible.
The current RFE asks for things to go in the opposite direction. When the editor selection changes, the selection in the
inline treeview should change to reflect it.

This feature is missing from vscode-insider as of early august 2024.

I found this shortcoming when trying to solve a similar one on my (yet unpublished) ts-AST-explorer extension and filed a
bug about it.

@gjsjohnmurray
Copy link
Contributor

Are you able to fork vscode-extension-samples, then create a branch on your fork in which you modify the tree-view-sample to demonstrate your issue as simply as possible?

@lramos15 lramos15 assigned alexr00 and unassigned lramos15 Aug 5, 2024
@alexr00
Copy link
Member

alexr00 commented Aug 6, 2024

This is a feature request to have the outline view follow the current selection in the editor?

@alexr00 alexr00 added the info-needed Issue requires more information from poster label Aug 6, 2024
@cognominal
Copy link
Author

cognominal commented Aug 6, 2024

This is a feature request to have the outline view follow the current selection in the editor?

Yes. I wish my english was good enough to express it in so few words.
The json outline is very close to what I want to do with my AST-explorer, especially with that requested feature.

As suggested by gjsjohnmurray
I will try to fork the treeview sample, not so much to reproduce my issue, but to start from a sane codebase. It would be even better if someone implement the requested feature.

Thx for your feedback.

@alexr00
Copy link
Member

alexr00 commented Aug 7, 2024

I think showing us what you wanted with the tree view sample was to make sure we understood your request. Now that we understand it's not as important to do.

@alexr00 alexr00 assigned jrieken and unassigned alexr00 Aug 7, 2024
@alexr00 alexr00 removed the info-needed Issue requires more information from poster label Aug 7, 2024
@jrieken
Copy link
Member

jrieken commented Aug 7, 2024

You can do this

Image

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

5 participants