mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
updates learnings (#287749)
This commit is contained in:
committed by
GitHub
parent
f5d4eb2260
commit
92e1dfc80f
10
.github/instructions/learnings.instructions.md
vendored
10
.github/instructions/learnings.instructions.md
vendored
@@ -8,14 +8,13 @@ It is a meta-instruction file.
|
||||
|
||||
Structure of learnings:
|
||||
* Each instruction file has a "Learnings" section.
|
||||
* Each learning has a counter that indicates how often that learning was useful (initially 1).
|
||||
* Each learning has a 1-4 sentences description of the learning.
|
||||
|
||||
Example:
|
||||
```markdown
|
||||
## Learnings
|
||||
* Prefer `const` over `let` whenever possible (1)
|
||||
* Avoid `any` type (3)
|
||||
* Prefer `const` over `let` whenever possible
|
||||
* Avoid `any` type
|
||||
```
|
||||
|
||||
When the user tells you "learn!", you should:
|
||||
@@ -23,10 +22,7 @@ When the user tells you "learn!", you should:
|
||||
* identify the problem that you created
|
||||
* identify why it was a problem
|
||||
* identify how you were told to fix it/how the user fixed it
|
||||
* reflect over it, maybe it can be generalized? Avoid too specific learnings.
|
||||
* create a learning (1-4 sentences) from that
|
||||
* Write this out to the user and reflect over these sentences
|
||||
* then, add the reflected learning to the "Learnings" section of the most appropriate instruction file
|
||||
|
||||
|
||||
Important: Whenever a learning was really useful, increase the counter!!
|
||||
When a learning was not useful and just caused more problems, decrease the counter.
|
||||
|
||||
Reference in New Issue
Block a user