Skip to content

Commit 70a4e12

Browse files
Better words for encryption errors (microsoft#186131)
Based on @deepak1556's feedback
1 parent 7f9a404 commit 70a4e12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/vs/platform/secrets/electron-sandbox/secretStorageService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class NativeSecretStorageService extends BaseSecretStorageService {
5353
};
5454
buttons.push(troubleshootingButton);
5555

56-
let errorMessage = localize('encryptionNotAvailableJustTroubleshootingGuide', "Secrets are not being stored on disk because encryption is not available in this environment.");
56+
let errorMessage = localize('encryptionNotAvailableJustTroubleshootingGuide', "An OS keyring couldn't be identified for storing the encryption related data in your current desktop environment.");
5757

5858
if (!isLinux) {
5959
this._notificationService.prompt(Severity.Error, errorMessage, buttons);
@@ -66,9 +66,9 @@ export class NativeSecretStorageService extends BaseSecretStorageService {
6666
} else if (isKwallet(provider)) {
6767
errorMessage = localize('isKwallet', "You're running in a KDE environment but encryption is not available. Ensure you have kwallet running.");
6868
} else if (provider === KnownStorageProvider.basicText) {
69-
errorMessage += ' ' + localize('usePlainTextExtraSentence', "Open the troubleshooting guide or you can use plain text obfuscation instead.");
69+
errorMessage += ' ' + localize('usePlainTextExtraSentence', "Open the troubleshooting guide to address this or you can use weaker encryption that doesn't use the OS keyring.");
7070
const usePlainTextButton: IPromptChoice = {
71-
label: localize('usePlainText', "Use plain text (restart required)"),
71+
label: localize('usePlainText', "Use weaker encryption (restart required)"),
7272
run: async () => {
7373
this._encryptionService.setUsePlainTextEncryption();
7474
await this._nativeHostService.relaunch();

0 commit comments

Comments
 (0)