提交 3623d1aa 编写于 作者: D David Barbet

Merge in comment selection service changes.

上级 86fff4bc
......@@ -200,22 +200,12 @@ private static void Format(ICommentSelectionService service, ITextSnapshot snaps
private static ICommentSelectionService GetService(Document document)
{
// First, try to get the new service for comment selection.
var service = document.GetLanguageService<ICommentSelectionService>();
if (service != null)
{
return service;
}
// If we couldn't find one, fallback to the legacy service.
#pragma warning disable CS0618 // Type or member is obsolete
var legacyService = document.GetLanguageService<ICommentUncommentService>();
#pragma warning restore CS0618 // Type or member is obsolete
if (legacyService != null)
{
return new CommentSelectionServiceProxy(legacyService);
}
return null;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册