dotnet/roslyn

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

Aperta

#25.009 aperta il 23 feb 2018

 (0 commenti) (0 reazioni) (0 assegnatari)C# (4257 fork)batch import
Area-IDEBughelp wanted

Metriche repository

Star
 (20.414 stelle)
Metriche merge PR
 (Merge medio 6g 17h) (256 PR mergiate in 30 g)

Descrizione

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.

Guida contributor