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
14 changes: 10 additions & 4 deletions vscode-extension/src/search-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down