Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/src/scripts/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,9 @@ export function getResourceType(filePath: string): string {
if (filePath.endsWith(".agent.md")) return "agent";
if (filePath.endsWith(".prompt.md")) return "prompt";
if (filePath.endsWith(".instructions.md")) return "instruction";
if (filePath.includes("/skills/") && filePath.endsWith("SKILL.md"))
if (/(^|\/)skills\//.test(filePath) && filePath.endsWith("SKILL.md"))
return "skill";
Comment on lines 229 to 233
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getResourceType() returns "instruction" for .instructions.md, but the VS Code install config (VSCODE_INSTALL_CONFIG) is keyed by "instructions". In openFileModal(), getVSCodeInstallUrl(type, ...) will therefore return null for instruction files, hiding the install dropdown in the modal for instructions opened from the list or via deep link. Consider normalizing the type names (e.g., use "instructions" everywhere) or adding an alias mapping in getVSCodeInstallUrl so both "instruction" and "instructions" resolve to the same config entry.

Copilot uses AI. Check for mistakes.
if (filePath.includes("/hooks/") && filePath.endsWith("README.md"))
if (/(^|\/)hooks\//.test(filePath) && filePath.endsWith("README.md"))
return "hook";
if (filePath.endsWith(".collection.yml")) return "collection";
return "unknown";
Expand Down
Loading