dotnet/roslyn

Completion treats `:` as a commit character when providing a name in a tuple pattern

Open

#61,170 opened on May 7, 2022

View on GitHub
 (5 comments) (0 reactions) (0 assignees)C# (4,257 forks)batch import
Area-IDEIDE-IntelliSenseIntelliSense-Completionhelp wanted

Repository metrics

Stars
 (20,414 stars)
PR merge metrics
 (Avg merge 6d 17h) (256 merged PRs in 30d)

Description

Version Used: 17.2p6

Steps to Reproduce:

var test = (a: 1, b: 2, c: 3);

switch (test)
{
    case ($$ 1, 2, 3):
        break;
}

At the $$ location, type a:.

Expected Behavior:

The : isn't treated as a commit character, and a: is left alone.

Actual Behavior:

args: is inserted, as : is treated as a commit character and the highlighted completion is inserted.

Contributor guide