Windows10+WSL2+Ubuntu20.02上で急にVisualStudioCodeが動かなくなったときはPATHをもう一度通してからWSL2を再起動する

Rubyを触ろうとして、いつものように、
WSL2のUbuntu20.02を起動sudo apt update
sudo apt upgrade
cd ruby-book
code .
した ...
VisualStudioCode上のJavascriptコードをprettierで自動整形

CodeSandboxを使っていると、保存時に、自動的に整形してくれて、びっくり。
たまに微妙なときもあるが、かなり便利!