diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-03-27 16:53:07 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-03-27 16:58:12 +0300 |
commit | 90f9f7622057b998f802a58bb4c6aa0589a0a93e (patch) | |
tree | 144257293e8394dc348d0ce3618aa42cac458aae /main/src/addins/MonoDevelop.DocFood | |
parent | 1e64a1765415f30e633371ace1195c770eef64d7 (diff) |
[Ide] Asynchronize OnTheFly formatting.
Diffstat (limited to 'main/src/addins/MonoDevelop.DocFood')
-rw-r--r-- | main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs index 7ccb5b775d..b73b13086c 100644 --- a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs +++ b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs @@ -24,6 +24,7 @@ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. using System; +using System.Threading.Tasks;
using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.Text; @@ -48,7 +49,7 @@ namespace MonoDevelop.DocFood return doc.Substring (trimStart).TrimEnd ('\n', '\r'); } - public override bool KeyPress (KeyDescriptor descriptor) + public override Task<bool> KeyPress (KeyDescriptor descriptor) { if (descriptor.KeyChar != '/') return base.KeyPress (descriptor); @@ -103,7 +104,7 @@ namespace MonoDevelop.DocFood if (SelectSummary (offset, insertedLength, documentation) == false) Editor.CaretOffset = offset + insertedLength; } - return false; + return Task.FromResult (false); } /// <summary> |