src/vs/workbench/api/browser/mainThreadSecretState.ts/MainThreadSecretState/$getPassword
class MainThreadSecretState:	async $getPassword(extensionId: string, key: string): Promise<string | undefined> {
		const fullKey = await this.getFullKey(extensionId);
		const password = await this.credentialsService.getPassword(fullKey, key);
		const decrypted = password && await this.encryptionService.decrypt(password);

		if (decrypted) {
			try {
				const value = JSON.parse(decrypted);
				if (value.extensionId === extensionId) {
					return value.content;
				}
			} catch (_) {
				throw new Error('Cannot get password');
			}
		}

		return undefined;
	}