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.29k stars 89 forks source link

[Bug] Code is still collapsed in Vue files using Volar takeover mode #30

Closed wenfangdu closed 1 year ago

wenfangdu commented 1 year ago
image
yoavbls commented 1 year ago

@wenfangdu I don't think it is related to Volar. It looks like the formatting of this type with prettier failed. Can you paste here the original error please so I can investigate?

wenfangdu commented 1 year ago

@yoavbls

Argument of type '{ $ref: null; ref: (ref: any) => any; columns: ({ label: string; prop: string; } | { label: string; formatter: ({ ip_type }: any) => any; } | { actions: { label: string; disabled: ({ contract_id }: any) => boolean; handler({ contract_id }: any): void; }[]; })[]; ... 4 more ...; load(): Promise<...>; }' is not assignable to parameter of type 'VTableConfig'.
  Property 'data' is missing in type '{ $ref: null; ref: (ref: any) => any; columns: ({ label: string; prop: string; } | { label: string; formatter: ({ ip_type }: any) => any; } | { actions: { label: string; disabled: ({ contract_id }: any) => boolean; handler({ contract_id }: any): void; }[]; })[]; ... 4 more ...; load(): Promise<...>; }' but required in type 'VTableConfig'.ts(2345)
v-table.vue(44, 5): 'data' is declared here.
yoavbls commented 1 year ago

v0.3.0 with the fix is out! You can update now 🙂