Refreshes an already loaded tab with contents of a new (or the same file) file by just replacing the document's text.
If the tab is not found a new tab is opened.
Note: File must already be open for this to work
public Task<TabItem> RefreshTabFromFile(string editorFile, bool maintainScrollPosition, bool noPreview, bool noSelectTab, bool noFocus, bool readOnly, bool isPreview)
selected tab item or null
File name to display int the tab
If possible preserve scroll position if refreshing
If true don't refresh the preview after updating the file
if true don't focus the editor
if true document can't be edited
Determines whether this tab is treated like a preview tab
See also:Class MainWindow
Comment or report problem with topic