mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
fix lookup start marker invalidation when finishing completion with a char inside a live template
This commit is contained in:
@@ -1203,4 +1203,17 @@ class Foo {{
|
||||
assert myFixture.file.text.contains('FIS:')
|
||||
}
|
||||
|
||||
public void testSoutvTemplate() {
|
||||
((TemplateManagerImpl)TemplateManager.getInstance(getProject())).setTemplateTesting(true);
|
||||
try {
|
||||
myFixture.configureByText 'a.java', 'class Foo {{ <caret> }}'
|
||||
type 'soutv\tgetcl.'
|
||||
myFixture.checkResult '''class Foo {{
|
||||
System.out.println("getClass(). = " + getClass().<caret>); }}'''
|
||||
}
|
||||
finally {
|
||||
((TemplateManagerImpl)TemplateManager.getInstance(getProject())).setTemplateTesting(false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user