@microsoft/vscode-azext-azureauth 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.1 - 2025-02-03
|
|
4
|
+
|
|
5
|
+
* Fix `VSCodeAzureSubscriptionProvider` implementation of `getSubscriptions` filtering returned subscriptions by `getSubscriptionFilters()` when the `filter` parameter is a `GetSubscriptionsFilter` object.
|
|
6
|
+
|
|
3
7
|
## 4.1.0 - 2025-01-31
|
|
4
8
|
|
|
5
9
|
* Add filtering `getSubscriptions` by a specific account and/or tenant.
|
|
@@ -193,7 +193,7 @@ class VSCodeAzureSubscriptionProvider extends vscode.Disposable {
|
|
|
193
193
|
(_b = this.logger) === null || _b === void 0 ? void 0 : _b.debug(`auth: Got ${uniqueSubscriptions.length} subscriptions from ${accountCount} accounts in ${endTime - startTime}ms`);
|
|
194
194
|
const sortSubscriptions = (subscriptions) => subscriptions.sort((a, b) => a.name.localeCompare(b.name));
|
|
195
195
|
const subscriptionIds = yield this.getSubscriptionFilters();
|
|
196
|
-
if (filter && !!subscriptionIds.length) { // If the list is empty it is treated as "no filter"
|
|
196
|
+
if (filter === true && !!subscriptionIds.length) { // If the list is empty it is treated as "no filter"
|
|
197
197
|
return sortSubscriptions(uniqueSubscriptions.filter(sub => subscriptionIds.includes(sub.subscriptionId)));
|
|
198
198
|
}
|
|
199
199
|
return sortSubscriptions(uniqueSubscriptions);
|