File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
idea/idea-analysis/src/org/jetbrains/kotlin/idea/framework Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -57,12 +57,12 @@ object JsLibraryStdDetectionUtil {
57
57
for (root in classesRoots) {
58
58
if (root.fileSystem.protocol != = StandardFileSystems .JAR_PROTOCOL ) continue
59
59
60
- val jar = VfsUtilCore .getVirtualFileForJar(root) ? : continue
61
- val name = jar.name
60
+ val name = root.url.substringBefore(" !/" ).substringAfterLast(' /' )
62
61
if (name == PathUtil .JS_LIB_JAR_NAME || name == PathUtil .JS_LIB_10_JAR_NAME ||
63
62
PathUtil .KOTLIN_STDLIB_JS_JAR_PATTERN .matcher(name).matches() ||
64
63
PathUtil .KOTLIN_JS_LIBRARY_JAR_PATTERN .matcher(name).matches()) {
65
64
65
+ val jar = VfsUtilCore .getVirtualFileForJar(root) ? : continue
66
66
var isJSStdLib = jar.getUserData(IS_JS_LIBRARY_STD_LIB )
67
67
if (isJSStdLib == null ) {
68
68
isJSStdLib = LibraryUtils .isKotlinJavascriptStdLibrary(File (jar.path))
You can’t perform that action at this time.
0 commit comments