src/vs/workbench/services/encryption/browser/encryptionService.ts/EncryptionService/constructor
class EncryptionService:	constructor(
		@IRemoteAgentService remoteAgentService: IRemoteAgentService,
		@IBrowserWorkbenchEnvironmentService environmentService: IBrowserWorkbenchEnvironmentService,
		@ILogService logService: ILogService
	) {
		// This allows the remote side to handle any encryption requests
		if (environmentService.remoteAuthority && !environmentService.options?.credentialsProvider) {
			logService.trace('EncryptionService#constructor - Detected remote environment, registering proxy for encryption instead');
			return ProxyChannel.toService<IEncryptionService>(remoteAgentService.getConnection()!.getChannel('encryption'));
		}
	}