未验证 提交 a367474d 编写于 作者: J Jason Malinowski 提交者: GitHub

Merge pull request #30202 from jasonmalinowski/add-typescript-shim

Add a overload to AsynchronousViewTaggerProvider for TypeScript
......@@ -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.
先完成此消息的编辑!
想要评论请 注册