From 2775e390fc25f74309010b8a54a7086fcfaa0faf Mon Sep 17 00:00:00 2001 From: Giuseppe D'Andrea Date: Sun, 12 Feb 2023 12:01:44 +0100 Subject: [PATCH] docs: vscode file history --- docs/privacy-and-security.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/docs/privacy-and-security.md b/docs/privacy-and-security.md index c767c5e0..66d1196b 100644 --- a/docs/privacy-and-security.md +++ b/docs/privacy-and-security.md @@ -73,6 +73,25 @@ Some editors keep usage history stored on disk for future use. This can be a security risk in the sense that sensitive information can leak via recent search patterns or editor commands. +### Visual Studio Code + +Visual Studio Code has a built-in local file history. When enabled, the file +contents of an editor that is saved will be stored to a history location to be +able to restore or review the contents later. + +This leaky feature can be disabled for all files (including those for which +you might need the history) by unchecking the `workbench.localHistory.enabled` +setting in the [Settings editor](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor). + +Alternatively, you can configure a [pattern](https://code.visualstudio.com/docs/editor/codebasics#_advanced-search-options) in the `workbench.localHistory.exclude` +setting for excluding only specific files from local file history. For excluding +unencrypted temporary file generated by `jrnl`, you can set the `**/jrnl*.jrnl` +pattern for the `workbench.localHistory.exclude` setting in the [Settings editor](https://code.visualstudio.com/docs/getstarted/settings#_settings-editor). + +!!! note + On Windows, the history location is typically found at + `%APPDATA%\Code\User\History`. + ### Vim Vim stores progress data in a so called Viminfo file located at `~/.viminfo` @@ -178,7 +197,6 @@ In Windows, the keychain is the Windows Credential Manager (WCM), which can't be and can be accessed by any other application running under your username. If this is a concern for you, you may not want to store your password. - ## Notice any other risks? Please let the maintainers know by [filing an issue on GitHub](https://github.com/jrnl-org/jrnl/issues).