Skip to content

Commit 820a380

Browse files
committed
Rename current_instruction to current_instructions across prompt view handlers
1 parent c916be8 commit 820a380

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎apps/editor/src/views/prompt/backend/message-handlers/handle-at-sign-quick-pick/handle-at-sign-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ export const handle_at_sign_quick_pick = async (
393393
return
394394
}
395395

396-
const current_text = prompt_view_provider.current_instruction
396+
const current_text = prompt_view_provider.current_instructions
397397

398398
const is_after_at_sign = current_text
399399
.slice(0, prompt_view_provider.caret_position)

‎apps/editor/src/views/prompt/backend/message-handlers/handle-autofill.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const handle_autofill = async (params: {
3333
return
3434
}
3535

36-
const current_instructions = params.prompt_view_provider.current_instruction
36+
const current_instructions = params.prompt_view_provider.current_instructions
3737

3838
const resolution = await resolve_web_configuration({
3939
prompt_view_provider: params.prompt_view_provider,

‎apps/editor/src/views/prompt/backend/message-handlers/handle-hash-sign-quick-pick/handle-hash-sign-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const handle_hash_sign_quick_pick = async (
179179
return
180180
}
181181

182-
const current_text = prompt_view_provider.current_instruction
182+
const current_text = prompt_view_provider.current_instructions
183183

184184
const is_after_hash_sign = current_text
185185
.slice(0, prompt_view_provider.caret_position)

‎apps/editor/src/views/prompt/backend/message-handlers/handle-preview-web-configuration.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const handle_preview_web_configuration = async (
1818
): Promise<void> => {
1919
await vscode.workspace.saveAll()
2020

21-
const current_instructions = prompt_view_provider.current_instruction
21+
const current_instructions = prompt_view_provider.current_instructions
2222

2323
const collected = await FilesCollector.collect_files({
2424
workspace_provider: prompt_view_provider.workspace_provider,

‎apps/editor/src/views/prompt/backend/message-handlers/handle-template-quick-pick.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ export const handle_template_quick_pick = async (
270270
is_entering_variables = false
271271
is_template_accepted = true
272272

273-
const current_text = prompt_view_provider.current_instruction
273+
const current_text = prompt_view_provider.current_instructions
274274
const is_after_slash = current_text
275275
.slice(0, prompt_view_provider.caret_position)
276276
.endsWith('/')

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export class PromptViewProvider implements vscode.WebviewViewProvider {
196196
return this.edit_files_instructions
197197
}
198198

199-
public get current_instruction(): string {
199+
public get current_instructions(): string {
200200
const state = this.active_instructions_state
201201
return state.instructions[state.active_index] || ''
202202
}
@@ -915,7 +915,7 @@ export class PromptViewProvider implements vscode.WebviewViewProvider {
915915

916916
public add_text_at_cursor_position(text: string, chars_to_remove_before = 0) {
917917
const target_state = this.active_instructions_state
918-
const current_instructions = this.current_instruction
918+
const current_instructions = this.current_instructions
919919

920920
const before_caret = current_instructions.slice(
921921
0,

0 commit comments

Comments
 (0)