Bug 34558 - Switching between Source code and design tab removes comments
Summary: Switching between Source code and design tab removes comments
Status: RESOLVED DUPLICATE of bug 23856
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: Android Designer ()
Version: 3.11 (C5)
Hardware: PC Windows
: --- normal
Target Milestone: 15.4
Assignee: Bugzilla
Depends on:
Reported: 2015-10-05 10:45 UTC by Przemysław Raciborski
Modified: 2017-07-10 14:29 UTC (History)
5 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 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 Przemysław Raciborski 2015-10-05 10:45:13 UTC
Switching to "Design" from "Source" tab removes all comments. It is probably caused by auto-xml tab inteding formatter (which is raised on tab switch).

Why do I even care about that? Designer doesn't work with new design libraries - workaround is testing parts of layouts (and commeting the rest).
Comment 2 Pierce Boggan [MSFT] 2017-06-20 20:44:28 UTC
Thanks for filing this @Przemyslaw! I was able to reproduce this issue using our latest 15.3 builds:

Reproduction Steps:

1. Open an Android XML layout in the designer.
2. Switch to "Source" view.
3. Add a comment.
4. Switch to "Designer" view. Wait for the view to render.
5. Switch back to the "Source" view. Note the comment is now gone.

Environment Information: https://gist.github.com/pierceboggan/f1ffd9e92b04565eb494d4138e1a034a
Comment 3 Pierce Boggan [MSFT] 2017-07-10 14:29:15 UTC

*** This bug has been marked as a duplicate of bug 34588 ***
Comment 4 Pierce Boggan [MSFT] 2017-07-10 14:29:54 UTC

*** This bug has been marked as a duplicate of bug 23856 ***