In both cases, you are opening files stored on the Linux computers on campus, not files stored locally on your own computer.
The code terminal command works from within the virtual desktop, and also works from within VS Code when you are connected to the campus Linux computers by SSH.