diff options
author | Vsevolod Kukol <sevoku@xamarin.com> | 2016-05-23 15:13:46 +0300 |
---|---|---|
committer | Vsevolod Kukol <sevoku@xamarin.com> | 2016-05-23 15:13:46 +0300 |
commit | 3d429dc136049b292ec531922d12554162806ce7 (patch) | |
tree | c5a945623d384bca1e90cf76334c1da077a5c3a2 /main/src/addins/MonoDevelop.DocFood | |
parent | 09e9871fdac14cae9e86a2f8c264206c7f5589c5 (diff) | |
parent | f019727ae2405f91cf399aa7e960eb1b102fce78 (diff) |
Merge remote-tracking branch 'origin/master' into main-menu-redesign
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> |