@@ -129,9 +129,9 @@ public async Task CreateDiffAsync(int position, int length, string replacement)
129
129
// for the OpenDocumentViaProject and IsPeekOnAdornment
130
130
await ThreadHelper . JoinableTaskFactory . SwitchToMainThreadAsync ( ) ;
131
131
132
- Assumes . True (
133
- position > 0 && length > 0 && ( position + length ) <= _hostView . TextSnapshot . Length ,
134
- "InlineDiffAdornment.CreateDiff: Invalid position and length parameter" ) ;
132
+ Assumes . True ( position > 0 && length > 0 &&
133
+ ( position + length ) <= _hostView . TextSnapshot . Length ,
134
+ "InlineDiffAdornment.CreateDiff: Invalid position and length parameter" ) ;
135
135
Assumes . True (
136
136
MefProvider . Instance . TextDocumentFactoryService . TryGetTextDocument (
137
137
_hostView . TextDataModel . DocumentBuffer , out var textDocument ) ,
@@ -518,18 +518,15 @@ private void Adornment_OnAccepted()
518
518
}
519
519
catch ( Exception )
520
520
{
521
- } // COMException
521
+ } // COMException
522
522
523
523
DisposeDiff ( ) ;
524
524
}
525
525
526
526
/// <summary>
527
527
/// The proposed diff has been rejected by the user.
528
528
/// </summary>
529
- private void Adornment_OnRejected ( )
530
- {
531
- DisposeDiff ( ) ;
532
- }
529
+ private void Adornment_OnRejected ( ) { DisposeDiff ( ) ; }
533
530
534
531
private void Adornment_OnSizeChanged ( object sender , SizeChangedEventArgs e )
535
532
{
@@ -677,7 +674,7 @@ private bool IsPeekOnAdornment()
677
674
return true ;
678
675
}
679
676
680
- #pragma warning disable VSTHRD010 // Invoke single-threaded types on Main thread
677
+ #pragma warning disable VSTHRD010 // Invoke single-threaded types on Main thread
681
678
682
679
// By default, the adornments doesn't received the keyboard inputs it deserved, sadly.
683
680
// We have to "hook" the host view commands filter list and check if our adornments
@@ -757,7 +754,7 @@ public int Exec(ref Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pv
757
754
758
755
return _commandTarget . Exec ( ref pguidCmdGroup , nCmdID , nCmdexecopt , pvaIn , pvaOut ) ;
759
756
}
760
- #pragma warning restore VSTHRD010 // Invoke single-threaded types on Main thread
757
+ #pragma warning restore VSTHRD010 // Invoke single-threaded types on Main thread
761
758
}
762
759
763
760
[ Export ( typeof ( ILineTransformSourceProvider ) ) ]
0 commit comments