Keep active-file path warnings readable

This commit is contained in:
vorotamoroz
2026-09-04 16:21:05 +00:00
parent b90ef3716c
commit c84383a44b
6 changed files with 22 additions and 9 deletions
-4
View File
@@ -299,13 +299,9 @@ export class ModuleLog extends AbstractObsidianModule {
}
const oversizedPathComponents = findPathComponentsExceedingUtf8Limit(thisFile.path);
if (oversizedPathComponents.length > 0) {
const components = oversizedPathComponents
.map(({ component, utf8Bytes }) => `${component} (${utf8Bytes} bytes)`)
.join(", ");
reasonWarn.push(
$msg("moduleLog.pathComponentTooLong", {
maxBytes: `${ANDROID_LINUX_PATH_COMPONENT_UTF8_WARNING_BOUNDARY}`,
components,
})
);
}