mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
likely fix for IDEA-67503
This commit is contained in:
@@ -27,6 +27,7 @@ import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.project.ProjectManager;
|
||||
import com.intellij.openapi.roots.ProjectRootManager;
|
||||
import com.intellij.openapi.ui.Messages;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.vfs.LocalFileSystem;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.platform.PlatformProjectOpenProcessor;
|
||||
@@ -155,6 +156,9 @@ public class CommandLineProcessor {
|
||||
}
|
||||
else {
|
||||
if (line != -1) {
|
||||
if (StringUtil.isQuotedString(arg)) {
|
||||
arg = StringUtil.stripQuotesAroundValue(arg);
|
||||
}
|
||||
final VirtualFile virtualFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(arg);
|
||||
if (virtualFile != null) {
|
||||
lastOpenedProject = doOpenFile(virtualFile, line);
|
||||
|
||||
Reference in New Issue
Block a user