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 Dan Chao
parent 6a1d56bb4d
commit 1d14a750a5

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,
)
)