From 3cd2591a218d52623ffa296558a5a8ff5239ed41 Mon Sep 17 00:00:00 2001 From: aparajit-pratap Date: Wed, 2 Sep 2020 09:17:23 -0400 Subject: [PATCH] Cherry-pick #11080 (#11087) * [DYN-2988] Add custom fixer for instance.None (#11022) * add custom fixer for instance.None * cleanup * cleanup * add post build step to copy custom fixers to output directory * add unit test * review comments * edit fixer code comments * turn on anti-aliasing (#11068) * update base images for image comparison tests after anti-aliasing fix * Guard against parser errors detected while migrating python code (#11080) * guard against parser errors detected while migrating python code * transfer Error state between side-by-side and inline diff views * revert whitespace in unchanged file * disable accept button for error state * update migration message * address review comments --- .../Controls/BaseDiffViewer.xaml | 36 ++++++++++++++-- .../Differ/DiffStateToVisibilityConverter.cs | 26 ++++++++++++ .../Differ/IDiffViewViewModel.cs | 9 +++- .../Differ/InLineViewModel.cs | 20 +++++++-- .../Differ/SideBySideViewModel.cs | 16 +++++++- .../PythonMigrationAssistantViewModel.cs | 41 ++++++++++++------- .../Properties/Resources.Designer.cs | 18 ++++++++ .../Properties/Resources.en-US.resx | 6 +++ .../Properties/Resources.resx | 6 +++ .../PythonMigrationViewExtension.csproj | 1 + 10 files changed, 155 insertions(+), 24 deletions(-) create mode 100644 src/PythonMigrationViewExtension/Differ/DiffStateToVisibilityConverter.cs diff --git a/src/PythonMigrationViewExtension/Controls/BaseDiffViewer.xaml b/src/PythonMigrationViewExtension/Controls/BaseDiffViewer.xaml index 3a37d5bd299..04083ae95a6 100644 --- a/src/PythonMigrationViewExtension/Controls/BaseDiffViewer.xaml +++ b/src/PythonMigrationViewExtension/Controls/BaseDiffViewer.xaml @@ -23,6 +23,7 @@ + @@ -32,14 +33,14 @@ @@ -108,6 +134,7 @@ HorizontalAlignment="Left" Grid.Column="0">