Skip to content

Instantly share code, notes, and snippets.

@controlflow
Created September 22, 2019 21:52
Show Gist options
  • Save controlflow/7502b575f58389cc6f38e13d8d49f3dd to your computer and use it in GitHub Desktop.
Save controlflow/7502b575f58389cc6f38e13d8d49f3dd to your computer and use it in GitHub Desktop.
foreach (var sourceFile in transaction.GetProperties(typeof(SymbolCache)).OfType<Pair<IPsiSourceFile, bool>>())
{
SynchUpdateCacheForFile(sourceFile: sourceFile.First, isRollback: true, underTransaction: false, fireEvent: sourceFile.Second);
}
foreach (var property in transaction.GetProperties(typeof(SymbolCache)))
{
if (property is Pair (var sourceFile, var fireEvent))
SynchUpdateCacheForFile(sourceFile: sourceFile, isRollback: true, underTransaction: false, fireEvent);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment