Sublime Text Dart Plugin v1.5
Overview of Changes
- multiple fixes, including a long-standing race condition in analyzer.py
- improvements to the syntax definition
- new "flexible setting" for some Dart-specific settings
- ability to run stand-alone .dart scripts (no pubspec.yaml required!)
- dartlint phased out
- polish (both user-facing and under the hood)
- autocomplete!
- Ctrl+J and Ctrl+K navigate autocomplete results when available
Flexible Settings
The dart_sdk_path
and dart_dartium_path
settings can now be set in two
different ways.
Globally, for all platforms
"dart_sdk_path": "path/to/dart-sdk"
As a dictionary of values
"dart_sdk_path": {
"osx": "path/to/dart-sdk",
"linux": "different/path/to/dart-sdk",
"windows": "c:\\path\\to\dart-sdk"
}
If you've configured these settings before, you don't need to make any changes.
Ability to run stand-alone .dart
files
Up until now, .dart
files needed to reside in a pub-compliant package layout
in order to be run by the Sublime Text plugin. This limitation has now been
lifted and you can run loose .dart
files located in any folder.
Dartlint retired
The linting feature offered by dartlint has been removed. The Dart Analysis
Server now powers all code intelligence features in the plugin.
Autocomplete
The plugin is now able to provide completion suggestions thanks to the
Dart Analysis Server integration.