mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix typo; refresh to find the virtual file for diff
This commit is contained in:
@@ -88,7 +88,7 @@ public class DiffApplication implements ApplicationStarterEx {
|
||||
}
|
||||
|
||||
private static VirtualFile findFile(final String path1) throws FileNotFoundException {
|
||||
final VirtualFile vFile = LocalFileSystem.getInstance().findFileByIoFile(new File(path1));
|
||||
final VirtualFile vFile = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(new File(path1));
|
||||
if (vFile == null) {
|
||||
throw new FileNotFoundException(DiffBundle.message("cannot.file.file.error.message", path1));
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
diff.application.usage.parameters.and.description=Usage: idea diff <file1> <file2>
|
||||
cannot.file.file.error.message=Cannot file file: {0}
|
||||
cannot.file.file.error.message=Cannot find file: {0}
|
||||
save.merge.result.command.name=Merge
|
||||
compare.file.vs.file.dialog.title={0} vs {1}
|
||||
diff.content.editor.content.title=Editor
|
||||
|
||||
Reference in New Issue
Block a user