Example #1
0
 public RoslynCompletionData(Document document, CompletionItem item, char?completionChar, SnippetManager snippetManager)
 {
     _document        = document;
     _item            = item;
     _completionChar  = completionChar;
     _snippetManager  = snippetManager;
     Text             = item.DisplayTextPrefix + item.DisplayText + item.DisplayTextSuffix;
     Content          = Text;
     _glyph           = item.GetGlyph();
     _descriptionTask = new Lazy <Task>(RetrieveDescription);
 }
 public RoslynCompletionData(Document document, CompletionItem item, char?completionChar, SnippetManager snippetManager)
 {
     _document       = document;
     _item           = item;
     _completionChar = completionChar;
     _snippetManager = snippetManager;
     Text            = item.DisplayText;
     Content         = item.DisplayText;
     _glyph          = item.GetGlyph();
     Image           = _glyph.ToImageSource();
 }
        public RoslynCompletionData(Document document, CompletionItem item, char?completionChar, SnippetManager snippetManager)
        {
            _document        = document;
            _item            = item;
            _completionChar  = completionChar;
            _snippetManager  = snippetManager;
            Text             = item.DisplayText;
            Content          = item.DisplayText;
            _glyph           = item.GetGlyph();
            _descriptionTask = new Lazy <Task>(RetrieveDescription);
#if AVALONIA
            Drawing = _glyph.ToImageSource();
#else
            Image = _glyph.ToImageSource();
#endif
        }