-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Create a "TypeHierarchyProvider" api for visualising type hierarchies #15533
Comments
Any progress on this one? I would really love to have this feature in VSCode. |
@fwcd Not for VS Code native yet, but there has been recent activity on the LSP implementation at microsoft/vscode-languageserver-node#426, which when completed generally translates into a very similar native API. Of course, there's also a matter of the UI. |
We have call hierarchy now, which is perfect. How it is going with type hierarchy? This is IMHO somewhat essential functionality in typed languages like TypeScript, Java... |
+1 from Java perspective. Type Hierarchy is also super useful for Java users. |
fyi - we do have an API proposal for this, the LSP counter part is quite far already, and the UI is being worked on: vscode/src/vs/vscode.proposed.d.ts Line 3070 in cf77875
|
Keeping this issue open to finalize the API |
Done. The API is now finalized, there is "Peek Type Hierarchy" and "Show Type Hierarchy" command. Special thanks to @Eskibear who did all of this 👏 |
To verify make sure that latest1 1 find latest |
(Split from #15485)
Dart Code has had requests for viewing/navigating type hierarchies. We've implemented this for now using the pick-list, but we had to make compromises to fit it into a flat list.
Some other editors have this functionality and it's a concept that's not specific to Dart, so it might make sense as a provider that can be implemented by extensions.
Here's an image of it in another editor and also how we've managed to implement it currently.
The text was updated successfully, but these errors were encountered: