Skip to content

Commit

Permalink
explicit editor.waitForReconciler
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 31, 2025
1 parent 23662c9 commit ec36fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class XtendHoverInEditorTest extends AbstractXtendUITestCase {
waitForBuild(null)

val editor = openEditor(fileBar)
editor.waitForReconciler
val loggings = LoggingTester.captureLogging(Level.ERROR, AbstractBatchTypeResolver) [
val info = (hoverer as ITextHoverExtension2).getHoverInfo2(editor.internalSourceViewer as ITextViewer, new Region(19,1)) as XtextBrowserInformationControlInput
assertTrue(info.html,info.html.contains("Hello Foo"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ public void testHoverOfReferencedElementWithAnnotation() {
final IFile fileBar = this.helper.createFile("Bar.xtend", contentBar);
this._syncUtil.waitForBuild(null);
final XtextEditor editor = this.helper.openEditor(fileBar);
this._syncUtil.waitForReconciler(editor);
final Runnable _function = () -> {
ISourceViewer _internalSourceViewer = editor.getInternalSourceViewer();
Region _region = new Region(19, 1);
Expand Down

0 comments on commit ec36fa2

Please sign in to comment.