KT-3575, KT-2297 Inserting pair for "${": reverting to use KotlinTypeHandler
(with disabling JetPairMatcher for this case)
This commit is contained in:
committed by
Nikolay Krasko
parent
aeb72922ce
commit
c70a49fab3
@@ -26,6 +26,18 @@ public class TypedHandlerTest extends LightCodeInsightTestCase {
|
||||
checkResultByText("val x = \"${}\"");
|
||||
}
|
||||
|
||||
public void testTypeStringTemplateStartWithCloseBraceAfter() throws Exception {
|
||||
configureFromFileText("a.kt", "fun foo() { \"$<caret>\" }");
|
||||
EditorTestUtil.performTypingAction(getEditor(), '{');
|
||||
checkResultByText("fun foo() { \"${}\" }");
|
||||
}
|
||||
|
||||
public void testTypeStringTemplateStartBeforeString() throws Exception {
|
||||
configureFromFileText("a.kt", "fun foo() { \"$<caret>something\" }");
|
||||
EditorTestUtil.performTypingAction(getEditor(), '{');
|
||||
checkResultByText("fun foo() { \"${}something\" }");
|
||||
}
|
||||
|
||||
public void testKT3575() throws Exception {
|
||||
configureFromFileText("a.kt", "val x = \"$<caret>]\"");
|
||||
EditorTestUtil.performTypingAction(getEditor(), '{');
|
||||
|
||||
Reference in New Issue
Block a user