diff --git a/src/extensions/extension-discovery.ts b/src/extensions/extension-discovery.ts index d0bfbc4c16..52a4f73d05 100644 --- a/src/extensions/extension-discovery.ts +++ b/src/extensions/extension-discovery.ts @@ -156,6 +156,7 @@ export class ExtensionDiscovery { } handleWatchFileAdd = async (filePath: string) => { + logger.info(`${logModule} handleWatchFileAdd ${filePath}`); // e.g. "foo/package.json" const relativePath = path.relative(this.localFolderPath, filePath); @@ -164,6 +165,8 @@ export class ExtensionDiscovery { // This safeguards against a file watch being triggered under a sub-directory which is not an extension. const isUnderLocalFolderPath = relativePath.split(path.sep).length === 2; + logger.info(`${logModule} relativePath ${relativePath} isUnderLocalFolderPath ${isUnderLocalFolderPath}`); + if (path.basename(filePath) === manifestFilename && isUnderLocalFolderPath) { try { const absPath = path.dirname(filePath);