예제 #1
0
        public VsComplectionItem CreateVsCompletionItem(IAsyncCompletionSource asyncCompletionSource)
        {
            var completionItem = new VsComplectionItem(_text, asyncCompletionSource, _imageElement);

            completionItem.Properties.AddProperty(typeof(ICompletionItem), this);
            return(completionItem);
        }
예제 #2
0
 public MatchResult(
     RoslynCompletionItem roslynCompletionItem, VSCompletionItem vsCompletionItem,
     bool matchedFilterText, PatternMatch?patternMatch, int index,
     ImmutableArray <Span> highlightedSpans)
 {
     RoslynCompletionItem        = roslynCompletionItem;
     MatchedFilterText           = matchedFilterText;
     PatternMatch                = patternMatch;
     VSCompletionItem            = vsCompletionItem;
     _indexInOriginalSortedOrder = index;
     HighlightedSpans            = highlightedSpans;
 }
예제 #3
0
 public static Task <object> GetDescriptionAsync(this VsComplectionItem vsCompletion, IIntellisenseDescriptionBuilder descriptionBuilder, CancellationToken cancellationToken) =>
 vsCompletion.GetRadCompletionItem().GetDescriptionAsync(descriptionBuilder, cancellationToken);
예제 #4
0
 public static ICompletionItem GetRadCompletionItem(this VsComplectionItem vsCompletion) =>
 vsCompletion.Properties.GetProperty <ICompletionItem>(typeof(ICompletionItem));