Bug 9140 - Code completion is not working in compilator directives regions
Summary: Code completion is not working in compilator directives regions
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: 3.0.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-12-27 08:48 UTC by Maxim
Modified: 2013-02-14 10:40 UTC (History)
2 users (show)

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:

Description Maxim 2012-12-27 08:48:30 UTC
Code completion is not working when you code in compilator directives regions.

        CellStreamMessage csm = null;
        public override float GetHeightForRow (UITableView tableView, NSIndexPath indexPath)
			var dataPos = GetIndexPathRow (NSIndexPath.FromRowSection(indexPath.Row, 0));
			var post = posts[dataPos];

			if (csm == null) {
				csm = new CellStreamMessage(CellId, tableView.Frame.Width);
			var result = csm.CalcCellHeight(post);
			return result;
			return GetCell (tableView, indexPath).Frame.Height;

In region #if NEW_CELLS ... #else it is not working.
Comment 1 Maxim 2012-12-27 08:48:54 UTC
I defined directive below:
#define NEW_CELLS
Comment 2 Mike Krüger 2012-12-30 23:28:21 UTC
Should work in the next major version.