diff --git a/packages/zowe-explorer/src/shared/init.ts b/packages/zowe-explorer/src/shared/init.ts index 12ba91952b..4a71f2b40d 100644 --- a/packages/zowe-explorer/src/shared/init.ts +++ b/packages/zowe-explorer/src/shared/init.ts @@ -225,6 +225,8 @@ export function registerCommonCommands(context: vscode.ExtensionContext, provide return globals.FILE_SELECTED_TO_COMPARE; }) ); + // initialize the globals.filesToCompare array during initialization + globals.resetCompareChoices(); } }