dotnet/roslyn
Entering a new line in the middle of <typeparam/> element incorrectly causes CodeLense to think it's encountered a new method
开放
#25,009 创建于 2018年2月23日
Area-IDEBughelp wanted
仓库指标
- 星标
- (20,414 个星标)
- PR 合并指标
- (平均合并 6天 17小时) (30 天内合并 256 个 PR)
描述
Really hard to explain, but after entering a new line in the following causes CodeSense to think its encountered a new method and show its bar for a second:

Enter new line in the following at $$$
using System;
using System.Threading.Tasks;
using System.Threading.Tasks.Dataflow;
namespace Microsoft.VisualStudio.Threading.Tasks.Dataflow
{
/// <summary>
/// Simplifies creation of <see cref="ActionBlock{T}"/> instances via type inference.
/// </summary>
internal static class ActionBlockFactory
{
/// <summary>
/// Creates a new instance of the <see cref="ActionBlock{Task}" /> class with the specified action.
/// </summary>
/// <typeparam name="TInput">$$$The type of data that the <see cref="ActionBlock{TInput}" /> operates on.</typeparam>
/// <param name="action">
/// The action to invoke with each data element received.
/// </param>
/// <exception cref="ArgumentNullException">
/// <paramref name="action" /> is null.
/// </exception>
public static ActionBlock<TInput> FromAsync<TInput>(Func<TInput, Task> action)
{
return new ActionBlock<TInput>((Func<TInput, Task>)action);
}
}
}
This doesn't happen anywhere else.