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;
		}

		try {
			this._keytarCache = await import('keytar');
			// Try using keytar to see if it throws or not.
			await this._keytarCache.findCredentials('test-keytar-loads');
		} catch (e) {
			this.windowsMainService.sendToFocused('vscode:showCredentialsError', e.message ?? e);
			throw e;
		}
		return this._keytarCache;
	}