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 opened on 2018/02/23

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEBughelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

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.

コントリビューターガイド