Skip to content

Commit

Permalink
Add a settings button to Cody pane header (#701)
Browse files Browse the repository at this point in the history
There's lots of goodies hidden away in our settings menu that you can
only access via the statusbar. This adds a settings icon to the main
title bar to help people discover these more easily. You can also now
access it via the VS Code command palette.


![image](https://github.com/sourcegraph/cody/assets/153/b345c60a-6fa5-4b06-85ad-94f749735726)


![image](https://github.com/sourcegraph/cody/assets/153/e8627658-af96-4dbf-8301-6219b2eb5151)

## Test plan

- Opened Cody
- Clicked the button
  • Loading branch information
toolmantim committed Aug 16, 2023
1 parent 5895b8e commit 5ce1df8
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Starting from `0.2.0`, Cody is using `major.EVEN_NUMBER.patch` for release versi

- Cody Commands: New `/smell` command, an improved version of the old `Find Code Smell` recipe. [pull/602](https://github.com/sourcegraph/cody/pull/602)
- Cody Commands: Display of clickable file path for current selection in chat view after executing a command. [pull/602](https://github.com/sourcegraph/cody/pull/602)
- Add a settings button to Cody pane header. [pull/701](https://github.com/sourcegraph/cody/pull/701)

### Fixed

Expand Down
18 changes: 13 additions & 5 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,14 @@
"group": "Cody",
"icon": "$(history)"
},
{
"command": "cody.status-bar.interacted",
"category": "Cody",
"title": "Cody Settings",
"group": "Cody",
"icon": "$(settings-gear)",
"when": "cody.activated"
},
{
"command": "cody.comment.add",
"title": "Ask Cody",
Expand Down Expand Up @@ -613,6 +621,11 @@
"when": "view == cody.chat && cody.activated",
"group": "navigation@2"
},
{
"command": "cody.status-bar.interacted",
"when": "view == cody.chat && cody.activated",
"group": "navigation@4"
},
{
"command": "cody.feedback",
"when": "view == cody.chat",
Expand All @@ -633,11 +646,6 @@
"when": "view == cody.chat && cody.activated",
"group": "9_cody@0"
},
{
"command": "cody.settings.extension",
"when": "view == cody.chat",
"group": "8_cody@1"
},
{
"command": "cody.fixup.apply-all",
"when": "cody.nonstop.fixups.enabled && view == cody.fixup.tree.view && cody.activated",
Expand Down
6 changes: 3 additions & 3 deletions vscode/src/services/AuthMenus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ export async function showAccessTokenInputBox(endpoint: string): Promise<string
export const AuthMenuOptions = {
signin: {
title: 'Other Sign in Options',
placeholder: 'Select a sign in option',
placeholder: 'Choose a sign in option',
},
signout: {
title: 'Sign Out',
placeHolder: 'Select instance to sign out',
placeHolder: 'Choose instance to sign out',
},
switch: {
title: 'Switch Account',
placeHolder: 'Press Esc to cancel',
placeHolder: 'Choose an account',
},
}

Expand Down
4 changes: 2 additions & 2 deletions vscode/src/services/StatusBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export function createStatusBar(): CodyStatusBar {
...FeedbackOptionItems,
],
{
title: 'Cody Settings Menu',
placeHolder: 'Select an option',
title: 'Cody Settings',
placeHolder: 'Choose an option',
matchOnDescription: true,
}
)
Expand Down

0 comments on commit 5ce1df8

Please sign in to comment.