Fix incorrect substring (#1028)
The relative path should be based off the module name prefix, not the package name.
This commit is contained in:
1 parent
38c44860d4
commit
e98b42cffd
1 file changed
+3
-1
@@ -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,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user