Bug 44862 Remove task tag quick fix shouldn't automatically delete the full line
In the following code the quick fix to remove the todo deletes the full line rather than just the end of line comment. if (!display.isDisposed()) ;//TODO display.beep(); }
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/TaskMarkerProposal.java
}
		int end;
		if (buffer.getChar(commentStart) == '/' && buffer.getChar(commentStart + 1) == '/') {
			end= commentEnd;
		} else {
			int endLine= buffer.getLineOfOffset(commentEnd - 1);
			if (endLine + 1 == buffer.getNumberOfLines()) {
				TextRegion endRegion= buffer.getLineInformation(endLine);
				end= endRegion.getOffset() + endRegion.getLength();
			} else {
				TextRegion endRegion= buffer.getLineInformation(endLine + 1);
				end= endRegion.getOffset();
			}					
		}
		int posEnd= fLocation.getOffset() + fLocation.getLength();
		if (hasContent(buffer.getContent(posEnd, end - posEnd))) {
			return null;
		}
		return new Position(start, end - start);
	}
	
	private IScanner getSurroundingComment(TextBuffer buffer) {
		try {
			IScanner scanner= ToolFactory.createScanner(true, false, false, false);
			scanner.setSource(buffer.getContent().toCharArray());
			scanner.resetTo(0, buffer.getLength() - 1);
				
			int start= fLocation.getOffset();
			int end= start + fLocation.getLength();