Julia in VSCode occasionally crashes upon pressing ctrl+C

Recently, I have repeatedly encountered a problem seemingly specific to Julia in VSCode.

Occasionally, I will press ctrl+C just to get a clean REPL line (so not to cancel a running command), and Julia will simply crash. A stacktrace will appear on the screen very briefly, but then unfortunately VSCode closes the window. With a bit of luck, I eventually managed to get perfectly timed screenshots of the error messages that appear:

I’d be interested in any insight on what causes this to happen, and how to prevent this.

I’m not sure exactly what you mean here, but to just visually clear up the current REPL screen, you can press Ctrl+L instead.

I didn’t mean a clear REPL; I just meant a new line to start working on. So the net result should be the same as just holding backspace.