updates learnings (#287749)

This commit is contained in:
Henning Dieterichs
2026-01-14 12:38:21 +01:00
committed by GitHub
parent f5d4eb2260
commit 92e1dfc80f
2 changed files with 6 additions and 7 deletions

View File

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