From 3d4fe7d584337170325a2cfaebd22a8071e5d0e1 Mon Sep 17 00:00:00 2001 From: Chinmay Das <55234150+chinmdas@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:43:23 +0530 Subject: [PATCH] Correcting condition in delete scenario Signed-off-by: Chinmay Das <55234150+chinmdas@users.noreply.github.com> --- packages/vsce/src/commands/deleteSessionCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vsce/src/commands/deleteSessionCommand.ts b/packages/vsce/src/commands/deleteSessionCommand.ts index e4fefe0f..30234912 100644 --- a/packages/vsce/src/commands/deleteSessionCommand.ts +++ b/packages/vsce/src/commands/deleteSessionCommand.ts @@ -25,7 +25,7 @@ export function getDeleteSessionCommand(tree: CICSTree, treeview: TreeView) } try { const configInstance = await ProfileManagement.getConfigInstance(); - if (configInstance.usingTeamConfig) { + if (configInstance.getTeamConfig().exists) { const currentProfile = await ProfileManagement.getProfilesCache().getProfileFromConfig(allSelectedNodes[allSelectedNodes.length - 1].label); if (currentProfile) { const filePath = currentProfile.profLoc.osLoc ? currentProfile.profLoc.osLoc[0] : "";