json schema: fix adding local user-defined json schema file

Regression after 65db4eb7d0af6df4ddce48e96db8f55c5b0c2d78

GitOrigin-RevId: 7648601976418f96289f343a6af0d1855f6bbd79
This commit is contained in:
Sergey Simonchik
2020-07-08 17:19:54 +03:00
committed by intellij-monorepo-bot
parent f8c4ea5eb4
commit d868c60c3b

View File

@@ -150,7 +150,7 @@ public class JsonSchemaInfo {
return text;
}
String relativePath = FileUtil.getRelativePath(FileUtil.toSystemIndependentName(file.toString()), project.getBasePath(), '/');
String relativePath = FileUtil.getRelativePath(project.getBasePath(), FileUtil.toSystemIndependentName(file.toString()), '/');
if (relativePath != null) {
return relativePath;
}