Unibeautify / unibeautify

One Beautifier to rule them all, One Beautifier to clean them, One Beautifier to bring them all and in the darkness sheen them
https://unibeautify.com/
MIT License
544 stars 41 forks source link

Option 'align_assignment' is not working in VSCode with TypeScript #217

Closed millsp closed 5 years ago

millsp commented 5 years ago

Describe the bug Option 'align_assignment' is not working in VSCode with TypeScript

To Reproduce Steps to reproduce the behavior:

{
  "TypeScript": {
    "beautifiers": ["Prettier", "Pretty Diff"],
    "align_assignments": true,
    "arrow_parens": "always",
    "break_chained_methods": true,
    "end_with_comma": true,
    "end_with_semicolon": false,
    "indent_comments": true,
    "indent_style": "space",
    "jsx_brackets": true,
    "max_preserve_newlines": "2",
    "multiline_ternary": "never",
    "object_curly_spacing": false,
    "pragma_insert": false,
    "pragma_require": false,
    "quotes": "single",
    "space_after_anon_function": false
  }
}

Expected behavior Should align assignments

Error/Stack Traces

System (please complete the following information):

Additional context

stevenzeck commented 5 years ago

@prettydiff how does the vertical option work in prettydiff?

prettydiff commented 5 years ago

This is a defect on my end. I need to do a better job of recognizing inline type assignments, for example:

let a:number[] = [0]

I already have an issue open for this: https://github.com/prettydiff/prettydiff/issues/538

I am working no the next major version of my parser. Once I release the next major version this is the first thing I will work on.