提交 f78a51aa 编写于 作者: J Jason Malinowski

Add a overload to AsynchronousViewTaggerProvider for TypeScript

The addition of IThreadingContext to this type's constructor broke
TypeScript, which they already have a build for that deals with the
change. However it requires a simultaneous insertion which is proving
difficult to achieve. Adding this overload (which is admittedly a total
hack) allows TypeScript to continue functioning even with Roslyn's
change.
上级 54d9c3fb
......@@ -21,6 +21,16 @@ internal abstract class AsynchronousViewTaggerProvider<TTag> : AbstractAsynchron
{
}
// TypeScript still is moving to calling the new constructor that takes an IThreadingContext. Until then, we can fetch one from another service of ours that
// already does. When TypeScript moves calling the new constructor, this should be deleted.
[Obsolete("This overload exists for TypeScript compatibility only and should not be used in new code.")]
protected AsynchronousViewTaggerProvider(
IAsynchronousOperationListener asyncListener,
IForegroundNotificationService notificationService)
: this(((Implementation.ForegroundNotification.ForegroundNotificationService)notificationService).ThreadingContext, asyncListener, notificationService)
{
}
public IAccurateTagger<T> CreateTagger<T>(ITextView textView, ITextBuffer subjectBuffer) where T : ITag
{
if (textView == null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册