For which packages does VSCode autocomplete work?

Let’s say I’m developing a package called MyPackage and I have activated its Project.toml. It has one dependency called MyDependency, and one test depency called MyTestDependency.

After some exploration, it seems that IntelliSense…

  • works for MyDependency if either one of the following conditions is satisfied
    1. there is a using MyDependency statement at the top of my file
    2. my file is in src/ and included in the module MyPackage (which also contains the using MyDependency statement)
  • never works for MyTestDependency
  • never works for MyPackage

Did I get that right?

4 Likes