mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-19 17:58:39 +00:00
Update prompt instructions for chat contributions when running prompt files (#279847)
This commit is contained in:
@@ -365,7 +365,8 @@ class CreateRemoteAgentJobFromEditorAction {
|
||||
}
|
||||
const uri = model.uri;
|
||||
const attachedContext = [toPromptFileVariableEntry(uri, PromptFileVariableKind.PromptFile, undefined, false, [])];
|
||||
await commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${continuationTarget.type}`, { prompt: `Implement this.`, attachedContext });
|
||||
const prompt = `Follow instructions in [${basename(uri)}](${uri.toString()}).`;
|
||||
await commandService.executeCommand(`${NEW_CHAT_SESSION_ACTION_ID}.${continuationTarget.type}`, { prompt, attachedContext });
|
||||
} catch (e) {
|
||||
console.error('Error creating remote agent job from editor', e);
|
||||
throw e;
|
||||
|
||||
Reference in New Issue
Block a user