Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat: Fix settings menu not opening on click #2346

Merged
merged 2 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ This is a log of all notable changes to Cody for VS Code. [Unreleased] changes a
- Fixes an issue where the wrong rate limit count was shown. [pull/2312](https://github.com/sourcegraph/cody/pull/2312)
- Chat: Fix icon rendering on the null state. [pull/2336](https://github.com/sourcegraph/cody/pull/2336)
- Chat: Reopened chat panels now use the correct chat title. [pull/2345](https://github.com/sourcegraph/cody/pull/2345)
- Chat: Fixed an issue where the command settings menu would not open when clicked. [pull/2346](https://github.com/sourcegraph/cody/pull/2346)

### Changed

Expand Down
6 changes: 6 additions & 0 deletions vscode/src/chat/chat-view/SimpleChatPanelProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,18 @@ export class SimpleChatPanelProvider implements vscode.Disposable, IChatPanelPro
const args = { requestID }
telemetryService.log('CodyVSCodeExtension:chatPredictions:used', args, { hasV2Event: true })
}

// If this is a slash command, run it with custom prompt recipe instead
if (text.startsWith('/')) {
if (text.match(/^\/r(eset)?$/)) {
await this.clearAndRestartSession()
return
}
if (text === '/commands-settings') {
// User has clicked the settings button for commands
await vscode.commands.executeCommand('cody.settings.commands')
return
}
return this.executeRecipe('custom-prompt', text.trim(), 'chat', userContextFiles, addEnhancedContext)
}

Expand Down
Loading