@@ -27,15 +27,15 @@ public partial class CodeViewUserControl : ICodeViewUserControl
2727 public IDisposable ? CaretPositionChangedSubscription { get ; set ; }
2828 public IDisposable ? TextContentChangedSubscription { get ; set ; }
2929 public IDisposable ? UpdateWhileTypingSubscription { get ; set ; }
30- public IDisposable ? FileActionOccuredSubscription { get ; set ; }
30+ public IDisposable ? FileActionOccurredSubscription { get ; set ; }
3131
3232 public CodeDocumentViewModel CodeDocumentViewModel { get ; set ; }
3333
3434 public CodeViewUserControl ( ColumnDefinition ? column = null )
3535 {
3636 InitializeComponent ( ) ;
3737
38- // Setup viewmodel as datacontext
38+ // Setup view model as data context
3939 CodeDocumentViewModel = new CodeDocumentViewModel ( ) ;
4040 DataContext = CodeDocumentViewModel ;
4141
@@ -54,9 +54,9 @@ public async Task RegisterDocumentEvents()
5454 var textBuffer2 = documentView ? . TextView ? . TextBuffer as ITextBuffer2 ;
5555
5656 // Subscribe to Document save events
57- if ( document != null && FileActionOccuredSubscription == null )
57+ if ( document != null && FileActionOccurredSubscription == null )
5858 {
59- FileActionOccuredSubscription = Observable
59+ FileActionOccurredSubscription = Observable
6060 . FromEventPattern < TextDocumentFileActionEventArgs > (
6161 h => document . FileActionOccurred += h ,
6262 h => document . FileActionOccurred -= h )
@@ -185,9 +185,10 @@ public void FilterBookmarks()
185185 public void ToggleAll ( bool isExpanded , List < CodeItem > ? root = null )
186186 => OutliningHelper . ToggleAll ( root ?? CodeDocumentViewModel . CodeDocument , isExpanded ) ;
187187
188- public void UpdateDocument ( string filePath = "" )
188+ /// <inheritdoc/>
189+ public void UpdateDocument ( string filePath = "" , bool force = false )
189190 => ThreadHelper . JoinableTaskFactory . RunAsync ( async ( ) => await DocumentHelper . UpdateDocument ( this , CodeDocumentViewModel ,
190- _column , null , filePath ) ) ;
191+ _column , null , filePath , force ) ) ;
191192
192193 public void HighlightCurrentItem ( CaretPositionChangedEventArgs e , Color backgroundBrushColor )
193194 => HighlightHelper . HighlightCurrentItem (
0 commit comments