mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add logging for Windows test debugging purposes.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com>
This commit is contained in:
parent
5449765548
commit
9bb72c4fa2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user