Skip to content

Commit ad680f5

Browse files
committed
Rename clear checks command to clear context and add clear context action to prompt attachments when files are selected
- rename 'clear checks' to 'clear context' (with translations) - below the prompt field, we place 'agentic search' - it's good. But it should only appear when the context is empty (no files are selected). Otherwise show option: 'Clear Context'. - while some files are selected, 'agentic serach' should be available to click from prompt field's 'more' dropdown - fix missing props in stories - show 'search sparkle' icon before label - place the icon with label in a single div, set gap to 2px - in dropdown, remove ellipsis truncations (simplifying css) ├── apps │ └── editor │ ├── package.json │ ├── package.nls.bg.json │ ├── package.nls.cs.json │ ├── package.nls.de.json │ ├── package.nls.es.json │ ├── package.nls.fr.json │ ├── package.nls.hu.json │ ├── package.nls.it.json │ ├── package.nls.ja.json │ ├── package.nls.json │ ├── package.nls.ko.json │ ├── package.nls.pl.json │ ├── package.nls.pt-br.json │ ├── package.nls.ru.json │ ├── package.nls.tr.json │ ├── package.nls.zh-cn.json │ ├── package.nls.zh-tw.json │ └── src │ ├── context │ │ └── context-initialization.ts │ ├── features │ │ └── agentic-search │ │ ├── agentic-search.ts │ │ └── index.ts │ └── views │ └── prompt │ ├── backend │ │ ├── message-handlers │ │ │ └── handle-agentic-search.ts │ │ └── prompt-view-provider.ts │ ├── frontend │ │ ├── Main │ │ │ ├── Main.tsx │ │ │ └── MainView │ │ │ ├── MainView.tsx │ │ │ └── components │ │ │ └── PromptAttachments │ │ │ └── PromptAttachments.tsx │ │ ├── Prompt.tsx │ │ ├── hooks │ │ │ ├── use-editor-sync.ts │ │ │ └── use-prompt │ │ │ └── use-prompt.ts │ │ └── i18n │ │ └── translations │ │ ├── prompt-field.ts │ │ └── selected-files.ts │ └── types │ └── messages.ts └── packages └── ui └── src └── components └── editor ├── common │ ├── DropdownMenu │ │ ├── DropdownMenu.module.scss │ │ └── DropdownMenu.tsx │ └── prompts │ └── PromptField │ ├── PromptField.stories.tsx │ ├── PromptField.tsx │ ├── components │ │ └── Footer │ │ └── Footer.tsx │ └── hooks │ └── use-dropdown.ts └── prompt-view └── StatusBar └── StatusBar.tsx
1 parent 5422e68 commit ad680f5

28 files changed

Lines changed: 180 additions & 58 deletions

‎apps/editor/package.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,8 @@
177177
"category": "Code Web Chat"
178178
},
179179
{
180-
"command": "codeWebChat.clearChecks",
181-
"title": "%codeWebChat.clearChecks.title%",
180+
"command": "codeWebChat.clearContext",
181+
"title": "%codeWebChat.clearContext.title%",
182182
"category": "Code Web Chat",
183183
"icon": "$(clear-all)"
184184
},
@@ -479,7 +479,7 @@
479479
"when": "false"
480480
},
481481
{
482-
"command": "codeWebChat.clearChecks",
482+
"command": "codeWebChat.clearContext",
483483
"when": "false"
484484
},
485485
{
@@ -680,7 +680,7 @@
680680
"group": "3_more@2"
681681
},
682682
{
683-
"command": "codeWebChat.clearChecks",
683+
"command": "codeWebChat.clearContext",
684684
"when": "view == codeWebChatViewWorkspace",
685685
"group": "navigation@3"
686686
},

‎apps/editor/package.nls.bg.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Оцени разширението",
1515
"codeWebChat.openRepository.title": "Дай звезда в GitHub",
1616
"codeWebChat.followOnX.title": "Последвай в X",
17-
"codeWebChat.clearChecks.title": "Размаркирай всичко",
17+
"codeWebChat.clearContext.title": "Изчисти контекста",
1818
"codeWebChat.expandContextFolders.title": "Разгъни папките",
1919
"codeWebChat.collapseContextFolders.title": "Свий папките",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Свий папките",

