fix typo; refresh to find the virtual file for diff

This commit is contained in:
Dmitry Jemerov
2011-04-12 15:51:02 +02:00
parent 5b0daf6a60
commit 73690b3a66
2 changed files with 2 additions and 2 deletions
@@ -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