private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e) { if (e.FileActionType == FileActionTypes.ContentSavedToDisk) { StylesheetUpdated?.Invoke(this, new StylesheetUpdatedEventArgs(e.FilePath)); } }
private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e) { if (e.FileActionType == FileActionTypes.ContentLoadedFromDisk) { return; } string fileName = Path.GetFileName(e.FilePath); if (fileName == MarkdownEditorPackage.Options.CustomStylesheetFileName) { StylesheetUpdated?.Invoke(this, EventArgs.Empty); } }