VSCode in notebook doesn't print if has error

This is a bug and will be fixed in the next release.

The current workaround is to add a flush(stdout) after your print statements.

Also, please open issues for things like these – if you have to ask yourself whether something is an issue, then it most likely is one (be it an actual bug or bad UX or bad documentation).