Skip to content

Commit f296c1b

Browse files
committed
Remove the obsolete switch to edit files method and its invocation
- remove 'switch to edit files' feature
1 parent 8cc232b commit f296c1b

2 files changed

Lines changed: 0 additions & 28 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ export const process_response = async (params: {
202202
title: t('command.apply-response.relevant-files.success'),
203203
type: 'success'
204204
})
205-
206-
await params.prompt_view_provider.switch_to_edit_files()
207205
}
208206

209207
return null

‎apps/editor/src/views/prompt/backend/prompt-view-provider.ts‎

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -288,32 +288,6 @@ export class PromptViewProvider implements vscode.WebviewViewProvider {
288288
this.open_editors_provider.set_no_context_mode(is_no_context)
289289
}
290290

291-
public async switch_to_edit_files() {
292-
if (this.mode == MODE.WEB) {
293-
this.web_prompt_type = 'edit-files'
294-
await this.extension_context.workspaceState.update(
295-
WEB_MODE_STATE_KEY,
296-
'edit-files'
297-
)
298-
this.send_message({
299-
command: 'WEB_PROMPT_TYPE',
300-
prompt_type: 'edit-files'
301-
})
302-
} else {
303-
this.api_prompt_type = 'edit-files'
304-
await this.extension_context.workspaceState.update(
305-
API_MODE_STATE_KEY,
306-
'edit-files'
307-
)
308-
this.send_message({
309-
command: 'API_PROMPT_TYPE',
310-
prompt_type: 'edit-files'
311-
})
312-
}
313-
this.update_providers_shrink_mode()
314-
this.update_providers_context_state()
315-
}
316-
317291
private _send_send_with_shift_enter() {
318292
const config = vscode.workspace.getConfiguration('codeWebChat')
319293
const enabled = config.get<boolean>('sendWithShiftEnter', false)

0 commit comments

Comments
 (0)