mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-06 02:47:56 +00:00
Focus textbox and add newlines after adding to context (#8877)
This commit is contained in:
parent
49fde41616
commit
0d3817505e
1 changed files with 12 additions and 2 deletions
|
|
@ -677,7 +677,12 @@ export class ClineProvider
|
|||
const prompt = supportPrompt.create(promptType, params, customSupportPrompts)
|
||||
|
||||
if (command === "addToContext") {
|
||||
await visibleProvider.postMessageToWebview({ type: "invoke", invoke: "setChatBoxMessage", text: prompt })
|
||||
await visibleProvider.postMessageToWebview({
|
||||
type: "invoke",
|
||||
invoke: "setChatBoxMessage",
|
||||
text: `${prompt}\n\n`,
|
||||
})
|
||||
await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" })
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -701,7 +706,12 @@ export class ClineProvider
|
|||
const prompt = supportPrompt.create(promptType, params, customSupportPrompts)
|
||||
|
||||
if (command === "terminalAddToContext") {
|
||||
await visibleProvider.postMessageToWebview({ type: "invoke", invoke: "setChatBoxMessage", text: prompt })
|
||||
await visibleProvider.postMessageToWebview({
|
||||
type: "invoke",
|
||||
invoke: "setChatBoxMessage",
|
||||
text: `${prompt}\n\n`,
|
||||
})
|
||||
await visibleProvider.postMessageToWebview({ type: "action", action: "focusInput" })
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue