Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ protected void createExternalFile(String relativePath, String contents) {
protected IFile createFile(String path, byte[] content) throws CoreException {
IFile file = super.createFile(path, content);
if(!isIndexDisabledForTest()) {
/*
* Its possible that the RefreshJob picks up the file delta and requests indexing,
* instead of the main thread (in which tests run). Make sure we don't miss that index request in the wait below.
*/
waitForAutoRefresh();
JavaModelManager.getIndexManager().waitForIndex(false, null);
}
return file;
Expand Down
Loading