Bug 13746 - Not useful completion for async delegates
Summary: Not useful completion for async delegates
Status: RESOLVED ANSWERED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-08-05 07:40 UTC by Marek Safar
Modified: 2015-05-18 03:33 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Marek Safar 2013-08-05 07:40:50 UTC
using System;
using System.Net.Http;
using System.Threading.Tasks;

class Test
{
	public static void Main()
	{
		var c = new HttpClient ();
		Task.Run (async () => { // Do completion on async keyword
			for (int i = 0; i < 50; ++i) {
				var a = await c.GetAsync ("http://www.google.com");
				Console.WriteLine (a);
			}
		}).Wait ();	

		return;
	}
}
Comment 1 Mike Krüger 2013-08-09 08:17:39 UTC
fixed
Comment 2 Udham Singh 2014-04-01 13:50:31 UTC
I have checked this issue on following builds:

Mac OS X 10.9.2
Xamarin Studio : 4.2.4 (build 266)
Xamarin.iOS : 7.2.2.14 (Enterprise Edition)
Xamarin.Android : 4.12.1 (Enterprise Edition)


Screencast: http://screencast.com/t/OCZVDpbzoIc

As per my observation, I have noticed that completion for "async" keyword is not working properly, as it works fine for "async delegate()", it puts starting and end parenthesis while in case of "async" it does not put. Hence, I am reopening this issue.
Comment 3 Mike Krüger 2015-05-18 03:33:26 UTC
Works for me (tested with 6.0)