|
|
@@ -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
|
|
|
}
|
|
|
|