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 }