Bug 26287 - "Toggle Line Comment(s)" in XML Editor affects selected lines plus one more line
Summary: "Toggle Line Comment(s)" in XML Editor affects selected lines plus one more line
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor ()
Version: 5.7
Hardware: PC Windows
: Normal normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-01-22 11:42 UTC by e0426716
Modified: 2015-07-08 11:41 UTC (History)
2 users (show)

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


Attachments
Screen shots of sample XAML snippet before and after applying the "Toggle Line Comment(s)" command (24.90 KB, image/png)
2015-01-22 11:42 UTC, e0426716
Details


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 e0426716 2015-01-22 11:42:41 UTC
Created attachment 9449 [details]
Screen shots of sample XAML snippet before and after applying the "Toggle Line Comment(s)" command

When selecting multiple lines in XML Editor and clicking "Toggle Line Comment(s)" command from context menu (or activating the same command using the Ctrl+Alt+C hot key), an XML comment is inserted that starts at the beginning of the first selected line, and reaches not only until the end of the last selected line but until the end of the line that follows the last selected one.
Comment 1 Mohit Kheterpal 2015-01-22 13:19:49 UTC
Hi, 

I have tried to reproduce your issue at my end but I am not able to reproduce it.
Please have a look in screencast : http://www.screencast.com/t/xXDNxjxv3pip
and let me know if I have missed some steps to reproduce this issue.

Could you please share your environment info so that I can reproduce this issue at our end.
You can get environment info via Xamarin Studio-> About Xamarin Studio.

Thanks
Comment 2 Mohit Kheterpal 2015-01-22 13:28:07 UTC
>>You can get environment info via Xamarin Studio-> About Xamarin Studio.

And on windows Help-> About
Comment 3 e0426716 2015-01-22 14:25:30 UTC
The issue occurs only when selecting full lines, like:
http://screencast-o-matic.com/watch/coV3q3e4Lf

I'm using version 5.7 (build 661) on a Windows 8.1 machine
Comment 4 Mohit Kheterpal 2015-01-23 06:55:48 UTC
Thanks for the screencast.

Now I am able to reproduce your issue on windows as well as on mac as shown in screencast : http://www.screencast.com/t/qQ4wruF7m87

IDE Logs : https://gist.github.com/Mohit-Kheterpal/7f2e6dbc18b1acbced30

Hence marking this issue as Confirmed.

Environment info :
=== Xamarin Studio ===

Version 5.7 (build 661)
Installation UUID: 45555ffd-f3f0-4f29-9543-e369d711ab7d
Runtime:
	Mono 3.12.0 ((detached/a813491)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 312000068

=== Xamarin.Android ===

Version: 4.20.0.28 (Starter Edition)
Android SDK: /Users/xamarin77/Desktop/android-sdk-macosx_êèéæâàçéè€ÿëïœ
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		5.0    (API level 21)
Java SDK: /usr
java version "1.7.0_65"
Java(TM) SE Runtime Environment (build 1.7.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

=== Apple Developer Tools ===

Xcode 5.1 (5084)
Build 5B130a

=== Xamarin.iOS ===

Version: 8.6.0.52 (Starter Edition)
Hash: 7c4c2c5
Branch: 
Build date: 2015-01-08 22:29:16-0500

=== Xamarin.Mac ===

Version: 1.12.0.4 (Starter Edition)

=== Build Information ===

Release ID: 507000661
Git revision: b70bab61da996da29045ea8ee8aed1a6faedbe78
Build date: 2015-01-05 16:31:31-05
Xamarin addins: 82f6c71490562d6cd125a09287f441902fdac3d7

=== Operating System ===

Mac OS X 10.9.5
Darwin Xamarin77s-Mac-mini.local 13.4.0 Darwin Kernel Version 13.4.0
    Sun Aug 17 19:50:11 PDT 2014
    root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
Comment 5 xamarin-release-manager 2015-07-08 11:41:10 UTC
Fixed in version 5.10.0.332 (master)