do not quick evaluate lambda expressions

This commit is contained in:
Egor.Ushakov
2016-01-13 15:00:48 +03:00
parent 0e1499cf98
commit ec2e976f7b
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2014 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -124,7 +124,9 @@ public class JavaEditorTextProviderImpl implements EditorTextProvider {
}
}
}
else if (parent instanceof PsiExpression && !(parent instanceof PsiNewExpression)) {
else if (parent instanceof PsiExpression &&
!(parent instanceof PsiNewExpression) &&
!(parent instanceof PsiLambdaExpression)) {
if (allowMethodCalls || !DebuggerUtils.hasSideEffects(parent)) {
expression = parent;
}