Exemple #1
0
        public override Task <TextChange?> GetTextChangeAsync(Document document, CompletionItem selectedItem, char?ch, CancellationToken cancellationToken)
        {
            var insertionText = SymbolCompletionItem.GetInsertionText(selectedItem);

            return(Task.FromResult <TextChange?>(new TextChange(selectedItem.Span, insertionText)));
        }
 private string GetInsertionText(SymbolCompletionItem symbolItem, char ch)
 {
     return GetInsertionText(symbolItem.Symbols[0], symbolItem.Context, ch);
 }
Exemple #3
0
 protected override Task <CompletionDescription> GetDescriptionWorkerAsync(Document document, CompletionItem item, CancellationToken cancellationToken)
 => SymbolCompletionItem.GetDescriptionAsync(item, document, cancellationToken);