feat: display description of prompt as placeholder text when user types /{prompt} in chat input#271187
Merged
bryanchen-d merged 10 commits intomainfrom Oct 21, 2025
Merged
feat: display description of prompt as placeholder text when user types /{prompt} in chat input#271187bryanchen-d merged 10 commits intomainfrom
/{prompt} in chat input#271187bryanchen-d merged 10 commits intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds functionality to display prompt descriptions as placeholder text when users type /prompt commands in the chat input. The feature enhances user experience by providing contextual help about what each prompt does directly in the input field.
Key Changes
- Added prompt description resolution and caching system
- Implemented placeholder text display for prompt slash commands
- Added event listener to refresh cached descriptions when prompts change
src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.ts
Outdated
Show resolved
Hide resolved
aeschli
requested changes
Oct 15, 2025
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.ts
Show resolved
Hide resolved
…esCache in IPromptsService
c782e82 to
384684e
Compare
aeschli
requested changes
Oct 21, 2025
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts
Show resolved
Hide resolved
aeschli
reviewed
Oct 21, 2025
src/vs/workbench/contrib/chat/test/common/promptSyntax/service/promptsService.test.ts
Outdated
Show resolved
Hide resolved
src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.ts
Show resolved
Hide resolved
aeschli
approved these changes
Oct 21, 2025
This was referenced Oct 22, 2025
Closed
This was referenced Oct 29, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
display description of prompt as placeholder text when user types
/{prompt}in chat inputFixes: #269237