Fix incorrect substring (#1028)

The relative path should be based off the module name prefix, not the
package name.
This commit is contained in:
Daniel Chao
2025-04-14 16:22:46 -07:00
committed by GitHub
parent 38c44860d4
commit e98b42cffd

View File

@@ -414,7 +414,9 @@ private fun findTypesUsedBy(
enclosingPackage.name,
enclosingPackage.uri,
enclosingPackage.version,
enclosingType.moduleName.substring(enclosingPackage.name.length + 1).replace('.', '/'),
enclosingType.moduleName
.substring(enclosingPackage.moduleNamePrefix.length)
.replace('.', '/'),
PClassInfo.MODULE_CLASS_NAME,
)
)