That is a very recent addition. The exact behavior they are describing was in VS Code for almost a decade.
Trusted locations were added to VSCode in 2021.
https://code.visualstudio.com/updates/v1_57
And VS Code was released in 2015.