From 31e3c13ea9ec8e0a47fc9848bc3204312bacd710 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Tue, 25 Mar 2025 11:30:37 -0600 Subject: [PATCH] Add `.github/copilot-instructions.md` to paths loaded for rules (#27442) Release Notes: - N/A --- crates/assistant2/src/thread.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/assistant2/src/thread.rs b/crates/assistant2/src/thread.rs index 4076b9a435..5803da85bc 100644 --- a/crates/assistant2/src/thread.rs +++ b/crates/assistant2/src/thread.rs @@ -698,11 +698,12 @@ impl Thread { // Note that Cline supports `.clinerules` being a directory, but that is not currently // supported. This doesn't seem to occur often in GitHub repositories. - const RULES_FILE_NAMES: [&'static str; 5] = [ + const RULES_FILE_NAMES: [&'static str; 6] = [ ".rules", ".cursorrules", ".windsurfrules", ".clinerules", + ".github/copilot-instructions.md", "CLAUDE.md", ]; let selected_rules_file = RULES_FILE_NAMES