Bug 39428 - [iOS] Override of protocol method shows 2 completions
Summary: [iOS] Override of protocol method shows 2 completions
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2016-03-07 20:05 UTC by Alex Corrado [MSFT]
Modified: 2016-03-08 10:27 UTC (History)
1 user (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 FIXED

Description Alex Corrado [MSFT] 2016-03-07 20:05:58 UTC
When in a class where the base class implements a protocol, typing "override " shows 2 completions for protocol methods that the base class implements: one for overriding the base implementation, and one for creating a new (non-override) method with the [Export] attribute.

Expected: We should probably only show the override. If we do want to show both (I don't recommend it), we should show some differentiation between the options in the code completion drop down.

Screencast: http://screencast.com/t/IT3oS4cs (trying to override `DidEnterBackground` in a subclass of a subclass of UIApplicationDelegate)
Comment 1 xamarin-release-manager 2016-03-08 10:27:07 UTC
Fixed in version 6.1.0.200 (master)

Author: Mike Kr??ger
Commit: f85d36f11637c487fbf59c7bf7bc7e778d15fdd6 (mono/monodevelop)
Comment 2 xamarin-release-manager 2016-03-08 10:27:42 UTC
Fixed in version 6.0.0.4756 (cycle7)

Author: Mike Kr??ger
Commit: feaab04f87b749116f8c995798b81a45178ad947 (mono/monodevelop)