From 91ed090b6103dd926c1fabf1202fdae2aebd42dd Mon Sep 17 00:00:00 2001 From: Tomas Grosup Date: Tue, 23 Sep 2025 19:53:48 +0200 Subject: [PATCH] Update copilot instructions with test-first approach --- .github/copilot-instructions.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 06688710203..a8a2e86df85 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -8,6 +8,8 @@ General guide: - Avoid external dependencies – the codebase is self-contained (do NOT add new NuGet packages) - Follow docs/coding-standards.md and docs/overview.md +**Test‑First** (bugs / regressions): Add/adjust a minimal test that fails on current main → confirm it fails → implement fix → run core command and ensure test passes → only then continue. + Plan your task: 1. Write a 1–2 sentence intent (bug fix / API add / language tweak). 2. Identify domain: Language (`LanguageFeature.fsi` touched) vs `src/FSharp.Core/` vs `vsintegration/` vs compiler/service.