Skip to content

Commit 2213bea

Browse files
committed
Replace apply context command with distinct save and restore context selection commands
- 'apply context command' should be split into two separate commands (separate saving/loading logic, files, etc.): 'Save context selection' and 'Restore context selection'. Place on top of the 'more actions' submenu. - place `apps/editor/src/commands/restore-context-selection-command` and `apps/editor/src/commands/save-context-selection-command` in `apps/editor/src/commands/context-restoration/restore` `apps/editor/src/commands/context-restoration/save` - move files in `apps/editor/src/commands/shared/context-selection` to `apps/editor/src/commands/context-restoration/utils` - multi-param functions should accept 'params' variable that's not destructured in the body - change quick pick titles: the one showing 'Workspace state'/'json file' should be titled 'Context Sources', the one listing saved contexts should be titled 'Saved Entries' - in 'save context', instead of 'overwrite existing context' show the same detailed descriptions as in 'restore context' - there redundancy in how we compute item descriptions
1 parent bd981bc commit 2213bea

50 files changed

Lines changed: 1654 additions & 1598 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎apps/editor/package.json‎

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,16 @@
133133
"icon": "$(github-alt)"
134134
},
135135
{
136-
"command": "codeWebChat.applyContext",
137-
"title": "%codeWebChat.applyContext.title%",
136+
"command": "codeWebChat.saveContextSelection",
137+
"title": "%codeWebChat.saveContextSelection.title%",
138138
"category": "Code Web Chat",
139-
"icon": "$(checklist)"
139+
"icon": "$(save)"
140+
},
141+
{
142+
"command": "codeWebChat.restoreContextSelection",
143+
"title": "%codeWebChat.restoreContextSelection.title%",
144+
"category": "Code Web Chat",
145+
"icon": "$(history)"
140146
},
141147
{
142148
"command": "codeWebChat.checkAll",
@@ -590,11 +596,6 @@
590596
"when": "view == codeWebChatViewWorkspace",
591597
"group": "navigation@4"
592598
},
593-
{
594-
"command": "codeWebChat.applyContext",
595-
"when": "view == codeWebChatViewWorkspace",
596-
"group": "navigation@5"
597-
},
598599
{
599600
"command": "codeWebChat.duplicateWorkspace",
600601
"when": "view == codeWebChatViewWorkspace",
@@ -616,15 +617,25 @@
616617
"group": "navigation@9"
617618
},
618619
{
619-
"command": "codeWebChat.checkUnstagedFiles",
620+
"command": "codeWebChat.saveContextSelection",
620621
"when": "view == codeWebChatViewWorkspace",
621622
"group": "1_more@1"
622623
},
623624
{
624-
"command": "codeWebChat.checkCommitFiles",
625+
"command": "codeWebChat.restoreContextSelection",
625626
"when": "view == codeWebChatViewWorkspace",
626627
"group": "1_more@2"
627628
},
629+
{
630+
"command": "codeWebChat.checkUnstagedFiles",
631+
"when": "view == codeWebChatViewWorkspace",
632+
"group": "1_more@4"
633+
},
634+
{
635+
"command": "codeWebChat.checkCommitFiles",
636+
"when": "view == codeWebChatViewWorkspace",
637+
"group": "1_more@5"
638+
},
628639
{
629640
"command": "codeWebChat.checkAllOpenEditors",
630641
"when": "view == codeWebChatViewOpenEditors",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Приложи контекст",
2+
"codeWebChat.saveContextSelection.title": "Запази избора на контекст",
3+
"codeWebChat.restoreContextSelection.title": "Възстанови избора на контекст",
34
"codeWebChat.applyChatResponse.title": "Приложи отговор от чата",
45
"codeWebChat.copyContext.title": "Копирай контекста",
56
"codeWebChat.checkpoints.title": "Контролни точки",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Použít kontext",
2+
"codeWebChat.saveContextSelection.title": "Uložit výběr kontextu",
3+
"codeWebChat.restoreContextSelection.title": "Obnovit výběr kontextu",
34
"codeWebChat.applyChatResponse.title": "Použít odpověď chatu",
45
"codeWebChat.copyContext.title": "Kopírovat kontext",
56
"codeWebChat.checkpoints.title": "Kontrolní body",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Kontext anwenden",
2+
"codeWebChat.saveContextSelection.title": "Kontextauswahl speichern",
3+
"codeWebChat.restoreContextSelection.title": "Kontextauswahl wiederherstellen",
34
"codeWebChat.applyChatResponse.title": "Chat-Antwort anwenden",
45
"codeWebChat.copyContext.title": "Kontext kopieren",
56
"codeWebChat.checkpoints.title": "Checkpoints",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Aplicar contexto",
2+
"codeWebChat.saveContextSelection.title": "Guardar selección de contexto",
3+
"codeWebChat.restoreContextSelection.title": "Restaurar selección de contexto",
34
"codeWebChat.applyChatResponse.title": "Aplicar respuesta del chat",
45
"codeWebChat.copyContext.title": "Copiar contexto",
56
"codeWebChat.checkpoints.title": "Puntos de control",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Appliquer le contexte",
2+
"codeWebChat.saveContextSelection.title": "Enregistrer la sélection de contexte",
3+
"codeWebChat.restoreContextSelection.title": "Restaurer la sélection de contexte",
34
"codeWebChat.applyChatResponse.title": "Appliquer la réponse du chat",
45
"codeWebChat.copyContext.title": "Copier le contexte",
56
"codeWebChat.checkpoints.title": "Points de contrôle",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Kontextus alkalmazása",
2+
"codeWebChat.saveContextSelection.title": "Kontextus választás mentése",
3+
"codeWebChat.restoreContextSelection.title": "Kontextus választás visszaállítása",
34
"codeWebChat.applyChatResponse.title": "Csevegési válasz alkalmazása",
45
"codeWebChat.copyContext.title": "Kontextus másolása",
56
"codeWebChat.checkpoints.title": "Ellenőrzőpontok",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Applica contesto",
2+
"codeWebChat.saveContextSelection.title": "Salva selezione contesto",
3+
"codeWebChat.restoreContextSelection.title": "Ripristina selezione contesto",
34
"codeWebChat.applyChatResponse.title": "Applica risposta chat",
45
"codeWebChat.copyContext.title": "Copia contesto",
56
"codeWebChat.checkpoints.title": "Punti di controllo",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "コンテキストを適用",
2+
"codeWebChat.saveContextSelection.title": "コンテキスト選択を保存",
3+
"codeWebChat.restoreContextSelection.title": "コンテキスト選択を復元",
34
"codeWebChat.applyChatResponse.title": "チャットの応答を適用",
45
"codeWebChat.copyContext.title": "コンテキストをコピー",
56
"codeWebChat.checkpoints.title": "チェックポイント",

‎apps/editor/package.nls.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"codeWebChat.applyContext.title": "Apply Context",
2+
"codeWebChat.saveContextSelection.title": "Save Context Selection",
3+
"codeWebChat.restoreContextSelection.title": "Restore Context Selection",
34
"codeWebChat.applyChatResponse.title": "Apply Chat Response",
45
"codeWebChat.copyContext.title": "Copy context",
56
"codeWebChat.checkpoints.title": "Checkpoints",

0 commit comments

Comments
 (0)