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

Design Hierarchy View #14

Open
std-rubic opened this issue Apr 3, 2024 · 2 comments
Open

Design Hierarchy View #14

std-rubic opened this issue Apr 3, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@std-rubic
Copy link

A view to navigate through the design (hierarchy <-> Source files) would be a very helpful feature of this extension.
something like the (a bit imprecise) vhdl-hierarchy extension...
https://marketplace.visualstudio.com/items?itemName=JesperRaemaekers.vhdl-hierarchy

@jakobjung10
Copy link
Collaborator

Hi @std-rubic,

there is an outline view showing the hierarchy of a single file (with the information from the Language Server).
outline-view

However, i think you are talking about the hierarchy of the whole project.
In this case, a custom view must be implemented.
It would be optimal to use a specific LSP-request to get the hierarchy information from the Language Server.

Currently, there is no such LSP-request implemented in VHDL_LS.
However, if you take a look at the LSP-specification there is no LSP-request covering that specific scenario for the design-hierarchy.

I think the closest request are:

Therefore, an issue must be created at VHDL_LS, but i am not sure if this method is optimal...

Another approach would be that the user specificies the top-level entity.
From there, you could send a document-symbol-request to the Language Server (which is implemented in VHDL_LS).
I think, from the returned information the children of the top-level-entity can be shown and on the client-side you could query the children of the whole project recursively. However, querying from the client-side is slower, an indirect route and possibly not that optimal, too...

Maybe, the already existing outline-view in the client can be made recursive from the server-side (not sure).

For me, the VHDL hierarchy-extension did not work btw.

@jakobjung10 jakobjung10 added the enhancement New feature or request label Jun 29, 2024
@std-rubic
Copy link
Author

Hi Jacobjung10, thanks for sharing the ideas.
When i unterstand the vhdl-ls issue 219 right there ist Work in Progress for a bigger API concept, which could enable helpful functionality for this topic.

VHDL-LS/rust_hdl#219

@std-rubic std-rubic reopened this Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants