Skip to content

Commit 88fd4b5

Browse files
committed
Remove progress indicator logic from apply chat response command
1 parent 42f52a1 commit 88fd4b5

2 files changed

Lines changed: 0 additions & 54 deletions

File tree

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

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import { Checkpoint } from '../checkpoints-command/types'
2121
import { CHECKPOINTS_STATE_KEY } from '@/constants/state-keys'
2222
import { ResponseHistoryItem } from '@shared/types/response-history-item'
2323
import { ApiManager } from '@/services/api-manager'
24-
import { parse_response } from './utils/clipboard-parser/clipboard-parser'
25-
import { t } from '@/i18n'
2624
import {
2725
preview_document_provider,
2826
CwcPreviewProvider
@@ -133,33 +131,6 @@ export const apply_chat_response_command = (params: {
133131
let saved_tab_groups: SavedTabGroups | undefined
134132

135133
try {
136-
const is_single_root_folder_workspace =
137-
vscode.workspace.workspaceFolders?.length == 1
138-
139-
const parsed_items = args?.files_with_content
140-
? []
141-
: parse_response({
142-
response: chat_response,
143-
is_single_root_folder_workspace
144-
})
145-
146-
const file_count = args?.files_with_content
147-
? args.files_with_content.length
148-
: parsed_items.filter(
149-
(item) =>
150-
item.type == 'diff' ||
151-
item.type == 'file' ||
152-
item.type == 'code-at-cursor'
153-
).length
154-
155-
if (file_count > 0) {
156-
params.panel_provider.send_message({
157-
command: 'SHOW_PROGRESS',
158-
title: t('command.apply-chat-response.progress.preparing-preview'),
159-
delay_visibility: file_count == 1
160-
})
161-
}
162-
163134
// Save current tab groups before entering preview
164135
saved_tab_groups = {
165136
editors: [],
@@ -195,10 +166,6 @@ export const apply_chat_response_command = (params: {
195166
params.workspace_provider
196167
)
197168

198-
params.panel_provider.send_message({
199-
command: 'HIDE_PROGRESS'
200-
})
201-
202169
if (preview_data) {
203170
let created_at_for_preview = args?.created_at
204171
if (!args?.files_with_content) {
@@ -410,9 +377,6 @@ export const apply_chat_response_command = (params: {
410377
dictionary.error_message.APPLYING_CHANGES_GENERIC_ERROR(err.message)
411378
)
412379
} finally {
413-
params.panel_provider.send_message({
414-
command: 'HIDE_PROGRESS'
415-
})
416380
in_progress = false
417381
if (before_checkpoint) {
418382
delete_checkpoint({

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,4 @@
11
export const apply_chat_response = {
2-
'command.apply-chat-response.progress.preparing-preview': {
3-
en: 'Preparing response preview...',
4-
pl: 'Przygotowywanie podglądu zmian...',
5-
'zh-cn': '正在准备响应预览...',
6-
ja: '応答プレビューを準備中...',
7-
'zh-tw': '正在準備回應預覽...',
8-
de: 'Antwortvorschau wird vorbereitet...',
9-
es: 'Preparando vista previa de la respuesta...',
10-
fr: "Préparation de l'aperçu de la réponse...",
11-
'pt-br': 'Preparando visualização da resposta...',
12-
ru: 'Подготовка предпросмотра ответа...',
13-
ko: '응답 미리보기 준비 중...',
14-
it: 'Preparazione anteprima risposta...',
15-
tr: 'Yanıt önizlemesi hazırlanıyor...',
16-
cs: 'Příprava náhledu odpovědi...',
17-
hu: 'Válasz előnézetének előkészítése...',
18-
bg: 'Подготовка на предварителен преглед на отговора...'
19-
},
202
'command.apply-chat-response.warning.no-code-blocks.title': {
213
en: 'No valid code blocks found',
224
pl: 'Nie znaleziono prawidłowych bloków z kodem',

0 commit comments

Comments
 (0)