Skip to content

Commit 8d1c2fc

Browse files
committed
Rename intelligent and agentic file search instructions to intelligent and agentic search instructions
- rename agenticFileSearchInstructions to agenticSearchInstructions and intelligentFileSearchInstructions to intelligentSearchInstructions
1 parent ed2663f commit 8d1c2fc

16 files changed

Lines changed: 155 additions & 155 deletions

‎apps/editor/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,11 +1026,11 @@
10261026
"type": "string"
10271027
}
10281028
},
1029-
"codeWebChat.intelligentFileSearchInstructions": {
1029+
"codeWebChat.intelligentSearchInstructions": {
10301030
"type": "string",
10311031
"scope": "resource"
10321032
},
1033-
"codeWebChat.agenticFileSearchInstructions": {
1033+
"codeWebChat.agenticSearchInstructions": {
10341034
"type": "string",
10351035
"scope": "resource"
10361036
},

‎apps/editor/src/features/search-files/search-modes/perform-agent-search-mode/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
export const build_agent_prompt = (query: string) => {
1010
const config = vscode.workspace.getConfiguration('codeWebChat')
1111
const task_instructions =
12-
config.get<string>('agenticFileSearchInstructions') ||
12+
config.get<string>('agenticSearchInstructions') ||
1313
agentic_search_task_instructions
1414

1515
return `# Task\n\n${task_instructions}\n\n# Output formatting\n\n${ai_file_search_format_instructions}\n\n# Query\n\n${query}`

‎apps/editor/src/features/search-files/search-modes/perform-intelligent-search-mode.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ export const perform_intelligent_search_mode = async (params: {
240240

241241
const config = vscode.workspace.getConfiguration('codeWebChat')
242242
const base_instructions =
243-
config.get<string>('intelligentFileSearchInstructions') ||
243+
config.get<string>('intelligentSearchInstructions') ||
244244
intelligent_search_task_instructions
245245

246246
let display_folder_path = params.folder_path

‎apps/editor/src/features/search-files/utils/search-files-by-intelligent.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const search_files_by_intelligent = async (
2929

3030
const config = vscode.workspace.getConfiguration('codeWebChat')
3131
const base_instructions =
32-
config.get<string>('intelligentFileSearchInstructions') ||
32+
config.get<string>('intelligentSearchInstructions') ||
3333
intelligent_search_task_instructions
3434

3535
const part1 = `# Files\n\n${md_files}`

apps/editor/src/views/settings/backend/message-handlers/handle-get-agentic-file-search-instructions.ts renamed to apps/editor/src/views/settings/backend/message-handlers/handle-get-agentic-search-instructions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import * as vscode from 'vscode'
22
import { SettingsViewProvider } from '@/views/settings/backend/settings-view-provider'
33
import { agentic_search_task_instructions } from '@/constants/instructions'
44

5-
export const handle_get_agentic_file_search_instructions = async (
5+
export const handle_get_agentic_search_instructions = async (
66
provider: SettingsViewProvider
77
): Promise<void> => {
88
const config = vscode.workspace.getConfiguration('codeWebChat')
99
const instructions =
10-
config.get<string>('agenticFileSearchInstructions') ||
10+
config.get<string>('agenticSearchInstructions') ||
1111
agentic_search_task_instructions
1212
provider.postMessage({
13-
command: 'AGENTIC_FILE_SEARCH_INSTRUCTIONS',
13+
command: 'AGENTIC_SEARCH_INSTRUCTIONS',
1414
instructions
1515
})
1616
}

apps/editor/src/views/settings/backend/message-handlers/handle-get-intelligent-file-search-instructions.ts renamed to apps/editor/src/views/settings/backend/message-handlers/handle-get-intelligent-search-instructions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ import * as vscode from 'vscode'
22
import { SettingsViewProvider } from '@/views/settings/backend/settings-view-provider'
33
import { intelligent_search_task_instructions } from '@/constants/instructions'
44

5-
export const handle_get_intelligent_file_search_instructions = async (
5+
export const handle_get_intelligent_search_instructions = async (
66
provider: SettingsViewProvider
77
): Promise<void> => {
88
const config = vscode.workspace.getConfiguration('codeWebChat')
99
const instructions =
10-
config.get<string>('intelligentFileSearchInstructions') ||
10+
config.get<string>('intelligentSearchInstructions') ||
1111
intelligent_search_task_instructions
1212
provider.postMessage({
13-
command: 'INTELLIGENT_FILE_SEARCH_INSTRUCTIONS',
13+
command: 'INTELLIGENT_SEARCH_INSTRUCTIONS',
1414
instructions
1515
})
1616
}

apps/editor/src/views/settings/backend/message-handlers/handle-update-agentic-file-search-instructions.ts renamed to apps/editor/src/views/settings/backend/message-handlers/handle-update-agentic-search-instructions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import * as vscode from 'vscode'
22
import { agentic_search_task_instructions } from '@/constants/instructions'
3-
import { UpdateAgenticFileSearchInstructionsMessage } from '../../types/messages'
3+
import { UpdateAgenticSearchInstructionsMessage } from '../../types/messages'
44

5-
export const handle_update_agentic_file_search_instructions = async (
6-
message: UpdateAgenticFileSearchInstructionsMessage
5+
export const handle_update_agentic_search_instructions = async (
6+
message: UpdateAgenticSearchInstructionsMessage
77
): Promise<void> => {
88
await vscode.workspace
99
.getConfiguration('codeWebChat')
1010
.update(
11-
'agenticFileSearchInstructions',
11+
'agenticSearchInstructions',
1212
message.instructions == '' ||
1313
message.instructions == agentic_search_task_instructions
1414
? undefined

apps/editor/src/views/settings/backend/message-handlers/handle-update-intelligent-file-search-instructions.ts renamed to apps/editor/src/views/settings/backend/message-handlers/handle-update-intelligent-search-instructions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import * as vscode from 'vscode'
22
import { intelligent_search_task_instructions } from '@/constants/instructions'
3-
import { UpdateIntelligentFileSearchInstructionsMessage } from '../../types/messages'
3+
import { UpdateIntelligentSearchInstructionsMessage } from '../../types/messages'
44

5-
export const handle_update_intelligent_file_search_instructions = async (
6-
message: UpdateIntelligentFileSearchInstructionsMessage
5+
export const handle_update_intelligent_search_instructions = async (
6+
message: UpdateIntelligentSearchInstructionsMessage
77
): Promise<void> => {
88
await vscode.workspace
99
.getConfiguration('codeWebChat')
1010
.update(
11-
'intelligentFileSearchInstructions',
11+
'intelligentSearchInstructions',
1212
message.instructions == '' ||
1313
message.instructions == intelligent_search_task_instructions
1414
? undefined

‎apps/editor/src/views/settings/backend/message-handlers/index.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from './handle-get-intelligent-file-search-instructions'
2-
export * from './handle-update-intelligent-file-search-instructions'
3-
export * from './handle-get-agentic-file-search-instructions'
4-
export * from './handle-update-agentic-file-search-instructions'
1+
export * from './handle-get-intelligent-search-instructions'
2+
export * from './handle-update-intelligent-search-instructions'
3+
export * from './handle-get-agentic-search-instructions'
4+
export * from './handle-update-agentic-search-instructions'
55
export * from './handle-get-templates'
66
export * from './handle-update-templates'
77
export * from './handle-create-template'

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@ import {
5858
handle_pick_model_provider,
5959
handle_pick_api_model,
6060
handle_pick_api_reasoning_effort,
61-
handle_get_intelligent_file_search_instructions,
62-
handle_update_intelligent_file_search_instructions,
63-
handle_get_agentic_file_search_instructions,
64-
handle_update_agentic_file_search_instructions,
61+
handle_get_intelligent_search_instructions,
62+
handle_update_intelligent_search_instructions,
63+
handle_get_agentic_search_instructions,
64+
handle_update_agentic_search_instructions,
6565
handle_get_templates,
6666
handle_update_templates,
6767
handle_create_template,
@@ -173,21 +173,21 @@ export class SettingsViewProvider {
173173
} else if (message.command == 'GET_API_CONFIGURATIONS') {
174174
await handle_get_api_configurations(this)
175175
} else if (
176-
message.command == 'GET_INTELLIGENT_FILE_SEARCH_INSTRUCTIONS'
176+
message.command == 'GET_INTELLIGENT_SEARCH_INSTRUCTIONS'
177177
) {
178-
await handle_get_intelligent_file_search_instructions(this)
178+
await handle_get_intelligent_search_instructions(this)
179179
} else if (
180-
message.command == 'UPDATE_INTELLIGENT_FILE_SEARCH_INSTRUCTIONS'
180+
message.command == 'UPDATE_INTELLIGENT_SEARCH_INSTRUCTIONS'
181181
) {
182-
await handle_update_intelligent_file_search_instructions(message)
182+
await handle_update_intelligent_search_instructions(message)
183183
} else if (
184-
message.command == 'GET_AGENTIC_FILE_SEARCH_INSTRUCTIONS'
184+
message.command == 'GET_AGENTIC_SEARCH_INSTRUCTIONS'
185185
) {
186-
await handle_get_agentic_file_search_instructions(this)
186+
await handle_get_agentic_search_instructions(this)
187187
} else if (
188-
message.command == 'UPDATE_AGENTIC_FILE_SEARCH_INSTRUCTIONS'
188+
message.command == 'UPDATE_AGENTIC_SEARCH_INSTRUCTIONS'
189189
) {
190-
await handle_update_agentic_file_search_instructions(message)
190+
await handle_update_agentic_search_instructions(message)
191191
} else if (message.command == 'SET_DEFAULT_API_CONFIGURATION') {
192192
await handle_set_default_api_configuration(
193193
this,
@@ -330,8 +330,8 @@ export class SettingsViewProvider {
330330
void handle_get_model_providers(this)
331331
void handle_get_api_configurations(this)
332332
void handle_get_edit_files_system_instructions(this)
333-
void handle_get_intelligent_file_search_instructions(this)
334-
void handle_get_agentic_file_search_instructions(this)
333+
void handle_get_intelligent_search_instructions(this)
334+
void handle_get_agentic_search_instructions(this)
335335
void handle_get_commit_message_instructions(this)
336336
void handle_get_attach_ascii_tree_of_context(this)
337337
void handle_get_use_context_files_in_commit_message_prompt(this)

0 commit comments

Comments
 (0)