Skip to content

Commit 8994b8c

Browse files
committed
Add command to select referencing files for currently selected files and modularize referencing logic
- in 'selected files' pane, create 'more actions' item, within implement 'select referencing files'. Prefer code duplications over re-usability of the logic in `apps/editor/src/commands/select-referencing-files-command.ts` - the result set of referencing files should have title: 'Referencing Files', not 'Search Results' - extract common logic to `apps/editor/src/features/referencing-files` - translations used in `apps/editor/src/features/referencing-files` should be moved to `apps/editor/src/i18n/translations/features/referencing-files.ts`, keep those used in 'commands' files in 'commands folder of translations
1 parent 8161fcb commit 8994b8c

28 files changed

Lines changed: 619 additions & 419 deletions

‎apps/editor/package.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,11 @@
363363
"title": "%codeWebChat.selectReferencingFiles.title%",
364364
"category": "Code Web Chat"
365365
},
366+
{
367+
"command": "codeWebChat.selectReferencingFilesForSelected",
368+
"title": "%codeWebChat.selectReferencingFilesForSelected.title%",
369+
"category": "Code Web Chat"
370+
},
366371
{
367372
"command": "codeWebChat.selectDefinitionFile",
368373
"title": "%codeWebChat.selectDefinitionFile.title%",
@@ -613,6 +618,11 @@
613618
"when": "view == codeWebChatViewSelectedFiles",
614619
"group": "navigation@4"
615620
},
621+
{
622+
"command": "codeWebChat.selectReferencingFilesForSelected",
623+
"when": "view == codeWebChatViewSelectedFiles",
624+
"group": "1_more@1"
625+
},
616626
{
617627
"command": "codeWebChat.checkAll",
618628
"when": "view == codeWebChatViewWorkspace",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Задай диапазони...",
4545
"codeWebChat.searchFiles.title": "Търсене на файлове...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Търсене на файлове...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Избери рефериращите файлове...",
4748
"codeWebChat.selectReferencingFiles.title": "Избери рефериращите файлове...",
4849
"codeWebChat.selectDefinitionFile.title": "Изберете файл с дефиниция",
4950
"codeWebChat.openInIntegratedTerminal.title": "Отвори във вградения терминал",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Nastavit rozsahy...",
4545
"codeWebChat.searchFiles.title": "Hledat soubory...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Hledat soubory...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Vybrat odkazující soubory...",
4748
"codeWebChat.selectReferencingFiles.title": "Vybrat odkazující soubory...",
4849
"codeWebChat.selectDefinitionFile.title": "Vybrat soubor definice",
4950
"codeWebChat.openInIntegratedTerminal.title": "Otevřít v integrovaném terminálu",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Bereiche festlegen...",
4545
"codeWebChat.searchFiles.title": "Dateien suchen...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Dateien suchen...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Referenzierende Dateien auswählen...",
4748
"codeWebChat.selectReferencingFiles.title": "Referenzierende Dateien auswählen...",
4849
"codeWebChat.selectDefinitionFile.title": "Definitionsdatei auswählen",
4950
"codeWebChat.openInIntegratedTerminal.title": "In integriertem Terminal öffnen",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Establecer rangos...",
4545
"codeWebChat.searchFiles.title": "Buscar archivos...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Buscar archivos...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Seleccionar archivos que referencian...",
4748
"codeWebChat.selectReferencingFiles.title": "Seleccionar archivos que referencian...",
4849
"codeWebChat.selectDefinitionFile.title": "Seleccionar archivo de definición",
4950
"codeWebChat.openInIntegratedTerminal.title": "Abrir en terminal integrado",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Définir les plages...",
4545
"codeWebChat.searchFiles.title": "Rechercher des fichiers...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Rechercher des fichiers...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Sélectionner les fichiers de référence...",
4748
"codeWebChat.selectReferencingFiles.title": "Sélectionner les fichiers de référence...",
4849
"codeWebChat.selectDefinitionFile.title": "Sélectionner le fichier de définition",
4950
"codeWebChat.openInIntegratedTerminal.title": "Ouvrir dans le terminal intégré",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Tartományok beállítása...",
4545
"codeWebChat.searchFiles.title": "Fájlok keresése...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Fájlok keresése...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Hivatkozó fájlok kiválasztása...",
4748
"codeWebChat.selectReferencingFiles.title": "Hivatkozó fájlok kiválasztása...",
4849
"codeWebChat.selectDefinitionFile.title": "Definíciós fájl kiválasztása",
4950
"codeWebChat.openInIntegratedTerminal.title": "Megnyitás az integrált terminálban",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Imposta intervalli...",
4545
"codeWebChat.searchFiles.title": "Cerca file...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Cerca file...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Seleziona i file di riferimento...",
4748
"codeWebChat.selectReferencingFiles.title": "Seleziona i file di riferimento...",
4849
"codeWebChat.selectDefinitionFile.title": "Seleziona file di definizione",
4950
"codeWebChat.openInIntegratedTerminal.title": "Apri nel terminale integrato",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "範囲を設定...",
4545
"codeWebChat.searchFiles.title": "ファイルを検索...",
4646
"codeWebChat.searchFilesFromDirectory.title": "ファイルを検索...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "参照しているファイルを選択...",
4748
"codeWebChat.selectReferencingFiles.title": "参照しているファイルを選択...",
4849
"codeWebChat.selectDefinitionFile.title": "定義ファイルを選択",
4950
"codeWebChat.openInIntegratedTerminal.title": "統合ターミナルで開く",

‎apps/editor/package.nls.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"codeWebChat.setRanges.title": "Set Ranges...",
4545
"codeWebChat.searchFiles.title": "Search Files...",
4646
"codeWebChat.searchFilesFromDirectory.title": "Search Files...",
47+
"codeWebChat.selectReferencingFilesForSelected.title": "Select Referencing Files...",
4748
"codeWebChat.selectReferencingFiles.title": "Select Referencing Files...",
4849
"codeWebChat.selectDefinitionFile.title": "Select Definition File",
4950
"codeWebChat.openInIntegratedTerminal.title": "Open in Integrated Terminal",

0 commit comments

Comments
 (0)