Microsoft.R.Editor.Document.REditorDocument.BeginMassiveChange C# (CSharp) Method

BeginMassiveChange() public method

Tells document that massive change to text buffer is about to commence. Document will then stop tracking text buffer changes, will suspend R parser anc classifier and remove all projections. AST is no longer valid after this call.
public BeginMassiveChange ( ) : void
return void
        public void BeginMassiveChange() {
            if (_inMassiveChange == 0) {
                _editorTree.TreeUpdateTask.Suspend();

                RClassifier colorizer = ServiceManager.GetService<RClassifier>(TextBuffer);
                colorizer?.Suspend();

                MassiveChangeBegun?.Invoke(this, EventArgs.Empty);
            }

            _inMassiveChange++;
        }