From 3750e3809a913f828feb8af93beacabf11632735 Mon Sep 17 00:00:00 2001 From: Andrew Twydell Date: Wed, 18 Dec 2024 15:05:19 +0000 Subject: [PATCH] regionsArray is list of any, not list with single item of any Signed-off-by: Andrew Twydell --- packages/vsce/src/trees/CICSRegionsContainer.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/vsce/src/trees/CICSRegionsContainer.ts b/packages/vsce/src/trees/CICSRegionsContainer.ts index 933f1539..d4efe983 100644 --- a/packages/vsce/src/trees/CICSRegionsContainer.ts +++ b/packages/vsce/src/trees/CICSRegionsContainer.ts @@ -89,11 +89,12 @@ export class CICSRegionsContainer extends TreeItem { * Count the number of total and active regions * @param regionsArray */ - private addRegionsUtility(regionsArray: [any]) { + private addRegionsUtility(regionsArray: any[]) { let activeCount = 0; let totalCount = 0; const parentPlex = this.getParent(); - const regionFilterRegex = this.activeFilter ? new RegExp(this.patternIntoRegex(this.activeFilter)) : ""; //parentPlex.getActiveFilter() ? RegExp(parentPlex.getActiveFilter()!) : undefined; + //parentPlex.getActiveFilter() ? RegExp(parentPlex.getActiveFilter()!) : undefined; + const regionFilterRegex = this.activeFilter ? new RegExp(this.patternIntoRegex(this.activeFilter)) : ""; for (const region of regionsArray) { // If region filter exists then match it if (!regionFilterRegex || region.cicsname.match(regionFilterRegex)) {