Skip to content

Commit f70f55a

Browse files
committed
Replace custom success modal with native VS Code information message for relevant files update
- instead of dispatching auto closing modal [Fragment], should show information message (notification) - add missing translations to [Fragment] ├── apps │ └── editor │ └── src │ ├── commands │ │ ├── apply-response-command │ │ │ └── response-processor.ts │ │ ├── search-files-commands.ts │ │ ├── select-clipboard-paths-command.ts │ │ └── select-unstaged-files-command.ts │ ├── features │ │ └── search-files │ │ ├── index.ts │ │ ├── search-files.ts │ │ ├── search-modes │ │ │ ├── perform-intelligent-search-mode.ts │ │ │ ├── perform-keywords-search-mode.ts │ │ │ ├── perform-phrase-search-mode.ts │ │ │ └── perform-semantic-search-mode.ts │ │ └── utils │ │ ├── analyze-files.ts │ │ ├── check-matches-condition.ts │ │ ├── create-search-regex.ts │ │ ├── prompt-for-config.ts │ │ ├── prompt-for-intelligent-search-results.ts │ │ ├── prompt-for-keywords-match-mode.ts │ │ ├── prompt-for-keywords-target.ts │ │ ├── prompt-for-provided-results.ts │ │ ├── prompt-for-search-mode.ts │ │ ├── prompt-for-search-results.ts │ │ ├── prompt-for-search-term.ts │ │ ├── prompt-for-shrink-mode.ts │ │ ├── search-files-by-intelligent.ts │ │ ├── search-files-by-keywords.ts │ │ ├── search-files-by-phrase.ts │ │ └── search-files-by-semantic.ts │ └── i18n │ └── translations │ └── commands │ └── apply-response.ts └── packages └── shared └── src └── constants └── dictionary.ts
1 parent f296c1b commit f70f55a

2 files changed

Lines changed: 19 additions & 21 deletions

File tree

‎apps/editor/src/commands/apply-response-command/response-processor.ts‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,9 @@ export const process_response = async (params: {
197197
shared_context_state.switch_context_state(true)
198198
}
199199

200-
params.prompt_view_provider.send_message({
201-
command: 'SHOW_AUTO_CLOSING_MODAL',
202-
title: t('command.apply-response.relevant-files.success'),
203-
type: 'success'
204-
})
200+
vscode.window.showInformationMessage(
201+
t('command.apply-response.relevant-files.success')
202+
)
205203
}
206204

207205
return null

‎apps/editor/src/i18n/translations/commands/apply-response.ts‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,22 @@ export const translations = {
3636
bg: 'Потвърдете файловете за включване в контекста'
3737
},
3838
'command.apply-response.relevant-files.success': {
39-
en: 'Context has been updated',
40-
pl: 'Kontekst został zaktualizowany',
41-
'zh-cn': '上下文已更新',
42-
ja: 'コンテキストが更新されました',
43-
'zh-tw': '上下文已更新',
44-
de: 'Kontext wurde aktualisiert',
45-
es: 'El contexto ha sido actualizado',
46-
fr: 'Le contexte a été mis à jour',
47-
'pt-br': 'O contexto foi atualizado',
48-
ru: 'Контекст был обновлен',
49-
ko: '컨텍스트가 업데이트되었습니다',
50-
it: 'Il contesto è stato aggiornato',
51-
tr: 'Bağlam güncellendi',
52-
cs: 'Kontext byl aktualizován',
53-
hu: 'A kontextus frissítve lett',
54-
bg: 'Контекстът е актуализиран'
39+
en: 'Context has been updated.',
40+
pl: 'Kontekst został zaktualizowany.',
41+
'zh-cn': '上下文已更新。',
42+
ja: 'コンテキストが更新されました。',
43+
'zh-tw': '上下文已更新。',
44+
de: 'Kontext wurde aktualisiert.',
45+
es: 'El contexto ha sido actualizado.',
46+
fr: 'Le contexte a été mis à jour.',
47+
'pt-br': 'O contexto foi atualizado.',
48+
ru: 'Контекст обновлен.',
49+
ko: '컨텍스트가 업데이트되었습니다.',
50+
it: 'Il contesto è stato aggiornato.',
51+
tr: 'Bağlam güncellendi.',
52+
cs: 'Kontext byl aktualizován.',
53+
hu: 'A kontextus frissítve lett.',
54+
bg: 'Контекстът е актуализиран.'
5555
},
5656
'command.apply-response.error.no-valid-response': {
5757
en: 'No valid response found in clipboard',

0 commit comments

Comments
 (0)