Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358412

Summary: Double "toggle comment" command does not uncomment the selected lines.
Product: z_Archived Reporter: Ilina Stefanova <ilina.s>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: silviya, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Ilina Stefanova CLA 2011-09-21 09:33:38 EDT
Steps:

Select some lines in a php file on the editor and try to toggle comment them (press "apple key + /"). Repeat this action.
// function row_color($i)
// {
// 	$bgcolor1 = "white";
// 	$bgcolor2 = "yellow";

// 	if ( ($i % 2) == 0 ) {
// 		return $bgcolor1;
// 	} else {
// 		return $bgcolor2;
// 	}
// }



Expected Result:
The text should be uncomment:

function row_color($i)
{
	$bgcolor1 = "white";
	$bgcolor2 = "yellow";

	if ( ($i % 2) == 0 ) {
		return $bgcolor1;
	} else {
		return $bgcolor2;
	}
}

Actual Result:
The comment becomes double:

//// function row_color($i)
//// {
//// 	$bgcolor1 = "white";
//// 	$bgcolor2 = "yellow";

//// 	if ( ($i % 2) == 0 ) {
//// 		return $bgcolor1;
//// 	} else {
//// 		return $bgcolor2;
//// 	}
//// }
Comment 1 Zhongwei Zhao CLA 2011-10-11 01:52:42 EDT
fixed in head
Comment 2 Sylvia Tancheva CLA 2011-10-18 09:24:45 EDT
Verified.
Ilina Stefanova