From 191de10926b63387530acfcfc97399e6fee0f02a Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Thu, 13 Nov 2025 00:55:20 +0100 Subject: [PATCH] refactor: Remove common project rules from code completion --- llmcore/RulesLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llmcore/RulesLoader.cpp b/llmcore/RulesLoader.cpp index 82500f4..abb2100 100644 --- a/llmcore/RulesLoader.cpp +++ b/llmcore/RulesLoader.cpp @@ -37,16 +37,16 @@ QString RulesLoader::loadRules(const QString &projectPath, RulesContext context) QString combined; QString basePath = projectPath + "/.qodeassist/rules"; - combined += loadAllMarkdownFiles(basePath + "/common"); - switch (context) { case RulesContext::Completions: combined += loadAllMarkdownFiles(basePath + "/completions"); break; case RulesContext::Chat: + combined += loadAllMarkdownFiles(basePath + "/common"); combined += loadAllMarkdownFiles(basePath + "/chat"); break; case RulesContext::QuickRefactor: + combined += loadAllMarkdownFiles(basePath + "/common"); combined += loadAllMarkdownFiles(basePath + "/quickrefactor"); break; }