diff --git a/vscode-extension/src/search-provider.ts b/vscode-extension/src/search-provider.ts index 6de648c..e3c6e9a 100644 --- a/vscode-extension/src/search-provider.ts +++ b/vscode-extension/src/search-provider.ts @@ -1678,22 +1678,28 @@ export class SearchProvider { const shortcut = cmd.keyboardShortcut ? ` • ${cmd.keyboardShortcut}` : ''; // Palette: Use dynamic description with shortcut for better discoverability - const detail = `${cmd.description}${shortcut}`; - // Palette: Use "Name (/cmd)" format for label - const label = `${this.getWelcomeLabel(cmd)} (${cmd.name})`; + const explanation = `${cmd.description}${shortcut}`; + // Palette: Clean label without command + const label = this.getWelcomeLabel(cmd); + // Create base item const item = this.resultToQuickPickItem({ item: { id: `slash-cmd:${cmd.id}`, name: label, type: SearchItemType.COMMAND, filePath: '', - detail: detail, + detail: '', // Keep empty so resultToQuickPickItem doesn't mess with it }, score: 1, scope: cmd.scope, }); + // Palette: Move primary interaction trigger to description, explanation to detail + item.label = label; + item.description = cmd.name; + item.detail = explanation; + item.iconPath = new vscode.ThemeIcon(cmd.icon, new vscode.ThemeColor('textLink.foreground')); item.alwaysShow = true; items.push(item);