private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e) { if (e.FileActionType == FileActionTypes.ContentSavedToDisk) { Task.Run(() => { DirectivesCache.ProcessFile(e.FilePath); }); } }
private void DocumentSaved(object sender, TextDocumentFileActionEventArgs e) { if (e.FileActionType == FileActionTypes.ContentSavedToDisk) { ThreadHelper.JoinableTaskFactory.Run(async() => { await TaskScheduler.Default; DirectivesCache.ProcessFile(e.FilePath); }); } }