Skip to content

Commit

Permalink
Chat: Update message input placeholder to mention slash commands (#2142)
Browse files Browse the repository at this point in the history
Now commands are staying in for release, time to update the input
placeholder:

| Before | After |
| - | - |
| <img width="436" alt="Screenshot 2023-12-06 at 8 23 21 pm"
src="https://github.com/sourcegraph/cody/assets/153/90386905-c3bd-4bdc-886e-713743441775">
| <img width="436" alt="Screenshot 2023-12-06 at 8 22 02 pm"
src="https://github.com/sourcegraph/cody/assets/153/08f036db-00c1-4121-bf9c-47400c27e77e">
|

## Test plan

- Opened a chat
- Inspected placeholder
  • Loading branch information
toolmantim committed Dec 6, 2023
1 parent 377bfbb commit 150242a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a
- Commands: Expose commands in the VS Code command palette and clean up the context menu. [pull/1209](https://github.com/sourcegraph/cody/pull/2109)
- Search: Style and UX improvements to the search panel. [pull/2138](https://github.com/sourcegraph/cody/pull/2138)
- Chat: Reduce size of chats list blank copy. [pull/2137](https://github.com/sourcegraph/cody/pull/2137)
- Chat: Update message input placeholder to mention slash commands. [pull/2142](https://github.com/sourcegraph/cody/pull/2142)

## [0.16.3]

Expand Down
2 changes: 1 addition & 1 deletion vscode/webviews/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const TextArea: React.FunctionComponent<ChatUITextAreaProps> = ({
chatModels,
}) => {
const inputRef = useRef<HTMLTextAreaElement>(null)
const placeholder = 'Message (type @ to include files)'
const placeholder = 'Message (@ to include code, / for commands)'

useEffect(() => {
if (autoFocus) {
Expand Down

0 comments on commit 150242a

Please sign in to comment.