dart-sublime-bundle
dart-sublime-bundle copied to clipboard
integrate with dart_style
It seems to be ready for general use:
https://pub.dartlang.org/packages/dart_style
If we find dartfmt in an sdk subdir, warn users that they should be using dart_style.
@sethladd Is dart_style going to remain as pub package meant to be installed via 'pub global'. Or is it planned to be included in the SDK?
Since you have integrated with the Analysis Server already, you could get the formatting through the server API:
http://htmlpreview.github.io/?https://github.com/dart-lang/bleeding_edge/blob/master/dart/pkg/analysis_server/doc/api.html#request_edit.format
- Jaime
Oh, wow, didn't know that... I'm falling behind! :)
Thanks!
I've just noticed that the new dartfmt's command line options are compatible with the sdk's version, though, so users that have the new one installed can already use it now. That's a good stop-gap solution until I get around to implementing the formatting through the server.