public void PostBackspace() { if (_postSession != null) { _guardedOperations.CallExtensionPoint(() => { _postSession.PostBackspace(); }); _postSession = null; } }
internal void CheckBackspace(IBraceCompletionSession session) { session.TextView.TryMoveCaretToAndEnsureVisible(session.OpeningPoint.GetPoint(session.SubjectBuffer.CurrentSnapshot).Add(1)); session.PreBackspace(out var handled); if (!handled) { session.PostBackspace(); } Assert.Null(session.OpeningPoint); Assert.Null(session.ClosingPoint); }