Merge pull request #92 from covespace/update_instruction

update instruction file
This commit is contained in:
boob.yang 2023-05-19 07:41:26 +08:00 committed by GitHub
commit db8fb8b35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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": {

View File

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