IJ-MR-135481 [lombok] IDEA-352727 Support incomplete mode

- fix compilation problem

GitOrigin-RevId: 994dad582ccc0f65b8fb976610667764004df147
This commit is contained in:
Mikhail Pyltsin
2024-06-10 13:37:42 +02:00
committed by intellij-monorepo-bot
parent f3b00ccc67
commit 1f47d54306
2 changed files with 2 additions and 2 deletions

View File

@@ -141,7 +141,7 @@ public abstract class AbstractLombokParsingTestCase extends AbstractLombokLightC
}
else if (myRunnerType == ModeRunnerType.INCOMPLETE) {
IncompleteDependenciesService service = getProject().getService(IncompleteDependenciesService.class);
try (var ignored = asAutoCloseable(WriteAction.compute(() -> service.enterIncompleteState()))) {
try (var ignored = asAutoCloseable(WriteAction.compute(() -> service.enterIncompleteState(this)))) {
compareFiles(lowercaseFirstLetter);
}
}

View File

@@ -20,7 +20,7 @@ public class IncompleteModeHighlightTest extends AbstractLombokHighlightsTest {
private void doIncompleteTest() {
IncompleteDependenciesService service = getProject().getService(IncompleteDependenciesService.class);
try (var ignored = asAutoCloseable(WriteAction.compute(() -> service.enterIncompleteState()))) {
try (var ignored = asAutoCloseable(WriteAction.compute(() -> service.enterIncompleteState(this)))) {
String name = getTestName(false);
myFixture.configureByFile(name + ".java");
myFixture.testHighlighting(true, true, true);