From 8987456a85638b31c5ab68241b07b3e77b176e99 Mon Sep 17 00:00:00 2001 From: DragonKnightOfBreeze Date: Fri, 6 Sep 2024 18:15:39 +0800 Subject: [PATCH] =?UTF-8?q?1.3.20=20BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lang/codeInsight/completion/CwtConfigCompletionManager.kt | 2 +- .../icu/windea/pls/lang/documentation/CwtDocumentationTarget.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/icu/windea/pls/lang/codeInsight/completion/CwtConfigCompletionManager.kt b/src/main/kotlin/icu/windea/pls/lang/codeInsight/completion/CwtConfigCompletionManager.kt index 51632849e..282090d3f 100644 --- a/src/main/kotlin/icu/windea/pls/lang/codeInsight/completion/CwtConfigCompletionManager.kt +++ b/src/main/kotlin/icu/windea/pls/lang/codeInsight/completion/CwtConfigCompletionManager.kt @@ -51,7 +51,7 @@ object CwtConfigCompletionManager { context.parameters = parameters context.completionIds = mutableSetOf().synced() - val configGroup = CwtConfigManager.getContainingConfigGroup(parameters.originalFile) ?: return false + val configGroup = CwtConfigManager.getContainingConfigGroup(parameters.originalFile, forRepo = true) ?: return false context.configGroup = configGroup val quoted = contextElement.text.isLeftQuoted() diff --git a/src/main/kotlin/icu/windea/pls/lang/documentation/CwtDocumentationTarget.kt b/src/main/kotlin/icu/windea/pls/lang/documentation/CwtDocumentationTarget.kt index c08338d38..40887bf0a 100644 --- a/src/main/kotlin/icu/windea/pls/lang/documentation/CwtDocumentationTarget.kt +++ b/src/main/kotlin/icu/windea/pls/lang/documentation/CwtDocumentationTarget.kt @@ -399,7 +399,7 @@ private fun getConfigGroup(element: PsiElement, originalElement: PsiElement?, pr if(gameType != null) return getConfigGroup(project, gameType) } if(element.language == CwtLanguage) { - return CwtConfigManager.getContainingConfigGroup(element) + return CwtConfigManager.getContainingConfigGroup(element, forRepo = true) } return null }