internal CompoundAction(ISource src, string description) { this.opened = false; this.src = src; this.action = (IVsCompoundAction)src.GetTextLines(); if (this.action == null) { throw new ArgumentNullException("(IVsCompoundAction)src.GetTextLines()"); } NativeMethods.ThrowOnFailure(action.OpenCompoundAction(description)); this.opened = true; this.colorizer = src.GetColorizer(); if (colorizer != null) colorizer.Suspend(); // batch colorization }