private void InitializeActiveCompletionSession() { PerformanceUtility.MeasurePerformanceUntilRender(PerformanceEvent.XamlIntellisenseCreateMenu); this.activeSessionStartPoint = this.textView.TextBuffer.CurrentSnapshot.CreateTrackingPoint(this.textView.Caret.Position.Index, PointTrackingMode.Negative); this.activeSession.Committed += new EventHandler(this.ActiveSession_Committed); this.activeSession.Dismissed += new EventHandler(this.ActiveSession_Dismissed); this.activeSession.Presenter.ReleaseKeyboard(); if (this.activeSession.Completions.Count == 1) { CompletionSelectionOptions selectionOptions = CompletionSelectionOptions.Unique; if (this.activeSession.Completions[0].ApplicableTo.GetSpan(this.textView.TextBuffer.CurrentSnapshot).Length == 0) { this.activeSession.SetSelectionStatus(this.activeSession.Completions[0], selectionOptions | CompletionSelectionOptions.Selected); } else { this.CompletionSessionMatchTrackingWorker(); } } else { this.CompletionSessionMatchTrackingWorker(); } }
public bool TryGetBestMatch(ICompletionSession session, out ICompletion bestMatchingCompletion, out CompletionSelectionOptions selectionOptions) { throw new NotImplementedException(); }