CallableBuilder: fix exception
#EA-134361 Fixed
This commit is contained in:
+1
@@ -940,6 +940,7 @@ class CallableBuilder(val config: CallableBuilderConfiguration) {
|
|||||||
// it.
|
// it.
|
||||||
val expression = setupTypeParameterListTemplate(builder, declaration)
|
val expression = setupTypeParameterListTemplate(builder, declaration)
|
||||||
|
|
||||||
|
PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(containingFileEditor.document)
|
||||||
// the template built by TemplateBuilderImpl is ordered by element position, but we want types to be first, so hack it
|
// the template built by TemplateBuilderImpl is ordered by element position, but we want types to be first, so hack it
|
||||||
val templateImpl = builder.buildInlineTemplate() as TemplateImpl
|
val templateImpl = builder.buildInlineTemplate() as TemplateImpl
|
||||||
val variables = templateImpl.variables!!
|
val variables = templateImpl.variables!!
|
||||||
|
|||||||
Reference in New Issue
Block a user