-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Land a design for NavBar and NavTo that works across editors #7523
Comments
Without looking at it too much isn't |
They should be comparable. both do a full walk over the tree. |
Is there any public API for getting symbols in a source file that is not UI-oriented? It seems like |
@felixfbecker if you want to live on the edge : https://github.com/basarat/byots 🌹❤️ |
We have landed a design for unified nav-bar between JS and TS for VS and a new navtree for VSCode. We have had this in place for over a year now with no complaints from API uses. I do not think this is needed any longer. |
With the changes in #6644 , JavaScript and TypeScript currently have different NavBar implementations - which is different to the NavTo implementation. We should aim to unify the behavior and reuse logic as much as possible.
There are a couple of design challenges to work through:
NavigationBarItem[]
, and aNavigationBarItem
contains a memberchildItems: NavigationBarItem[]
. This lends itself to a tree-like structure which VSCode handles and shows all items in its single list, whereas VS expects ALL containers to be members of the top-level array returned, with only a single-level depth ofchildItems
(the members for that container).The text was updated successfully, but these errors were encountered: