提交 23d85fb8 编写于 作者: C CyrusNajmabadi

Remove ArgumentName.

上级 8a06974b
......@@ -298,11 +298,6 @@ protected int CompareMatches(PatternMatch match1, PatternMatch match2, Completio
return 0;
}
protected bool IsArgumentName(CompletionItem item)
{
return item.Tags.Contains(CompletionTags.ArgumentName);
}
private static bool TextTypedSoFarMatchesItem(CompletionItem item, char ch, string textTypedSoFar)
{
var textTypedWithChar = textTypedSoFar + ch;
......
......@@ -24,7 +24,6 @@ internal static class CommonCompletionItem
bool preselect = false,
bool showsWarningIcon = false,
bool shouldFormatOnCommit = false,
bool isArgumentName = false,
ImmutableDictionary<string, string> properties = null,
ImmutableArray<string> tags = default(ImmutableArray<string>),
CompletionItemRules rules = null)
......@@ -42,11 +41,6 @@ internal static class CommonCompletionItem
tags = tags.Add(CompletionTags.Warning);
}
if (isArgumentName)
{
tags = tags.Add(CompletionTags.ArgumentName);
}
properties = properties ?? ImmutableDictionary<string, string>.Empty;
if (!description.IsDefault && description.Length > 0)
{
......
......@@ -24,7 +24,6 @@ public static class CompletionTags
public const string Assembly = nameof(Assembly);
// language elements
public const string ArgumentName = nameof(ArgumentName);
public const string Class = nameof(Class);
public const string Constant = nameof(Constant);
public const string Delegate = nameof(Delegate);
......
......@@ -59,7 +59,6 @@ internal static class SymbolCompletionItem
sortText: sortText ?? symbols[0].Name,
glyph: glyph ?? symbols[0].GetGlyph(),
preselect: preselect,
isArgumentName: isArgumentName,
showsWarningIcon: supportedPlatforms != null,
properties: props,
tags: tags,
......
......@@ -112,7 +112,6 @@ Microsoft.CodeAnalysis.TextTags
abstract Microsoft.CodeAnalysis.Completion.CompletionProvider.ProvideCompletionsAsync(Microsoft.CodeAnalysis.Completion.CompletionContext context) -> System.Threading.Tasks.Task
abstract Microsoft.CodeAnalysis.Completion.CompletionService.GetCompletionsAsync(Microsoft.CodeAnalysis.Document document, int caretPosition, Microsoft.CodeAnalysis.Completion.CompletionTrigger trigger = default(Microsoft.CodeAnalysis.Completion.CompletionTrigger), System.Collections.Immutable.ImmutableHashSet<string> roles = null, Microsoft.CodeAnalysis.Options.OptionSet options = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) -> System.Threading.Tasks.Task<Microsoft.CodeAnalysis.Completion.CompletionList>
abstract Microsoft.CodeAnalysis.Completion.CompletionService.Language.get -> string
const Microsoft.CodeAnalysis.Completion.CompletionTags.ArgumentName = "ArgumentName" -> string
const Microsoft.CodeAnalysis.Completion.CompletionTags.Assembly = "Assembly" -> string
const Microsoft.CodeAnalysis.Completion.CompletionTags.Class = "Class" -> string
const Microsoft.CodeAnalysis.Completion.CompletionTags.Constant = "Constant" -> string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册