Fail to navigate in VSCode

I have a small julia file:

module Parent
  module sub1
    module subsub
      export f
      f(x)=x
    end

    using .subsub
    export f
  end

  module sub2
    export g
    using ..sub1
    g(x)=f(x)^2
  end

  using .sub2
  export g
end

This file works fine, and I can correctly use the g function after using .Parent in REPL.

However, I am using VSCode to edit the file. I was hoping that by right cliking the f(x) function in the sub2 module, I can directly jump to its definition in module subsub.
However, the VSCode simply tells me that it cannot find any f function.

What is the possible reason and how to solve it?

1 Like