Skip to content

Commit d3183a6

Browse files
authored
Use argument-hint for prompt placeholders (microsoft#273011)
1 parent 8a5d22d commit d3183a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ class InputEditorDecorations extends Disposable {
146146
if (this.configurationService.getValue<boolean>('chat.emptyChatState.enabled')) {
147147
placeholder = localize('chatPlaceholderHint', "Add context (#), extensions (@), commands (/)");
148148
} else {
149-
placeholder = mode.description.get() ?? '';
149+
placeholder = mode.argumentHint?.get() ?? mode.description.get() ?? '';
150150
}
151151

152152
const decoration: IDecorationOptions[] = [
@@ -252,7 +252,7 @@ class InputEditorDecorations extends Disposable {
252252
// Resolve the prompt file (this will use cache if available)
253253
const promptFile = this.promptsService.resolvePromptSlashCommandFromCache(slashPromptPart.slashPromptCommand.command);
254254

255-
const description = promptFile?.header?.description;
255+
const description = promptFile?.header?.argumentHint ?? promptFile?.header?.description;
256256
if (description) {
257257
placeholderDecoration = [{
258258
range: getRangeForPlaceholder(slashPromptPart),

0 commit comments

Comments
 (0)