Skip to content

Completions inside property pattern force-completes a member even if current name represents another one #82606

@DoctorKrolic

Description

@DoctorKrolic

Version Used:
Visual Studio 2026
VisualStudio.18.Release/18.3.2+11520.95

Edition: Community
Release: February 2026 Feature Update
Channel: Stable
Version: 18.3.2

Steps to Reproduce:

Task? t = null;
if (t is { IsCompleted$$: true })
{
}

Invoke completion sessiot at $$

Expected Behavior:
I get 2 completions for IsCompleted and IsCompletedSuccessfully, same as completion in non-pattern does it:
Image

Actual Behavior:
VS forces completion of IsCompletedSuccessfully:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions