diff options
author | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-04-06 20:30:44 +0300 |
---|---|---|
committer | Marius Ungureanu <marius.ungureanu@xamarin.com> | 2016-04-06 20:32:54 +0300 |
commit | eeeb6c31f3185362dd09179c873365eb9130cf70 (patch) | |
tree | 12d3ffe8308d0f932ca70b2f01d9e5fe90389abf /main/src/addins/MonoDevelop.DocFood | |
parent | 732b7aa279b320cc93747da46607de87afd71b1d (diff) |
Revert "[Ide] Asynchronize OnTheFly formatting."
This reverts commit 90f9f7622057b998f802a58bb4c6aa0589a0a93e.
This introduced an issue with the completion widget, as it is not fully
async safe.
Diffstat (limited to 'main/src/addins/MonoDevelop.DocFood')
-rw-r--r-- | main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs index b73b13086c..7ccb5b775d 100644 --- a/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs +++ b/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs @@ -24,7 +24,6 @@ // 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; @@ -49,7 +48,7 @@ namespace MonoDevelop.DocFood return doc.Substring (trimStart).TrimEnd ('\n', '\r'); } - public override Task<bool> KeyPress (KeyDescriptor descriptor) + public override bool KeyPress (KeyDescriptor descriptor) { if (descriptor.KeyChar != '/') return base.KeyPress (descriptor); @@ -104,7 +103,7 @@ namespace MonoDevelop.DocFood if (SelectSummary (offset, insertedLength, documentation) == false) Editor.CaretOffset = offset + insertedLength; } - return Task.FromResult (false); + return false; } /// <summary> |