Skip to content

Commit c88d81f

Browse files
committed
Refactor i18n translations to use command-specific keys and remove dictionary dependency
- when there are no models, action buttons should be disabled as if there were no files in context - move [Fragment] to `apps/editor/src/i18n/translations/commands/restore-file-selection.ts` - move [Fragment] to `apps/editor/src/i18n/translations/commands/select-modified-files.ts` - move [Fragment] to `apps/editor/src/i18n/translations/commands/select-files-of-commit.ts` - in notification, change 'selected x files' to 'Context has been updated.' - move[Fragment] to `apps/editor/src/i18n/translations/commands/save-file-selection.ts` - move [Fragment] to common in i18n - change 'plase confirm' to 'confirm action' (with translations) - move [Fragment] to `apps/editor/src/i18n/translations/commands/code-at-cursor.ts` - move [Fragment] to i18n - translate [Fragment] in `apps/editor/src/i18n/translations/services/...` - translate [Fragment] in `apps/editor/src/i18n/translations/common.ts` - translate [Fragment]  - translate[Fragment]  - translate [Fragment] - replace [Fragment] with rhe logger (remove translation) - use logger instead of [Fragment] - use logger instead of [Fragment] (remove translation) - some translation files and keys don't use 'handle-' prefix but should - some translation files and keys don't use '-command' suffix but should ├── apps │ └── editor │ └── src │ ├── commands │ │ ├── apply-response-command │ │ │ ├── apply-response-command.ts │ │ │ ├── handlers │ │ │ │ ├── fast-replace-handler.ts │ │ │ │ ├── restore-preview-handler.ts │ │ │ │ ├── search-replace-handler.ts │ │ │ │ └── truncated-handler.ts │ │ │ ├── response-processor.ts │ │ │ └── utils │ │ │ ├── file-operations │ │ │ │ ├── create-file-if-needed.ts │ │ │ │ └── undo-files.ts │ │ │ └── preview │ │ │ └── preview.ts │ │ ├── code-at-cursor-command │ │ │ └── utils │ │ │ └── perform-code-at-cursor.ts │ │ ├── copy-markdown-command.ts │ │ ├── copy-merge-commit-details-command.ts │ │ ├── copy-paths-command.ts │ │ ├── delete-command.ts │ │ ├── generate-commit-message-commands │ │ │ ├── actions │ │ │ │ └── run-generate-action.ts │ │ │ └── utils │ │ │ └── generate-commit-message-with-api.ts │ │ ├── history-command │ │ │ ├── actions │ │ │ │ ├── clear-all-checkpoints.ts │ │ │ │ ├── delete-checkpoint-with-undo.ts │ │ │ │ └── restore-checkpoint.ts │ │ │ └── history-command.ts │ │ ├── new-file-command.ts │ │ ├── new-folder-command.ts │ │ ├── rate-extension-command.ts │ │ ├── reference-in-prompt-command.ts │ │ ├── rename-command.ts │ │ ├── restore-file-selection-command │ │ │ ├── actions │ │ │ │ ├── restore-from-json-file.ts │ │ │ │ └── restore-from-workspace-state.ts │ │ │ └── restore-file-selection-command.ts │ │ ├── save-file-selection-command │ │ │ ├── actions │ │ │ │ ├── save-to-json-file.ts │ │ │ │ └── save-to-workspace-state.ts │ │ │ └── save-file-selection-command.ts │ │ ├── select-clipboard-paths-command.ts │ │ ├── select-definition-file-command.ts │ │ ├── select-files-of-commit-command.ts │ │ ├── select-imported-files-commands │ │ │ ├── select-imported-files-commands.ts │ │ │ └── utils │ │ │ └── prompt-for-imported-files.ts │ │ ├── select-modified-files-command.ts │ │ ├── select-referencing-files-commands │ │ │ ├── select-referencing-files-commands.ts │ │ │ └── utils │ │ │ └── prompt-for-referencing-files.ts │ │ ├── select-workspace-file-command.ts │ │ └── set-ranges-command.ts │ ├── features │ │ └── search-files │ │ └── utils │ │ └── prompt-for-config.ts │ ├── i18n │ │ ├── index.ts │ │ └── translations │ │ ├── commands │ │ │ ├── apply-response-command.ts │ │ │ ├── code-at-cursor-command.ts │ │ │ ├── copy-markdown-command.ts │ │ │ ├── copy-merge-commit-details-command.ts │ │ │ ├── copy-paths-command.ts │ │ │ ├── generate-commit-message-command.ts │ │ │ ├── history-command.ts │ │ │ ├── index.ts │ │ │ ├── install-browser-extension-command.ts │ │ │ ├── new-file-command.ts │ │ │ ├── new-folder-command.ts │ │ │ ├── rate-extension-command.ts │ │ │ ├── reference-in-prompt-command.ts │ │ │ ├── rename-command.ts │ │ │ ├── restore-file-selection-command.ts │ │ │ ├── save-file-selection-command.ts │ │ │ ├── search-files-command.ts │ │ │ ├── select-clipboard-paths-command.ts │ │ │ ├── select-definition-file-command.ts │ │ │ ├── select-files-of-commit-command.ts │ │ │ ├── select-imported-files-command.ts │ │ │ ├── select-modified-files-command.ts │ │ │ ├── select-referencing-files-command.ts │ │ │ ├── select-workspace-file-command.ts │ │ │ └── set-ranges-command.ts │ │ ├── common.ts │ │ ├── context.ts │ │ ├── features │ │ │ ├── checkpoints.ts │ │ │ ├── context-restoration.ts │ │ │ ├── index.ts │ │ │ └── search-files.ts │ │ ├── misc.ts │ │ ├── services │ │ │ ├── index.ts │ │ │ └── websocket-manager.ts │ │ ├── utils │ │ │ ├── git-repository-utils.ts │ │ │ ├── index.ts │ │ │ ├── show-missing-configuration-notification.ts │ │ │ └── show-parent-folder-quick-pick.ts │ │ └── views │ │ ├── common │ │ │ ├── handlers │ │ │ │ ├── common.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── prompt │ │ │ ├── handlers │ │ │ │ ├── common.ts │ │ │ │ ├── handle-agentic-search.ts │ │ │ │ ├── handle-copy-prompt.ts │ │ │ │ ├── handle-delete-task.ts │ │ │ │ ├── handle-hash-sign-quick-pick.ts │ │ │ │ ├── handle-make-api-call.ts │ │ │ │ ├── handle-patch-repair.ts │ │ │ │ ├── handle-pick-api-reasoning-effort.ts │ │ │ │ ├── handle-select-edit-format-instructions.ts │ │ │ │ ├── handle-template-quick-pick.ts │ │ │ │ ├── handle-undo.ts │ │ │ │ ├── handle-voice-input.ts │ │ │ │ ├── index.ts │ │ │ │ └── utils │ │ │ │ ├── index.ts │ │ │ │ └── symbols │ │ │ │ ├── git │ │ │ │ │ ├── index.ts │ │ │ │ │ └── replace-git-symbols.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── utils │ │ │ ├── index.ts │ │ │ └── symbols │ │ │ ├── git │ │ │ │ ├── index.ts │ │ │ │ └── replace-git-symbols.ts │ │ │ └── index.ts │ │ ├── settings │ │ │ ├── handlers │ │ │ │ ├── handle-create-template.ts │ │ │ │ ├── handle-delete-provider.ts │ │ │ │ ├── handle-delete-template.ts │ │ │ │ ├── handle-open-allow-patterns-settings.ts │ │ │ │ ├── handle-open-ignore-patterns-settings.ts │ │ │ │ ├── handle-pick-api-reasoning-effort.ts │ │ │ │ ├── handle-select-default-api-configuration.ts │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── shared │ │ ├── actions │ │ │ ├── api │ │ │ │ ├── add-provider.ts │ │ │ │ ├── common.ts │ │ │ │ ├── create │ │ │ │ │ ├── create.ts │ │ │ │ │ ├── index.ts │ │ │ │ │ └── interactions │ │ │ │ │ ├── index.ts │ │ │ │ │ ├── initial-select-model.ts │ │ │ │ │ ├── initial-select-provider.ts │ │ │ │ │ └── verify-model.ts │ │ │ │ ├── delete.ts │ │ │ │ ├── index.ts │ │ │ │ ├── pick-extended-provider.ts │ │ │ │ ├── pick-reasoning-effort.ts │ │ │ │ └── update │ │ │ │ ├── index.ts │ │ │ │ └── interactions │ │ │ │ ├── edit-model-for-api-config.ts │ │ │ │ ├── edit-reasoning-effort-for-api-config.ts │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── web │ │ │ ├── create.ts │ │ │ ├── delete.ts │ │ │ ├── index.ts │ │ │ ├── pick-chatbot.ts │ │ │ ├── pick-model.ts │ │ │ └── update.ts │ │ └── index.ts │ ├── services │ │ └── websocket-manager.ts │ ├── utils │ │ ├── git-repository-utils.ts │ │ └── show-configurations-quick-pick.ts │ └── views │ ├── prompt │ │ └── backend │ │ ├── message-handlers │ │ │ ├── handle-agentic-search │ │ │ │ ├── agentic-search.ts │ │ │ │ ├── handle-agentic-search.ts │ │ │ │ └── utils │ │ │ │ └── prompt-for-search-term.ts │ │ │ ├── handle-autofill.ts │ │ │ ├── handle-delete-task.ts │ │ │ ├── handle-hash-sign-quick-pick │ │ │ │ ├── handle-hash-sign-quick-pick.ts │ │ │ │ └── symbols │ │ │ │ ├── changes-symbol.ts │ │ │ │ ├── commit-symbol.ts │ │ │ │ ├── saved-context-symbol.ts │ │ │ │ └── skill-symbol.ts │ │ │ ├── handle-install-browser-extension.ts │ │ │ ├── handle-make-api-call.ts │ │ │ ├── handle-patch-repair.ts │ │ │ ├── handle-pick-api-reasoning-effort.ts │ │ │ ├── handle-preview-web-configuration.ts │ │ │ ├── handle-select-edit-format-instructions.ts │ │ │ ├── handle-template-quick-pick.ts │ │ │ ├── handle-undo.ts │ │ │ ├── handle-update-web-configuration.ts │ │ │ └── handle-voice-input.ts │ │ └── utils │ │ └── symbols │ │ └── git │ │ └── replace-git-symbols.ts │ ├── settings │ │ └── backend │ │ └── message-handlers │ │ ├── add-provider │ │ │ ├── handle-add-provider.ts │ │ │ ├── pick-extended-provider.ts │ │ │ └── pick-provider-source.ts │ │ ├── handle-create-template.ts │ │ ├── handle-delete-provider.ts │ │ ├── handle-delete-template.ts │ │ ├── handle-open-allow-patterns-settings.ts │ │ ├── handle-open-ignore-patterns-settings.ts │ │ ├── handle-pick-api-reasoning-effort.ts │ │ ├── handle-select-default-api-configuration.ts │ │ ├── handle-update-provider.ts │ │ └── handle-update-web-configuration.ts │ └── shared │ └── actions │ ├── api │ │ ├── create │ │ │ ├── create.ts │ │ │ └── interactions │ │ │ ├── initial-select-model.ts │ │ │ ├── initial-select-provider.ts │ │ │ └── verify-model.ts │ │ ├── delete.ts │ │ ├── pick-reasoning-effort.ts │ │ └── update │ │ ├── interactions │ │ │ ├── edit-model-for-api-config.ts │ │ │ ├── edit-provider-for-api-config.ts │ │ │ └── edit-reasoning-effort-for-api-config.ts │ │ └── update.ts │ └── web │ ├── create.ts │ ├── delete.ts │ ├── pick-chatbot.ts │ ├── pick-model.ts │ └── update.ts └── packages ├── shared │ └── src │ ├── constants │ │ └── dictionary.ts │ └── utils │ └── logger.ts └── ui └── src └── components └── editor └── common └── prompts ├── PromptField │ ├── PromptField.stories.tsx │ ├── hooks │ │ ├── use-drag-drop.ts │ │ ├── use-ghost-text.ts │ │ └── use-handlers │ │ ├── handle-copy.ts │ │ ├── handle-cut.ts │ │ ├── handle-input-change.ts │ │ ├── index.ts │ │ └── utils.ts │ └── index.ts ├── Template │ ├── Template.module.scss │ ├── Template.tsx │ └── index.ts └── shared └── symbols ├── caret.ts ├── get-highlighted-text.tsx ├── index.ts ├── position-mapping.ts └── reconstruct-raw-value.ts
1 parent 0bc9308 commit c88d81f

