예제 #1
0
 public RoslynCompletionData(CompletionItem item, SnippetManager snippetManager)
 {
     _item           = item;
     _snippetManager = snippetManager;
     Text            = item.DisplayText;
     Content         = item.DisplayText;
     if (item.Glyph != null)
     {
         Image = item.Glyph.Value.ToImageSource();
     }
 }
예제 #2
0
 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();
     if (_glyph != null)
     {
         Image = _glyph.Value.ToImageSource();
     }
 }