Skip to content

Commit

Permalink
Chat UI: add button for Move to Editor (#5033)
Browse files Browse the repository at this point in the history
  • Loading branch information
abeatrix authored Jul 29, 2024
1 parent 439ca48 commit cb99539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
13 changes: 0 additions & 13 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,6 @@
"enablement": "cody.activated",
"icon": "$(new-comment-icon)"
},
{
"command": "cody.chat.moveToEditor",
"category": "Cody",
"title": "Move Chat to Editor Panel",
"enablement": "cody.activated && cody.chatInSidebar",
"group": "Cody",
"icon": "$(layout-sidebar-left-off)"
},
{
"command": "cody.chat.moveFromEditor",
"category": "Cody",
Expand Down Expand Up @@ -922,11 +914,6 @@
"when": "(cody.chatInSidebar && view != cody.chat && cody.activated) || (!cody.chatInSidebar && view == cody.chat && cody.activated)",
"group": "navigation@3"
},
{
"command": "cody.chat.moveToEditor",
"when": "view == cody.chat && cody.activated",
"group": "navigation@4"
},
{
"command": "cody.welcome",
"when": "view == cody.support.tree.view",
Expand Down
6 changes: 6 additions & 0 deletions vscode/webviews/tabs/TabsBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as Tabs from '@radix-ui/react-tabs'
import clsx from 'clsx'
import {
CircleUserIcon,
ColumnsIcon,
DownloadIcon,
HistoryIcon,
type LucideProps,
Expand Down Expand Up @@ -85,6 +86,11 @@ const BASE_TAB_ITEMS: TabConfig[] = [
Icon: MessageSquarePlusIcon,
command: 'cody.chat.newPanel',
},
{
tooltip: 'Open in Editor',
Icon: ColumnsIcon,
command: 'cody.chat.moveToEditor',
},
],
changesView: true,
},
Expand Down

0 comments on commit cb99539

Please sign in to comment.