Skip to content

Commit 2dacd22

Browse files
committed
Rename refactoring_instruction to intelligent_update_instructions for consistency across files
1 parent 7bbb355 commit 2dacd22

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/vscode/src/constants/instructions.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ export const chat_code_completion_instructions = (
1212
column + 1
1313
}. Always refer to the symbol "<missing_text>" as "cursor position" and "replacement" as "completion".`
1414

15-
export const refactoring_instruction =
15+
export const intelligent_update_instructions =
1616
"User requested refactor of a file. Please show me the full code of the updated <file>, without explanations or any other text. I have a disability which means I can't type and need to be able to copy and paste the full code."

‎packages/vscode/src/utils/intelligent-update-utils.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { LAST_SELECTED_INTELLIGENT_UPDATE_CONFIG_ID_STATE_KEY } from '../constan
1010
import { Logger } from '@shared/utils/logger'
1111
import { make_api_request } from './make-api-request'
1212
import { cleanup_api_response } from './cleanup-api-response'
13-
import { refactoring_instruction } from '../constants/instructions'
13+
import { intelligent_update_instructions } from '../constants/instructions'
1414
import { dictionary } from '@shared/constants/dictionary'
1515
import { apply_reasoning_effort } from './apply-reasoning-effort'
1616

@@ -213,7 +213,7 @@ export const process_file = async (params: {
213213
data: { file_path: params.file_path }
214214
})
215215
const file_content_block = `<file>\n<![CDATA[\n${params.file_content}\n]]>\n</file>`
216-
const content = `${file_content_block}\n${refactoring_instruction}\n<![CDATA[\n${params.instruction}\n]]>`
216+
const content = `${file_content_block}\n${intelligent_update_instructions}\n<![CDATA[\n${params.instruction}\n]]>`
217217

218218
const messages = [
219219
{

0 commit comments

Comments
 (0)