typescript-formatter icon indicating copy to clipboard operation
typescript-formatter copied to clipboard

insertSpaceAfterOpeningAndBeforeClosingEmptyBraces setting not observed

Open mjbvz opened this issue 4 years ago • 0 comments
trafficstars

Repo

  1. Create tsfmt.json:
{
	"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": true,
}
  1. Using the latest TS 4.5-nighty, try formatting:
1 || {}

Bug No space is added between the braces

After debugging, it looks like the insertSpaceAfterOpeningAndBeforeClosingEmptyBraces option is dropped

mjbvz avatar Aug 30 '21 21:08 mjbvz