wix / stylable

Stylable - CSS for components
https://stylable.io
MIT License
1.27k stars 62 forks source link

Formatting comments in-line #1602

Open eifr opened 3 years ago

eifr commented 3 years ago

Description

When trying to format code with comments using Stylable-intelligence, it moves the comments to a new line.

current behaviour

comments are in new line

Screen Shot 2021-01-26 at 18 28 03

expected behaviour

comments are in-line

Screen Shot 2021-01-26 at 18 29 01
tomrav commented 3 years ago

This is an upstream bug with js-beautify (our formatter of choice in the language-service), see open issue: https://github.com/beautify-web/js-beautify/issues/1672

It looks like it's on their upcoming milestone, if it is not resolved we can consider trying to work around the issue manually in the language-service.