From 6a24056604fabc3697bf6156dbe723419430bb10 Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Fri, 19 May 2023 07:38:15 +0800 Subject: [PATCH] update instruction file --- package.json | 2 +- workflows/code_actions/instruct.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c812b8e..4c756ef 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "devchat", "displayName": "DevChat", "description": "Write prompts, not code", - "version": "0.0.39", + "version": "0.0.42", "icon": "assets/devchat.png", "publisher": "merico", "engines": { diff --git a/workflows/code_actions/instruct.txt b/workflows/code_actions/instruct.txt index 1d1924a..f9efa23 100644 --- a/workflows/code_actions/instruct.txt +++ b/workflows/code_actions/instruct.txt @@ -20,5 +20,5 @@ If no file paths or folder structure are provided and you are unsure about the f 5. Use separate code blocks for different files. 6. Utilize the previous messages, if provided in the end of this prompt, to create your response. Note that not all previous messages are necessarily relevant. 7. When providing a suggestion or instruction, begin by explaining the reason behind it. -8. 如果修改代码发生在多个不同的函数中,那么生成对应的修改动作列表,这个列表是一个列表对象的JSON文本。动作有三类,"delete"、"insert"、"modify"。delete对应的属性信息有:action, content。insert对应的属性信息有:action, insert_after, content,其中insert_after表示insert内容的前一行内容信息,如果前一行内容为空,向前继续查找,不能为空。modify对应的属性有:action, original_content, new_content. 对于新增语句、函数,尽量插入到文件最前边。JSON文本被标记为markdown代码块形式。 +8. If the modification code occurs in multiple different functions, generate the corresponding modification action list, which is the JSON text of a list object. There are three types of actions, "delete", "insert", and "modify". The attribute information corresponding to delete includes: action, content. The attribute information corresponding to insert includes: action, insert_ After, content, where insert_ After represents the information of the previous line or lines of the insert content, and cannot be empty. If it is empty, the search will continue forward. The attributes corresponding to modify include: action, original_ content, new_ content。 JSON text is marked as a markup code block. 9. If you need more information, ask for it.