When I import a name via using
the autocomplete doesn’t work while it does work when I import
the same name.
Example:
after
using Pkg: activate
activate
is not completed upon pressing of the tab key.
after
import Pkg: activate
it is completed.
I find this strange as using Pkg
makes autocomplete work on all exported names of Pkg, although their not imported but only used
.
If I don’t want to import the names, a workaround would be
const activate = Pkg.activate
but then I cannot decide late to import it.
Is there some reason behind this behaviour?