提交 8be65601 编写于 作者: P Paul Chen

Cleanup.

上级 1783ce25
......@@ -36,8 +36,6 @@ public override async Task ProvideCompletionsAsync(CompletionContext context)
if (showSpeculativeT)
{
var text = await document.GetTextAsync(cancellationToken).ConfigureAwait(false);
const string T = nameof(T);
context.AddItem(CommonCompletionItem.Create(
T, displayTextSuffix: "", CompletionItemRules.Default, glyph: Glyph.TypeParameter));
......
......@@ -115,9 +115,6 @@ public static bool IsAttributeNameContext(this SyntaxTree syntaxTree, int positi
// int i;
// |
// class C {
// public |
// class C {
// [Goo]
// |
......@@ -129,6 +126,8 @@ public static bool IsAttributeNameContext(this SyntaxTree syntaxTree, int positi
// previous token.
token = token.GetPreviousTokenIfTouchingWord(position);
// class C {
// |
if (token.IsKind(SyntaxKind.OpenBraceToken))
{
if (token.Parent is BaseTypeDeclarationSyntax)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册