VSCode-SystemVerilog icon indicating copy to clipboard operation
VSCode-SystemVerilog copied to clipboard

Go to definition doesn't work for "spi" module name

Open hi0t opened this issue 1 year ago • 1 comments

OS: Ubuntu 22.04 (WSL) Vscode: 1.89.1 SystemVerilog: 0.13.9

  1. Create an empty project with two modules:
module top (
    input clk
);

spi spi(clk);

endmodule
module spi(
    input clk
);

endmodule
  1. Click the index button
  2. Try to go to the spi module from the top module and nothing happens.

If you rename the spi module, for example, to xyz, then "Go to definition" starts to work. What is this magical name "spi"?

hi0t avatar May 31 '24 22:05 hi0t

The problem seems to be when the module instance has same name as the module. Having the same issue.

calint avatar Jun 25 '24 07:06 calint