dotnet/roslyn

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

Ouverte

#25 009 ouverte le 23 févr. 2018

 (0 commentaire) (0 réaction) (0 personne assignée)C# (4 257 forks)batch import
Area-IDEBughelp wanted

Métriques du dépôt

Stars
 (20 414 étoiles)
Métriques de merge PR
 (Merge moyen 6j 17h) (256 PRs mergées en 30 j)

Description

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.

Guide contributeur