mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
instructions - make it clear to reuse code and not duplicate (#286131)
This commit is contained in:
1
.github/copilot-instructions.md
vendored
1
.github/copilot-instructions.md
vendored
@@ -136,3 +136,4 @@ function f(x: number, y: string): void { }
|
||||
- Do not use `any` or `unknown` as the type for variables, parameters, or return values unless absolutely necessary. If they need type annotations, they should have proper types or interfaces defined.
|
||||
- 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.
|
||||
|
||||
Reference in New Issue
Block a user