diff --git a/src/menu.ts b/src/menu.ts index 4b224fc..e849e6c 100644 --- a/src/menu.ts +++ b/src/menu.ts @@ -110,7 +110,11 @@ function isAbsoluteGitIgnoreRuleAboveRoot({ }: { absoluteGitIgnoreRule: string; }): boolean { - return absoluteGitIgnoreRule.startsWith('/../'); + return ( + absoluteGitIgnoreRule.startsWith('/../') || + // Case when path is the root folder itself + absoluteGitIgnoreRule.startsWith('//') + ); } export function addExcludeMenuItem({