aziznal / dart-import-sorter

A vscode extension that groups and sorts imports for dart files (https://marketplace.visualstudio.com/items?itemName=aziznal.dart-import-sorter)
MIT License
14 stars 1 forks source link

Breaks multiline imports #48

Closed talski closed 1 year ago

talski commented 1 year ago

This import gets messed up after running sort

import 'package:flutter_web_plugins/flutter_web_plugins.dart'
    if (dart.library.io) 'package:app_name/fake_url_strategy.dart';
aziznal commented 1 year ago

Thank you for your feedback. I'll make it so that everything after the if is ignored when sorting. That should help. I'll work on a new release this weekend.

aziznal commented 1 year ago

Let's keep on tracking this in #49