115 files changed

Lines changed: 1719 additions & 1394 deletions

File tree

Some content is hidden

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

‎apps/browser/create-zip-archives.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const main = async () => {
6767
)
6868

6969
log(`Successfully created ZIP archives for version ${version}`)
70-
} catch (error: any) {
70+
} catch (error) {
7171
log(`Error creating ZIP archives: ${error.message}`)
7272
process.exit(1)
7373
}

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const apply_response_command = (params: {
8282
try {
8383
if (!vscode.workspace.workspaceFolders?.length) {
8484
vscode.window.showErrorMessage(
85-
t('command.apply-response.error.no-workspace-folder')
85+
t('command.apply-response-command.error.no-workspace-folder')
8686
)
8787
return
8888
}
@@ -92,13 +92,13 @@ export const apply_response_command = (params: {
9292
response = await vscode.env.clipboard.readText()
9393
if (!response) {
9494
vscode.window.showInformationMessage(
95-
t('command.apply-response.info.clipboard-empty')
95+
t('command.apply-response-command.info.clipboard-empty')
9696
)
9797
return
9898
}
9999
} else if (!response) {
100100
vscode.window.showErrorMessage(
101-
t('command.apply-response.error.response-missing')
101+
t('command.apply-response-command.error.response-missing')
102102
)
103103
return
104104
}
@@ -316,7 +316,9 @@ export const apply_response_command = (params: {
316316
params.prompt_view_provider.send_message({
317317
command: 'SHOW_PROGRESS',
318318
title: t('common.progress.response-preview'),
319-
subtitle: t('command.apply-response.progress.creating-checkpoint')
319+
subtitle: t(
320+
'command.apply-response-command.progress.creating-checkpoint'
321+
)
320322
})
321323

322324
before_checkpoint = await create_checkpoint({
@@ -555,7 +557,7 @@ export const apply_response_command = (params: {
555557
command: 'HIDE_PROGRESS'
556558
})
557559
vscode.window.showErrorMessage(
558-
t('command.apply-response.error.applying-changes', {
560+
t('command.apply-response-command.error.applying-changes', {
559561
msg: err.message
560562
})
561563
)

‎apps/editor/src/commands/apply-response-command/handlers/fast-replace-handler.ts‎

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const handle_fast_replace = async (params: {
3030
vscode.workspace.workspaceFolders.length == 0
3131
) {
3232
vscode.window.showErrorMessage(
33-
t('command.apply-response.error.no-workspace-folder')
33+
t('command.apply-response-command.error.no-workspace-folder')
3434
)
3535
Logger.warn({
3636
function_name: 'handle_fast_replace',
@@ -77,7 +77,7 @@ export const handle_fast_replace = async (params: {
7777
if (unsafe_files.length > 0) {
7878
const unsafe_list = unsafe_files.join('\n')
7979
vscode.window.showErrorMessage(
80-
t('command.apply-response.error.unsafe-file-paths-skipped', {
80+
t('command.apply-response-command.error.unsafe-file-paths-skipped', {
8181
count: unsafe_files.length,
8282
list: unsafe_list
8383
})
@@ -175,7 +175,7 @@ export const handle_fast_replace = async (params: {
175175
data: { error, file_path: file.file_path }
176176
})
177177
vscode.window.showErrorMessage(
178-
t('command.apply-response.error.processing-file', {
178+
t('command.apply-response-command.error.processing-file', {
179179
path: file.file_path,
180180
msg: error.message || 'Unknown error'
181181
})
@@ -249,9 +249,12 @@ export const handle_fast_replace = async (params: {
249249
data: { directory, error, file_path: file.file_path }
250250
})
251251
vscode.window.showErrorMessage(
252-
t('command.apply-response.error.failed-to-create-directory', {
253-
path: file.file_path
254-
})
252+
t(
253+
'command.apply-response-command.error.failed-to-create-directory',
254+
{
255+
path: file.file_path
256+
}
257+
)
255258
)
256259
continue
257260
}
@@ -271,7 +274,7 @@ export const handle_fast_replace = async (params: {
271274
data: { safe_path, error, file_path: file.file_path }
272275
})
273276
vscode.window.showErrorMessage(
274-
t('command.apply-response.error.failed-to-write-file', {
277+
t('command.apply-response-command.error.failed-to-write-file', {
275278
path: file.file_path
276279
})
277280
)
@@ -285,7 +288,7 @@ export const handle_fast_replace = async (params: {
285288
data: { error, file_path: file.file_path }
286289
})
287290
vscode.window.showErrorMessage(
288-
t('command.apply-response.error.processing-file', {
291+
t('command.apply-response-command.error.processing-file', {
289292
path: file.file_path,
290293
msg: error.message || 'Unknown error'
291294
})
@@ -308,7 +311,7 @@ export const handle_fast_replace = async (params: {
308311
})
309312
console.error('Error during direct file replacement:', error)
310313
vscode.window.showErrorMessage(
311-
t('command.apply-response.error.replacing-files', {
314+
t('command.apply-response-command.error.replacing-files', {
312315
msg: error.message || 'Unknown error'
313316
})
314317
)

‎apps/editor/src/commands/apply-response-command/handlers/restore-preview-handler.ts‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const handle_restore_preview = async (
2222
vscode.workspace.workspaceFolders.length == 0
2323
) {
2424
vscode.window.showErrorMessage(
25-
t('command.apply-response.error.no-workspace-folder')
25+
t('command.apply-response-command.error.no-workspace-folder')
2626
)
2727
Logger.warn({
2828
function_name: 'handle_restore_preview',
@@ -187,9 +187,12 @@ export const handle_restore_preview = async (
187187
data: { directory, error, file_path: file.file_path }
188188
})
189189
vscode.window.showErrorMessage(
190-
t('command.apply-response.error.failed-to-create-directory', {
191-
path: file.file_path
192-
})
190+
t(
191+
'command.apply-response-command.error.failed-to-create-directory',
192+
{
193+
path: file.file_path
194+
}
195+
)
193196
)
194197
continue
195198
}
@@ -209,7 +212,7 @@ export const handle_restore_preview = async (
209212
data: { safe_path, error, file_path: file.file_path }
210213
})
211214
vscode.window.showErrorMessage(
212-
t('command.apply-response.error.failed-to-write-file', {
215+
t('command.apply-response-command.error.failed-to-write-file', {
213216
path: file.file_path
214217
})
215218
)

‎apps/editor/src/commands/apply-response-command/handlers/search-replace-handler.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const handle_search_replace = async (params: {
3333
vscode.workspace.workspaceFolders.length == 0
3434
) {
3535
vscode.window.showErrorMessage(
36-
t('command.apply-response.error.no-workspace-folder')
36+
t('command.apply-response-command.error.no-workspace-folder')
3737
)
3838
return { success: false }
3939
}
@@ -261,7 +261,7 @@ export const handle_search_replace = async (params: {
261261
data: error
262262
})
263263
vscode.window.showErrorMessage(
264-
t('command.apply-response.error.applying-changes', {
264+
t('command.apply-response-command.error.applying-changes', {
265265
msg: error.message || 'Unknown error'
266266
})
267267
)

‎apps/editor/src/commands/apply-response-command/handlers/truncated-handler.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const handle_truncated_edit = async (params: {
3232
vscode.workspace.workspaceFolders.length == 0
3333
) {
3434
vscode.window.showErrorMessage(
35-
t('command.apply-response.error.no-workspace-folder')
35+
t('command.apply-response-command.error.no-workspace-folder')
3636
)
3737
return { success: false }
3838
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const process_response = async (params: {
6060
params.prompt_view_provider.send_message({
6161
command: 'SHOW_PROGRESS',
6262
title: t('common.progress.response-preview'),
63-
subtitle: t('command.apply-response.progress.applying-edits'),
63+
subtitle: t('command.apply-response-command.progress.applying-edits'),
6464
progress
6565
})
6666
}
@@ -383,7 +383,7 @@ export const process_response = async (params: {
383383

384384
if (files.length == 0) {
385385
vscode.window.showErrorMessage(
386-
t('command.apply-response.error.no-valid-response')
386+
t('command.apply-response-command.error.no-valid-response')
387387
)
388388
return null
389389
}

‎apps/editor/src/commands/apply-response-command/utils/file-operations/create-file-if-needed.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const create_file_if_needed = async (params: {
2020
vscode.workspace.workspaceFolders.length == 0
2121
) {
2222
vscode.window.showErrorMessage(
23-
t('command.apply-response.error.no-workspace-folder')
23+
t('command.apply-response-command.error.no-workspace-folder')
2424
)
2525
Logger.warn({
2626
function_name: 'create_file_if_needed',
@@ -53,7 +53,7 @@ export const create_file_if_needed = async (params: {
5353

5454
if (!safe_path) {
5555
vscode.window.showErrorMessage(
56-
t('command.apply-response.error.invalid-file-path-traversal', {
56+
t('command.apply-response-command.error.invalid-file-path-traversal', {
5757
path: params.file_path
5858
})
5959
)
@@ -82,7 +82,7 @@ export const create_file_if_needed = async (params: {
8282
data: { directory: directory_uri.fsPath, error }
8383
})
8484
vscode.window.showErrorMessage(
85-
t('command.apply-response.error.failed-to-create-directory', {
85+
t('command.apply-response-command.error.failed-to-create-directory', {
8686
path: directory_uri.fsPath
8787
})
8888
)
@@ -108,7 +108,7 @@ export const create_file_if_needed = async (params: {
108108
data: { safe_path, error }
109109
})
110110
vscode.window.showErrorMessage(
111-
t('command.apply-response.error.failed-to-write-file', {
111+
t('command.apply-response-command.error.failed-to-write-file', {
112112
path: safe_path
113113
})
114114
)

‎apps/editor/src/commands/apply-response-command/utils/file-operations/undo-files.ts‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const undo_files = async (params: {
2222
vscode.workspace.workspaceFolders.length == 0
2323
) {
2424
vscode.window.showErrorMessage(
25-
t('command.apply-response.error.no-workspace-folder')
25+
t('command.apply-response-command.error.no-workspace-folder')
2626
)
2727
Logger.warn({
2828
function_name: 'undo_files',
@@ -112,9 +112,12 @@ export const undo_files = async (params: {
112112
data: { error: err, file_path: state.file_path }
113113
})
114114
vscode.window.showWarningMessage(
115-
t('command.apply-response.warning.could-not-delete-file', {
116-
path: state.file_path
117-
})
115+
t(
116+
'command.apply-response-command.warning.could-not-delete-file',
117+
{
118+
path: state.file_path
119+
}
120+
)
118121
)
119122
}
120123
}
@@ -172,9 +175,12 @@ export const undo_files = async (params: {
172175
data: { error: err, file_path: state.file_path }
173176
})
174177
vscode.window.showWarningMessage(
175-
t('command.apply-response.warning.could-not-recreate-file', {
176-
path: state.file_path
177-
})
178+
t(
179+
'command.apply-response-command.warning.could-not-recreate-file',
180+
{
181+
path: state.file_path
182+
}
183+
)
178184
)
179185
}
180186
} else {
@@ -221,7 +227,7 @@ export const undo_files = async (params: {
221227
})
222228
console.error(`Error undoing file ${state.file_path}:`, err)
223229
vscode.window.showWarningMessage(
224-
t('command.apply-response.warning.could-not-undo-file', {
230+
t('command.apply-response-command.warning.could-not-undo-file', {
225231
path: state.file_path
226232
})
227233
)
@@ -243,7 +249,7 @@ export const undo_files = async (params: {
243249
})
244250
console.error('Error during undo:', error)
245251
vscode.window.showErrorMessage(
246-
t('command.apply-response.error.failed-to-undo', {
252+
t('command.apply-response-command.error.failed-to-undo', {
247253
msg: error.message || 'Unknown error'
248254
})
249255
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const preview = async (params: {
3535
} | null> => {
3636
if (!vscode.workspace.workspaceFolders?.length) {
3737
vscode.window.showErrorMessage(
38-
t('command.apply-response.error.no-workspace-folder')
38+
t('command.apply-response-command.error.no-workspace-folder')
3939
)
4040
return null
4141
}

0 commit comments

Comments
 (0)