未验证 提交 dc4b38cb 编写于 作者: S Sam Harwell 提交者: GitHub

Merge pull request #34126 from kzu/patch-3

Hide obsolete member from the IDE for improved usability
......@@ -2,6 +2,7 @@
using System;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Diagnostics;
using Microsoft.CodeAnalysis.Text;
......@@ -169,6 +170,7 @@ public sealed class CompletionItem : IComparable<CompletionItem>
/// <param name="rules">The rules that declare how this item should behave.</param>
/// <returns></returns>
[Obsolete("Use the Create overload that does not take a span", error: true)]
[EditorBrowsable(EditorBrowsableState.Never)]
public static CompletionItem Create(
string displayText,
string filterText,
......@@ -245,6 +247,7 @@ public sealed class CompletionItem : IComparable<CompletionItem>
/// Creates a copy of this <see cref="CompletionItem"/> with the <see cref="Span"/> property changed.
/// </summary>
[Obsolete("Not used anymore. CompletionList.Span is used to control the span used for filtering.", error: true)]
[EditorBrowsable(EditorBrowsableState.Never)]
public CompletionItem WithSpan(TextSpan span)
{
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册