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

fix: add enablement for inline chat in context menu #1209

Merged
merged 2 commits into from
Sep 27, 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 @@ -17,6 +17,7 @@ Starting from `0.2.0`, Cody is using `major.EVEN_NUMBER.patch` for release versi
### Fixed

- Removed invalid variable from logs that stopped rate-limit errors from displaying properly. [pull/1205](https://github.com/sourcegraph/cody/pull/1205)
- Disable `Ask Cody Inline` in Cody Context Menu when `cody.InlineChat.enabled` is set to false. [pull/1209](https://github.com/sourcegraph/cody/pull/1209)

### Changed

Expand Down
5 changes: 3 additions & 2 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
"title": "Ask Cody Inline",
"category": "Cody Inline Chat",
"when": "cody.activated && config.cody.inlineChat.enabled",
"enablement": "editorFocus"
"enablement": "editorFocus && config.cody.inlineChat.enabled"
},
{
"command": "cody.guardrails.debug",
Expand Down Expand Up @@ -474,7 +474,8 @@
"command": "cody.inline.new",
"key": "ctrl+shift+c",
"mac": "cmd+shift+c",
"when": "cody.activated && editorFocus && config.cody.inlineChat.enabled"
"when": "cody.activated && editorFocus && config.cody.inlineChat.enabled",
"enablement": "config.cody.inlineChat.enabled"
},
{
"command": "cody.action.commands.menu",
Expand Down