Version Used:
VS 17.2 p1
Steps to Reproduce:
Type code like this: using deconstruction pattern, with the list pattern as the inner one.
switch ((a, b))
{
case ([pattern1], [pattern2]):
{
// ...
}
}
Expected Behavior:
No spaces will be inserted between ( and [ token.
Actual Behavior:
Before the first deconstruction part [pattern1] will contain an extra whitespace after formatting.
( [pattern1], [pattern2])
↑ Here.
No matter what nested pattern is in the list pattern, extra space will be always inserted after formatting.
Image:

Version Used:
VS 17.2 p1
Steps to Reproduce:
Type code like this: using deconstruction pattern, with the list pattern as the inner one.
Expected Behavior:
No spaces will be inserted between
(and[token.Actual Behavior:
Before the first deconstruction part
[pattern1]will contain an extra whitespace after formatting.No matter what nested pattern is in the list pattern, extra space will be always inserted after formatting.
Image: