Files
UnrealEngineUWP/Engine/Source/Programs/UnrealDocTool/MarkdownMode/AutoCompletion/AutoCompletionSourceProvider.cs
2014-03-14 14:13:41 -04:00

29 lines
892 B
C#

// Copyright 1998-2014 Epic Games, Inc. All Rights Reserved.
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Language.Intellisense;
using Microsoft.VisualStudio.Text.Operations;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Utilities;
namespace MarkdownMode.AutoCompletion
{
[Export(typeof(ICompletionSourceProvider))]
[ContentType("markdown")]
[Name("MarkdownMode autocompletion")]
public class AutoCompletionSourceProvider : ICompletionSourceProvider
{
[Import]
public ITextStructureNavigatorSelectorService TextNavigatorService { get; private set; }
[Import]
public IGlyphService GlyphService { get; private set; }
public ICompletionSource TryCreateCompletionSource(ITextBuffer textBuffer)
{
return new AutoCompletionSource(textBuffer, this);
}
}
}