From e3682befe0b20cc89c7c88783ee550647464a593 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Mon, 21 Apr 2014 15:02:59 +0400 Subject: [PATCH] Fixed some tests --- .../jet/plugin/quickfix/CreateFunctionFromUsageFix.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/idea/src/org/jetbrains/jet/plugin/quickfix/CreateFunctionFromUsageFix.java b/idea/src/org/jetbrains/jet/plugin/quickfix/CreateFunctionFromUsageFix.java index 714017e7593..8f7e6f2094a 100644 --- a/idea/src/org/jetbrains/jet/plugin/quickfix/CreateFunctionFromUsageFix.java +++ b/idea/src/org/jetbrains/jet/plugin/quickfix/CreateFunctionFromUsageFix.java @@ -788,6 +788,9 @@ public class CreateFunctionFromUsageFix extends CreateFromUsageFixBase { // fix up the template to include the expression for the type parameter list variables.add(new Variable(TYPE_PARAMETER_LIST_VARIABLE_NAME, expression, expression, false, true)); + // TODO: Disabled shortening names because it causes some tests fail. Refactor code to use automatic reference shortening + templateImpl.setToShortenLongNames(false); + // run the template TemplateManager.getInstance(project).startTemplate(containingFileEditor, templateImpl, new TemplateEditingAdapter() { @Override