Skip to content

Commit

Permalink
1.3.20 BUG修复
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonKnightOfBreeze committed Sep 6, 2024
1 parent 889bef9 commit 8987456
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ object CwtConfigCompletionManager {
context.parameters = parameters
context.completionIds = mutableSetOf<String>().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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 8987456

Please sign in to comment.