public override void InsertCompletionText(CompletionListWindow window, ref KeyActions ka, Ide.Editor.Extension.KeyDescriptor descriptor)
 {
     base.InsertCompletionText(window, ref ka, descriptor);
     factory.Ext.Editor.GetContent <CSharpTextEditorIndentation> ().DoReSmartIndent();
     if (this.CompletionText.Contains("\n"))
     {
         factory.Ext.Editor.GetContent <CSharpTextEditorIndentation> ().DoReSmartIndent(factory.Ext.Editor.GetLine(factory.Ext.Editor.CaretLine).NextLine.Offset);
     }
 }
        public override async Task <KeyActions> InsertCompletionText(CompletionListWindow window, KeyActions ka, Ide.Editor.Extension.KeyDescriptor descriptor)
        {
            ka = await base.InsertCompletionText(window, ka, descriptor);

            factory.Ext.Editor.GetContent <CSharpTextEditorIndentation> ().DoReSmartIndent();
            if (this.CompletionText.Contains("\n"))
            {
                factory.Ext.Editor.GetContent <CSharpTextEditorIndentation> ().DoReSmartIndent(factory.Ext.Editor.GetLine(factory.Ext.Editor.CaretLine).NextLine.Offset);
            }
            return(ka);
        }