yoavbls / pretty-ts-errors

🔵 Make TypeScript errors prettier and human-readable in VSCode 🎀
https://marketplace.visualstudio.com/items?itemName=yoavbls.pretty-ts-errors
MIT License
13.14k stars 89 forks source link

In Vue and TS file, error no format, after i installed plugin #108

Closed shaobeichen closed 2 months ago

shaobeichen commented 2 months ago

Describe the bug In Vue and TS file, error no format, after i installed plugin

Expected behavior In Vue and TS file, error is formated, after i installed plugin

Original error

interface A {
  a?: string
  b?: number
  c?: {
    d?: string
    e?: number
  }
}

type C = A['c']

const c: C = {
  ddd: 1,
}

Object literals can only specify known properties, and 'ddd' is not in type '{d?: string | undefined; e?: number | undefined;}'. TS2353

Screenshots image

This is a easy example, error no format, and i found all Vue ts file error is no format, i installed plugin, i don't know if it was my use mistake.

kevinramharak commented 2 months ago

I think other locales than english are not supported yet, see #27.

yoavbls commented 2 months ago

Thank you @kevinramharak