src/vs/platform/credentials/electron-main/credentialsMainService.ts/CredentialsNativeMainService/withKeytar
class CredentialsNativeMainService:	protected async withKeytar(): Promise<KeytarModule> {
		if (this._keytarCache) {
			return this._keytarCache;
		}

		if (this.environmentMainService.disableKeytar) {
			this.logService.info('Keytar is disabled. Using in-memory credential store instead.');
			this._keytarCache = new InMemoryCredentialsProvider();
			return this._keytarCache;
		}

		const keytarCache = await import('keytar');
		// Try using keytar to see if it throws or not.
		await keytarCache.findCredentials('test-keytar-loads');
		this._keytarCache = keytarCache;
		return this._keytarCache;
	}