Error "Julia package not part of current environment"

When I start VS Code (with Julia 1.5 and extension
julia-vscode 0.17.2 and some olders too) I get this error:

You opened a julia package that is not part of your current environment. Do you want to activate a different environment?
Source: Julia Insider (Extension).

How can I solve this problem?


I have the same problem

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.