export EDITOR="code -w" が正しい

意味

  • -w --wait Wait for the files to be closed before returning.

具体的にはgit rebase -iをした時にファイルの中身が作られる前に開いてしまう

Git Visual Studio Code