Skip to content

[formatter]Default typescript formatter inconsistency with satisfies #51686

@yw662

Description

@yw662

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.73.1
  • OS Version: macos 13.0.1

Steps to Reproduce: (format this with default formatter)
截屏2022-11-29 上午11 47 58

type B = 'b'
const a = {
  b: 'c'
} as const satisfies {
    [index in B]: string
  }

const c = {
  b: 'c'
} as const satisfies {
  [index: string]: string
}

const d = {
  b: 'c'
} satisfies {
    [index in B]: string
  }

const e = {
  b: 'c'
}  satisfies {
  [index: string]: string
}

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: FormatterThe issue relates to the built-in formatterFix AvailableA PR has been opened for this issueRescheduledThis issue was previously scheduled to an earlier milestone

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions