mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
reference from render_to_response to template file
This commit is contained in:
+7
-1
@@ -134,7 +134,13 @@ public class LightTempDirTestFixtureImpl extends BaseFixture implements TempDirT
|
||||
}
|
||||
|
||||
public VirtualFile getFile(@NonNls String path) {
|
||||
return getSourceRoot().findFileByRelativePath(path);
|
||||
final VirtualFile sourceRoot = getSourceRoot();
|
||||
final VirtualFile result = sourceRoot.findFileByRelativePath(path);
|
||||
if (result == null) {
|
||||
sourceRoot.refresh(false, true);
|
||||
return sourceRoot.findFileByRelativePath(path);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user