I am using the command line tool ansible-vault and try to edit an encrypted file.
EDITOR=code ansible-vault edit test.txt
It is expected that code opens with the decrypted content in the editor. After saving ansible-vault should decrypt the (changed) buffer. Works much like editing a git commit message.
However, the buffer is empty. And changing/saving doesn't do much to the file.
I also tried it with vim and subl, which both worked as expected. What do I have to do to use visual-studio-code for the task?