‎apps/editor/package.nls.cs.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Ohodnotit rozšíření",
1515
"codeWebChat.openRepository.title": "Dát hvězdičku na GitHubu",
1616
"codeWebChat.followOnX.title": "Sledujte na X",
17-
"codeWebChat.clearChecks.title": "Zrušit výběr",
17+
"codeWebChat.clearContext.title": "Vymazat kontext",
1818
"codeWebChat.expandContextFolders.title": "Rozbalit složky",
1919
"codeWebChat.collapseContextFolders.title": "Sbalit složky",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Sbalit složky",

‎apps/editor/package.nls.de.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Erweiterung bewerten",
1515
"codeWebChat.openRepository.title": "Auf GitHub mit Stern versehen",
1616
"codeWebChat.followOnX.title": "Auf X folgen",
17-
"codeWebChat.clearChecks.title": "Auswahl aufheben",
17+
"codeWebChat.clearContext.title": "Kontext löschen",
1818
"codeWebChat.expandContextFolders.title": "Ordner erweitern",
1919
"codeWebChat.collapseContextFolders.title": "Ordner reduzieren",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Ordner reduzieren",

‎apps/editor/package.nls.es.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Calificar extensión",
1515
"codeWebChat.openRepository.title": "Dar estrella en GitHub",
1616
"codeWebChat.followOnX.title": "Seguir en X",
17-
"codeWebChat.clearChecks.title": "Desmarcar todo",
17+
"codeWebChat.clearContext.title": "Borrar contexto",
1818
"codeWebChat.expandContextFolders.title": "Expandir carpetas",
1919
"codeWebChat.collapseContextFolders.title": "Contraer carpetas",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Contraer carpetas",

‎apps/editor/package.nls.fr.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Évaluer l'extension",
1515
"codeWebChat.openRepository.title": "Ajouter une étoile sur GitHub",
1616
"codeWebChat.followOnX.title": "Suivre sur X",
17-
"codeWebChat.clearChecks.title": "Tout décocher",
17+
"codeWebChat.clearContext.title": "Effacer le contexte",
1818
"codeWebChat.expandContextFolders.title": "Développer les dossiers",
1919
"codeWebChat.collapseContextFolders.title": "Réduire les dossiers",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Réduire les dossiers",

‎apps/editor/package.nls.hu.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Bővítmény értékelése",
1515
"codeWebChat.openRepository.title": "Csillagozás a GitHubon",
1616
"codeWebChat.followOnX.title": "Követés az X-en",
17-
"codeWebChat.clearChecks.title": "Kijelölések törlése",
17+
"codeWebChat.clearContext.title": "Kontextus törlése",
1818
"codeWebChat.expandContextFolders.title": "Mappák kibontása",
1919
"codeWebChat.collapseContextFolders.title": "Mappák összecsukása",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Mappák összecsukása",

‎apps/editor/package.nls.it.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Valuta l'estensione",
1515
"codeWebChat.openRepository.title": "Aggiungi una stella su GitHub",
1616
"codeWebChat.followOnX.title": "Segui su X",
17-
"codeWebChat.clearChecks.title": "Deseleziona tutto",
17+
"codeWebChat.clearContext.title": "Cancella contesto",
1818
"codeWebChat.expandContextFolders.title": "Espandi cartelle",
1919
"codeWebChat.collapseContextFolders.title": "Comprimi cartelle",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Comprimi cartelle",

‎apps/editor/package.nls.ja.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "拡張機能を評価する",
1515
"codeWebChat.openRepository.title": "GitHubでスターをつける",
1616
"codeWebChat.followOnX.title": "Xでフォロー",
17-
"codeWebChat.clearChecks.title": "選択をクリア",
17+
"codeWebChat.clearContext.title": "コンテキストをクリア",
1818
"codeWebChat.expandContextFolders.title": "フォルダーを展開",
1919
"codeWebChat.collapseContextFolders.title": "フォルダーを折りたたむ",
2020
"codeWebChat.collapseWorkspaceFolders.title": "フォルダーを折りたたむ",

‎apps/editor/package.nls.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"codeWebChat.rateExtension.title": "Rate Extension",
1515
"codeWebChat.openRepository.title": "Star on GitHub",
1616
"codeWebChat.followOnX.title": "Follow on X",
17-
"codeWebChat.clearChecks.title": "Clear Checks",
17+
"codeWebChat.clearContext.title": "Clear Context",
1818
"codeWebChat.expandContextFolders.title": "Expand Folders",
1919
"codeWebChat.collapseContextFolders.title": "Collapse Folders",
2020
"codeWebChat.collapseWorkspaceFolders.title": "Collapse Folders",

0 commit comments

Comments
 (0)