public BraceCompletionContext( ISmartIndentationService smartIndentationService, ITextBufferUndoManager undoManager, IEditorBraceCompletionSession editorSession) { _smartIndentationService = smartIndentationService; _undoManager = undoManager; _editorSession = editorSession; }
public BraceCompletionSession( ITextView textView, ITextBuffer subjectBuffer, SnapshotPoint openingPoint, char openingBrace, char closingBrace, ITextUndoHistory undoHistory, IEditorOperationsFactoryService editorOperationsFactoryService, IEditorBraceCompletionSession session) { this.TextView = textView; this.SubjectBuffer = subjectBuffer; this.OpeningBrace = openingBrace; this.ClosingBrace = closingBrace; this.ClosingPoint = SubjectBuffer.CurrentSnapshot.CreateTrackingPoint(openingPoint.Position, PointTrackingMode.Positive); _undoHistory = undoHistory; _editorOperations = editorOperationsFactoryService.GetEditorOperations(textView); _session = session; }