From 01fea9a3690f163847dedcb5979babce66fb6e2f Mon Sep 17 00:00:00 2001 From: Josh Spicer <23246594+joshspicer@users.noreply.github.com> Date: Wed, 4 Mar 2026 15:33:42 -0800 Subject: [PATCH] Enhance slash command expansion to include prompt type in message (#299305) * Enhance slash command expansion to include prompt type in message * Update src/vs/sessions/contrib/chat/browser/slashCommands.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/vs/sessions/contrib/chat/browser/slashCommands.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vs/sessions/contrib/chat/browser/slashCommands.ts b/src/vs/sessions/contrib/chat/browser/slashCommands.ts index bda010579a6..4cf481f915e 100644 --- a/src/vs/sessions/contrib/chat/browser/slashCommands.ts +++ b/src/vs/sessions/contrib/chat/browser/slashCommands.ts @@ -23,6 +23,7 @@ import { chatSlashCommandBackground, chatSlashCommandForeground } from '../../.. import { AICustomizationManagementCommands, AICustomizationManagementSection } from '../../../../workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js'; import { IAICustomizationWorkspaceService } from '../../../../workbench/contrib/chat/common/aiCustomizationWorkspaceService.js'; import { IChatPromptSlashCommand, IPromptsService } from '../../../../workbench/contrib/chat/common/promptSyntax/service/promptsService.js'; +import { PromptsType } from '../../../../workbench/contrib/chat/common/promptSyntax/promptTypes.js'; /** * Static command ID used by completion items to trigger immediate slash command execution, @@ -128,7 +129,8 @@ export class SlashCommandHandler extends Disposable { const args = match[2]?.trim() ?? ''; const uri = promptCommand.promptPath.uri; - const expanded = `Use the prompt file located at [${promptCommand.name}](${uri.toString()}).`; + const typeLabel = promptCommand.promptPath.type === PromptsType.skill ? 'skill' : 'prompt file'; + const expanded = `Use the ${typeLabel} located at [${promptCommand.name}](${uri.toString()}).`; return args ? `${expanded} ${args}` : expanded; }