Skip to content

Goto definition with component in architecture #384

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

Open
nicobld opened this issue May 5, 2025 · 0 comments
Open

Goto definition with component in architecture #384

nicobld opened this issue May 5, 2025 · 0 comments
Labels
enhancement New feature or request language server Relates to the language server

Comments

@nicobld
Copy link

nicobld commented May 5, 2025

When having the component written in the architecture that instantiates it, the goto definition goes to the component in the same file, and the goto implementation doesn't do anything. It is impossible to goto the entity definition of b, I'd expect at least one of the gotos to go there.

a.vhd

library ieee;
use ieee.std_logic_1164.all;

library lib;
use lib.all;

entity a is
begin
end entity;

architecture rtl of a is
  signal p : std_logic;
  component b is
    port (
      p : std_logic
    );
  end component;
begin
  b_inst: b
    port map (
      p => p
    );
end architecture;

b.vhd

library ieee;
use ieee.std_logic_1164.all;

entity b is
  port (
    p : in std_logic
  );
end entity;

vhdl_ls.toml

[libraries]
default.files = [
  'a.vhd'
]

lib.files = [
  'b.vhd'
]
@Schottkyc137 Schottkyc137 added enhancement New feature or request language server Relates to the language server labels May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request language server Relates to the language server
Projects
None yet
Development

No branches or pull requests

2 participants