mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 08:00:59 +00:00
fix(coding-agent): show folder name for extensions in config selector (#1064)
This commit is contained in:
parent
c5d16fe456
commit
af4cf5f4ef
1 changed files with 10 additions and 2 deletions
|
|
@ -98,8 +98,16 @@ function buildGroups(resolved: ResolvedPaths): ResourceGroup[] {
|
||||||
group.subgroups.push(subgroup);
|
group.subgroups.push(subgroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
const displayName =
|
const fileName = basename(path);
|
||||||
resourceType === "skills" && basename(path) === "SKILL.md" ? basename(dirname(path)) : basename(path);
|
const parentFolder = basename(dirname(path));
|
||||||
|
let displayName: string;
|
||||||
|
if (resourceType === "extensions" && parentFolder !== "extensions") {
|
||||||
|
displayName = `${parentFolder}/${fileName}`;
|
||||||
|
} else if (resourceType === "skills" && fileName === "SKILL.md") {
|
||||||
|
displayName = parentFolder;
|
||||||
|
} else {
|
||||||
|
displayName = fileName;
|
||||||
|
}
|
||||||
subgroup.items.push({
|
subgroup.items.push({
|
||||||
path,
|
path,
|
||||||
enabled,
|
enabled,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue