Error "Julia package not part of current environment"

Maybe the problem was related with this one:

And it seems to be solved disabling the terminal.integrated.enablePersistentSessions setting.

Now it doesn’t try to load older sessions and it doesn’t produce that error.