Bug 17496 - Generate additional undo steps for formatting doesn't work on paste
Summary: Generate additional undo steps for formatting doesn't work on paste
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: Normal normal
Target Milestone: 4.2.4 (from master)
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2014-01-29 21:30 UTC by Mikayla Hutchinson [MSFT]
Modified: 2014-03-13 14:35 UTC (History)
2 users (show)

Tags:
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:
Status:
VERIFIED FIXED

Description Mikayla Hutchinson [MSFT] 2014-01-29 21:30:55 UTC
The "Generate additional undo steps for formatting" feature doesn't work on paste.
Comment 1 Mike Krüger 2014-01-30 02:10:05 UTC
works for me in master.
(We even have a unit test testing that)

-> I need a use case.
Comment 2 Mike Krüger 2014-02-04 02:53:36 UTC
works for me  / no response
Comment 3 Mikayla Hutchinson [MSFT] 2014-02-05 14:18:45 UTC
It's the indenter.

For any line, change indentation. Paste something onto the line. The indenter will reindent the line and undo will undo the paste, not just the reindent.


TBH I also question why the indenter runs when I paste something into the *middle* of the line that does not span into a new line? Surely the indenter should only need to reindent newly-pasted lines.
Comment 4 Mike Krüger 2014-02-06 01:56:57 UTC
I need to rerun the indenter in that case because the line indentation can change - depending on the code pasted.

/fixed
Comment 5 Udham Singh 2014-03-13 14:35:35 UTC
I have verified this issue by following the steps below:

1. Change the indentation of the line.
2. Paste something onto line, Indenter will reindent the line.
3. Do undo, it will undo the paste as well as reindent the line.

Screencast: http://screencast.com/t/HlRPFB43ruRo


Environment Info:

=== Xamarin Studio ===

Version 4.2.4 (build 32)
Installation UUID: 011d70a5-dede-428b-ab04-ef451c2e539d
Runtime:
 Mono 3.2.7 ((no/40f92d5)
 GTK+ 2.24.23 (Raleigh theme)

 Package version: 302070000

=== Apple Developer Tools ===

Xcode 4.6.2 (2067.2)
Build 4H1003

=== Xamarin.iOS ===

Version: 7.0.7.2 (Business Edition)
Hash: fb4bc7b
Branch: 
Build date: 2014-17-02 17:43:23-0500

=== Xamarin.Mac ===

Xamarin.Mac: Not Installed

=== Xamarin.Android ===

Version: 4.12.1 (Business Edition)
Android SDK: /Users/MM/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)
  3.2   (API level 13)
  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)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

=== Build Information ===

Release ID: 402040032
Git revision: a160c35dac9ab9fd32eeadaa171216316d5a5133
Build date: 2014-03-12 13:55:08-04
Xamarin addins: a779416ceabd54981ce812771a4061c942e8b872

=== Operating System ===

Mac OS X 10.9.2
Darwin MacMini.local 13.1.0 Darwin Kernel Version 13.1.0
    Thu Jan 16 19:40:37 PST 2014
    root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64