Files
cpptripleslash/TripleSlashCompletionSourceProvider.cs
2017-04-22 07:40:41 -07:00

25 lines
853 B
C#

namespace CppTripleSlash
{
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Utilities;
using System.ComponentModel.Composition;
[Export(typeof(ICompletionSourceProvider))]
[ContentType("code")]
[Name("xml doc comment completion")]
public class TripleSlashCompletionSourceProvider : ICompletionSourceProvider
{
[Import]
internal ITextStructureNavigatorSelectorService NavigatorService { get; set; }
[Import]
internal IGlyphService GlyphService { get; set; }
public ICompletionSource TryCreateCompletionSource(ITextBuffer textBuffer)
{
return new TripleSlashCompletionSource(this, textBuffer);
}
}
}