mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Fix logic for result (#1113)
* commented subscription caching * added additional code path if user.UniqueId not set * fixed failing unit tests * updated logic
This commit is contained in:
@@ -225,7 +225,7 @@ namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl
|
||||
if (user.UniqueId != "") {
|
||||
result = _subscriptionCache.Get(user.UniqueId);
|
||||
}
|
||||
if (result == null) {
|
||||
if (result == Enumerable.Empty<IAzureUserAccountSubscriptionContext>() ^ result == null) {
|
||||
result = await GetSubscriptionFromServiceAsync(user);
|
||||
_subscriptionCache.UpdateCache(user.UniqueId, result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user