make testHugeAppendChainDoesNotCauseSOE not fail with SOE

GitOrigin-RevId: 491b7297b1e8a5dbdf61e789003afdd2e520ca5f
This commit is contained in:
Alexey Kudravtsev
2023-04-12 17:02:40 +02:00
committed by intellij-monorepo-bot
parent 3336edd65c
commit 0e7e076bca
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ public class DaemonRespondToChangesPerformanceTest extends DaemonAnalyzerTestCas
text.append(".toString();<caret>}");
configureByText(JavaFileType.INSTANCE, text.toString());
PlatformTestUtil.startPerformanceTest("highlighting deep call chain", 60_000, () -> {
PlatformTestUtil.startPerformanceTest(getName(), 100_000, () -> {
List<HighlightInfo> infos = highlightErrors();
assertEmpty(infos);
type("k");

View File

@@ -19,7 +19,7 @@ import com.intellij.openapi.util.registry.Registry
import com.intellij.patterns.PlatformPatterns
import com.intellij.psi.PsiComment
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiRecursiveElementVisitor
import com.intellij.psi.PsiRecursiveElementWalkingVisitor
import com.intellij.util.ProcessingContext
import com.intellij.util.SmartList
import com.intellij.util.asSafely
@@ -85,7 +85,7 @@ class LanguageWordInCommentCompletionContributor : CompletionContributor() {
class LanguageCommentFolding : FoldingBuilderEx() {
override fun buildFoldRegions(root: PsiElement, document: Document, quick: Boolean): Array<FoldingDescriptor> {
return SmartList<FoldingDescriptor>().also { result ->
root.accept(object : PsiRecursiveElementVisitor() {
root.accept(object : PsiRecursiveElementWalkingVisitor() {
override fun visitComment(comment: PsiComment) {
super.visitComment(comment)
if (getLanguageRange(comment) != null) {