Open isc-tleavitt opened 5 months ago
Might also make sense to put this in Composite:
Method OnAfterSave(InternalName As %String, Object As %RegisteredObject = {$$$NULLOREF}) As %Status
{
new $namespace
set InternalName = ..CorrectInternalNames(InternalName)
set tExtension = ..GetPrimaryExtension(InternalName)
if '$isobject(tExtension) {
quit ##super(.InternalName, .Object)
}
// Code required to run CodeTidy's OnAfterSave function
set classes = ..GetSubExtensionClasses()
set pointer = 0
while $listnext(classes, pointer, class) {
set extension = ..GetSubExtension(class)
if $isobject(extension) {
do $method(extension, "OnAfterSave", .InternalName, .Object)
merge ..Modified = extension.Modified
}
}
merge tExtension.Modified = ..Modified
quit $method(tExtension, "OnAfterSave", .InternalName, .Object)
}
In
pkg.isc.codetidy.Utils:Run
need to add: