vscode-gnupg-tool icon indicating copy to clipboard operation
vscode-gnupg-tool copied to clipboard

Feature Request: Add option to decrypt entire file contents

Open armnrd opened this issue 2 years ago • 1 comments

It would be useful to have the extension decrypt the entire contents of a file in the editor. At the moment, when I choose the command "GnuPG: Decrpt File", nothing happens.

This is the behaviour I am looking for:

  1. I open an encrypted file Document.md.asc in VSCode.
  2. When I run a command "GnuPG: Decrypt Contents" (e.g.), the contents of the file are decrypted in the editor.

At the moment, I achieve this behaviour by selecting all the encrypted text and choose "GnuPG: Decrypt Selection".

armnrd avatar Jan 19 '23 21:01 armnrd

"nothing happens":

  • I think this is because the session keeps the password. When you decrypt the file after you encrypted it, the gpg session does not require the password again.
  • Please use the End Session command and try again.

heilingbrunner avatar Jun 04 '23 19:06 heilingbrunner