mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-07-06 09:51:29 +02:00
#348 - breadcrumb fix
This commit is contained in:
@@ -38,14 +38,18 @@ export const Breadcrumb: React.FunctionComponent<IBreadcrumbProps> = (props: Rea
|
||||
}
|
||||
}
|
||||
|
||||
let valid = false;
|
||||
for (let i = 0; i < contentFolders.length; i++) {
|
||||
const folder = contentFolders[i];
|
||||
const contentFolder = parseWinPath(folder.path) as string;
|
||||
const relContentPath = folderPath.replace(contentFolder, '');
|
||||
return relContentPath.length > 1 && folderPath.startsWith(contentFolder);
|
||||
|
||||
if (!valid) {
|
||||
valid = relContentPath.length > 1 && folderPath.startsWith(contentFolder);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
return valid;
|
||||
};
|
||||
|
||||
if (!selectedFolder) {
|
||||
|
||||
Reference in New Issue
Block a user