Skip to content

Fatal VS crash when invoking completion session #81576

@DoctorKrolic

Description

@DoctorKrolic

Version Used:
VS 2026 [11222.16]

Steps to Reproduce:

using System.Collections;
using System.Runtime.CompilerServices;

[CollectionBuilder(typeof(MyFancyCollection), nameof(MyFancyCollection$$))]
public class MyFancyCollection : IEnumerable<int>
{
    public MyFancyCollection Create(ReadOnlySpan<int> ints)
    {
    }

    public IEnumerator<int> GetEnumerator()
    {
        throw new NotImplementedException();
    }

    IEnumerator IEnumerable.GetEnumerator()
    {
        return GetEnumerator();
    }
}

Type . at $$

Expected Behavior:
I see completion list

Actual Behavior:
VS hard-crashes in a few secs probably due to stack overflow

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions