Skip to content

Commit cf66fc7

Browse files
committed
fix: map QuickPick IDE labels to PlatformId for readInstalledSkillDirNames
1 parent 618b674 commit cf66fc7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/commands/configureAiTools.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,15 @@ function registerConfigureAiTools(context: vscode.ExtensionContext): void {
104104
});
105105
if (!ideTarget) { return; }
106106

107-
const installedDirNames = await readInstalledSkillDirNames(rootUri, ideTarget.label as any, skills);
107+
const platformForStatus: Record<string, import("../aiToolsService").PlatformId | undefined> = {
108+
"Claude Code": "claude-code",
109+
"Cursor": "universal", // Cursor's new canonical path is .agents/skills/
110+
"VS Code (Copilot)": "vscode-copilot",
111+
};
112+
const pid = platformForStatus[ideTarget.label];
113+
const installedDirNames = pid
114+
? await readInstalledSkillDirNames(rootUri, pid, skills)
115+
: new Set<string>();
108116

109117
const pickedSkills = await vscode.window.showQuickPick(
110118
skills.map((s) => ({

0 commit comments

Comments
 (0)