mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
updates learnings (#287749)
This commit is contained in:
committed by
GitHub
parent
f5d4eb2260
commit
92e1dfc80f
3
.github/copilot-instructions.md
vendored
3
.github/copilot-instructions.md
vendored
@@ -137,3 +137,6 @@ function f(x: number, y: string): void { }
|
||||
- When adding file watching, prefer correlated file watchers (via fileService.createWatcher) to shared ones.
|
||||
- When adding tooltips to UI elements, prefer the use of IHoverService service.
|
||||
- Do not duplicate code. Always look for existing utility functions, helpers, or patterns in the codebase before implementing new functionality. Reuse and extend existing code whenever possible.
|
||||
|
||||
## Learnings
|
||||
- Minimize the amount of assertions in tests. Prefer one snapshot-style `assert.deepStrictEqual` over multiple precise assertions, as they are much more difficult to understand and to update.
|
||||
|
||||
Reference in New Issue
Block a user