Go to definition almost never works

This seems to be coming up more often (i.e. Go To Definition (F12) does not work for functions in an included file). I had a workflow that used to work okay (required a few Julia language server restarts every so often) but recently it doesn’t work and I can’t access intellisense (and hence go to definition) in most of my own files.

General advice that may or may not help:

  • Open the project as a folder in VS code, instead of individual files.
  • Create an environment for your project and activate that in VS code
  • If you are using modules, adopt a standard package structure - e.g. using PkgTemplates.jl.