Feat/add ide opened file to chat context (#1106)

* feat(chat): add active editor file context and related functionality

* feat(chat): improve active editor file context handling and update translations

* feat(i18n): standardize quotation marks in file attachment messages

* update Korean translation for image removal action in file attachment

* feat(chat): refine active editor file handling and optimize broadcast logic

* fix(chat): stabilize VS Code editor context chips

---------

Signed-off-by: David Saz <david.saz.g@gmail.com>
Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
David Saz
2026-05-05 01:24:03 +03:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 7fc22bc69b
commit 5475ef2db3
12 changed files with 528 additions and 97 deletions
+3
View File
@@ -1278,6 +1278,9 @@ export const dict = {
'chat.fileAttachment.actions.attach': 'Attach files',
'chat.fileAttachment.actions.removeNamed': 'Remove {name}',
'chat.fileAttachment.actions.removeImage': 'Remove image',
'chat.fileAttachment.activeEditor.addFile': 'Add file:{name} to context',
'chat.fileAttachment.activeEditor.pinSelection': 'Pin selection to context',
'chat.fileAttachment.activeEditor.remove': 'Remove from context',
'chat.pendingChanges.fileCountSingle': '{count} file',
'chat.pendingChanges.fileCountPlural': '{count} files',
'chat.pendingChanges.changedInWorkspace': 'changed in workspace',
+3
View File
@@ -1244,6 +1244,9 @@ export const dict: Record<I18nKey, string> = {
"chat.fileAttachment.actions.attach": "Adjuntar archivos",
"chat.fileAttachment.actions.removeNamed": "Eliminar {name}",
"chat.fileAttachment.actions.removeImage": "Eliminar imagen",
"chat.fileAttachment.activeEditor.addFile": "Agregar archivo:{name} al contexto",
"chat.fileAttachment.activeEditor.pinSelection": "Anclar selección al contexto",
"chat.fileAttachment.activeEditor.remove": "Quitar del contexto",
"chat.pendingChanges.fileCountSingle": "{count} archivo",
"chat.pendingChanges.fileCountPlural": "{count} archivos",
"chat.pendingChanges.changedInWorkspace": "modificado en el espacio de trabajo",
+3
View File
@@ -1280,6 +1280,9 @@ export const dict: Record<I18nKey, string> = {
'chat.fileAttachment.actions.attach': '파일 첨부',
'chat.fileAttachment.actions.removeNamed': '{name} 제거',
'chat.fileAttachment.actions.removeImage': '이미지 제거',
'chat.fileAttachment.activeEditor.addFile': '컨텍스트에 파일 추가:{name}',
'chat.fileAttachment.activeEditor.pinSelection': '컨텍스트에 선택 고정',
'chat.fileAttachment.activeEditor.remove': '컨텍스트에서 제거',
'chat.pendingChanges.fileCountSingle': '{count} 파일',
'chat.pendingChanges.fileCountPlural': '{count} 파일',
'chat.pendingChanges.changedInWorkspace': '워크스페이스에서 변경됨',
@@ -1244,6 +1244,9 @@ export const dict: Record<I18nKey, string> = {
"chat.fileAttachment.actions.attach": "Anexar arquivos",
"chat.fileAttachment.actions.removeNamed": "Excluir {name}",
"chat.fileAttachment.actions.removeImage": "Excluir imagem",
"chat.fileAttachment.activeEditor.addFile": "Adicionar arquivo:{name} ao contexto",
"chat.fileAttachment.activeEditor.pinSelection": "Fixar seleção no contexto",
"chat.fileAttachment.activeEditor.remove": "Remover do contexto",
"chat.pendingChanges.fileCountSingle": "{count} arquivo",
"chat.pendingChanges.fileCountPlural": "{count} arquivos",
"chat.pendingChanges.changedInWorkspace": "modificado no workspace",
+3
View File
@@ -1244,6 +1244,9 @@ export const dict: Record<I18nKey, string> = {
"chat.fileAttachment.actions.attach": "Прикріпити файли",
"chat.fileAttachment.actions.removeNamed": "Видалити {name}",
"chat.fileAttachment.actions.removeImage": "Видалити зображення",
"chat.fileAttachment.activeEditor.addFile": "Додати файл:{name} до контексту",
"chat.fileAttachment.activeEditor.pinSelection": "Закріпити вибір у контексті",
"chat.fileAttachment.activeEditor.remove": "Видалити з контексту",
"chat.pendingChanges.fileCountSingle": "Файл: {count}",
"chat.pendingChanges.fileCountPlural": "Файлів: {count}",
"chat.pendingChanges.changedInWorkspace": "змінено в гілці",
@@ -1244,6 +1244,9 @@ export const dict: Record<I18nKey, string> = {
'chat.fileAttachment.actions.attach': '附加文件',
'chat.fileAttachment.actions.removeNamed': '移除 {name}',
'chat.fileAttachment.actions.removeImage': '移除图片',
'chat.fileAttachment.activeEditor.addFile': '将文件添加到上下文:{name}',
'chat.fileAttachment.activeEditor.pinSelection': '将选择固定到上下文',
'chat.fileAttachment.activeEditor.remove': '从上下文中移除',
'chat.pendingChanges.fileCountSingle': '{count} 个文件',
'chat.pendingChanges.fileCountPlural': '{count} 个文件',
'chat.pendingChanges.changedInWorkspace': '工作区中有变更',