mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
node: add a test for PackageJsonCompletionContributor in dumb mode (IDEA-CR-59487)
GitOrigin-RevId: 9c69cc3c80d2bff927fdad65a7005f754f71e067
This commit is contained in:
committed by
intellij-monorepo-bot
parent
7c5b831d25
commit
693734e469
@@ -247,6 +247,17 @@ public class DumbServiceImpl extends DumbService implements Disposable, Modifica
|
||||
}
|
||||
}
|
||||
|
||||
@TestOnly
|
||||
public void runInDumbMode(@NotNull Runnable runnable) {
|
||||
setDumb(true);
|
||||
try {
|
||||
runnable.run();
|
||||
}
|
||||
finally {
|
||||
setDumb(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runWhenSmart(@Async.Schedule @NotNull Runnable runnable) {
|
||||
StartupManager.getInstance(myProject).runWhenProjectIsInitialized(() -> unsafeRunWhenSmart(runnable));
|
||||
|
||||
Reference in New Issue
Block a user