Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Coffeescript formatting causes compilation issue

$
0
0

Hi,

 

I have the following construct in Coffescript:

 

    @dataSource = Kendo.newDataSource      sort: [        {field: 'vatScheme', dir: 'asc'},        {field: 'documentType', dir: 'asc'}      ]

 

When i use the code formatter, it changes to:

 

    @dataSource = Dragon.Kendo.newDataSource      sort: [      {field: 'vatScheme', dir: 'asc'},      {field: 'documentType', dir: 'asc'}      ]
array elements are aligned left.
This format does not compile to js. I have tried various options in the custom code formatter, but have foud nothing that fixes the issue. Problem is, now my formatter breaks my code.
Any advice?
~gilbert

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>