Skip to content

Commit eb1123c

Browse files
committed
Implement the selectChangedFiles command to allow users to select and manage files modified in a specific git branch relative to the current workspace
- implement 'select changed files of branch...', placed below 'select files of commit...' - don't show branch to compare we're currently at. In such case there should be an appropriate notification and no quick pick shown at all. - the situation where the current branch is the only branch, should be handled in `apps/editor/src/views/panel/backend/message-handlers/handle-hash-sign-quick-pick/symbols/changes-symbol.ts` like in `apps/editor/src/commands/select-changed-files-command.ts`. necessary translations put in `apps/editor/src/i18n/translations/views/panel/handlers`
1 parent 83284fe commit eb1123c

25 files changed

Lines changed: 751 additions & 22 deletions

‎apps/editor/package.json‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@
376376
"command": "codeWebChat.selectCommitFiles",
377377
"title": "%codeWebChat.selectCommitFiles.title%",
378378
"category": "Code Web Chat"
379+
},
380+
{
381+
"command": "codeWebChat.selectChangedFiles",
382+
"title": "%codeWebChat.selectChangedFiles.title%",
383+
"category": "Code Web Chat"
379384
}
380385
],
381386
"submenus": [
@@ -562,6 +567,10 @@
562567
"command": "codeWebChat.selectUnstagedFiles",
563568
"when": "false"
564569
},
570+
{
571+
"command": "codeWebChat.selectChangedFiles",
572+
"when": "false"
573+
},
565574
{
566575
"command": "codeWebChat.selectCommitFiles",
567576
"when": "false"
@@ -644,10 +653,15 @@
644653
"group": "1_more@5"
645654
},
646655
{
647-
"command": "codeWebChat.duplicateWorkspace",
656+
"command": "codeWebChat.selectChangedFiles",
648657
"when": "view == codeWebChatViewWorkspace",
649658
"group": "1_more@6"
650659
},
660+
{
661+
"command": "codeWebChat.duplicateWorkspace",
662+
"when": "view == codeWebChatViewWorkspace",
663+
"group": "1_more@7"
664+
},
651665
{
652666
"command": "codeWebChat.checkAllOpenEditors",
653667
"when": "view == codeWebChatViewOpenEditors",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Премахни папката от работното пространство",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Отвори URL в браузъра",
5151
"codeWebChat.selectUnstagedFiles.title": "Маркирай променените файлове",
52-
"codeWebChat.selectCommitFiles.title": "Маркирай файлове от commit..."
52+
"codeWebChat.selectCommitFiles.title": "Маркирай файлове от commit...",
53+
"codeWebChat.selectChangedFiles.title": "Избери променени файлове..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Odebrat složku z pracovního prostoru",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Otevřít URL v prohlížeči",
5151
"codeWebChat.selectUnstagedFiles.title": "Vybrat upravené soubory",
52-
"codeWebChat.selectCommitFiles.title": "Vybrat soubory z commitu..."
52+
"codeWebChat.selectCommitFiles.title": "Vybrat soubory z commitu...",
53+
"codeWebChat.selectChangedFiles.title": "Vybrat změněné soubory..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Ordner aus Arbeitsbereich entfernen",
5050
"codeWebChat.openWebsitePreviewUrl.title": "URL im Browser öffnen",
5151
"codeWebChat.selectUnstagedFiles.title": "Geänderte Dateien auswählen",
52-
"codeWebChat.selectCommitFiles.title": "Dateien aus Commit auswählen..."
52+
"codeWebChat.selectCommitFiles.title": "Dateien aus Commit auswählen...",
53+
"codeWebChat.selectChangedFiles.title": "Geänderte Dateien auswählen..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Eliminar carpeta del espacio de trabajo",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Abrir URL en el navegador",
5151
"codeWebChat.selectUnstagedFiles.title": "Marcar archivos modificados",
52-
"codeWebChat.selectCommitFiles.title": "Marcar archivos de un commit..."
52+
"codeWebChat.selectCommitFiles.title": "Marcar archivos de un commit...",
53+
"codeWebChat.selectChangedFiles.title": "Seleccionar archivos cambiados..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Retirer le dossier de l'espace de travail",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Ouvrir l'URL dans le navigateur",
5151
"codeWebChat.selectUnstagedFiles.title": "Cocher les fichiers modifiés",
52-
"codeWebChat.selectCommitFiles.title": "Cocher les fichiers d'un commit..."
52+
"codeWebChat.selectCommitFiles.title": "Cocher les fichiers d'un commit...",
53+
"codeWebChat.selectChangedFiles.title": "Sélectionner les fichiers modifiés..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Mappa eltávolítása a munkaterületről",
5050
"codeWebChat.openWebsitePreviewUrl.title": "URL megnyitása a böngészőben",
5151
"codeWebChat.selectUnstagedFiles.title": "Módosított fájlok kijelölése",
52-
"codeWebChat.selectCommitFiles.title": "Commit fájljainak kijelölése..."
52+
"codeWebChat.selectCommitFiles.title": "Commit fájljainak kijelölése...",
53+
"codeWebChat.selectChangedFiles.title": "Módosított fájlok kiválasztása..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Rimuovi cartella dall'area di lavoro",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Apri URL nel browser",
5151
"codeWebChat.selectUnstagedFiles.title": "Seleziona file modificati",
52-
"codeWebChat.selectCommitFiles.title": "Seleziona i file da un commit..."
52+
"codeWebChat.selectCommitFiles.title": "Seleziona i file da un commit...",
53+
"codeWebChat.selectChangedFiles.title": "Seleziona i file modificati..."
5354
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "ワークスペースからフォルダーを削除",
5050
"codeWebChat.openWebsitePreviewUrl.title": "ブラウザーでURLを開く",
5151
"codeWebChat.selectUnstagedFiles.title": "変更されたファイルを選択",
52-
"codeWebChat.selectCommitFiles.title": "コミットからのファイルを選択..."
52+
"codeWebChat.selectCommitFiles.title": "コミットからのファイルを選択...",
53+
"codeWebChat.selectChangedFiles.title": "変更されたファイルを選択..."
5354
}

‎apps/editor/package.nls.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
"codeWebChat.removeFolderFromWorkspace.title": "Remove Folder from Workspace",
5050
"codeWebChat.openWebsitePreviewUrl.title": "Open URL in Browser",
5151
"codeWebChat.selectUnstagedFiles.title": "Select Unstaged Files",
52-
"codeWebChat.selectCommitFiles.title": "Select Files of Commit..."
52+
"codeWebChat.selectCommitFiles.title": "Select Files of Commit...",
53+
"codeWebChat.selectChangedFiles.title": "Select Changed Files..."
5354
}

0 commit comments

Comments
 (0)