dotnet/roslyn

Entering a new line in the middle of <typeparam/> element incorrectly causes CodeLense to think it's encountered a new method

Open

#25,009 建立於 2018年2月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)C# (20,414 star) (4,257 fork)batch import
Area-IDEBughelp wanted

描述

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:

typeparam

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.

貢獻者指南