For instructions on installing the Dart or Flutter extensions, go here.
v3.46.1 2022-08-03
- #4083: Certain formats of exclusion rules in
analysis_options.yaml
will no longer cause more folders than expected to be excluded from project detection.
v3.46.0 2022-08-02
Editor
- #3055: Actions that cause the extension to reload the language server (such as modifying SDK settings, or changing the selected SDK) no longer generate errors like “edit.sortMembers is already registered”.
- #4050: The default formatter for Dart files is now set explicitly. This prevents the Dart formatter from being disabled if another formatter sets itself as the global default. If required, this can be overridden by setting the
editor.defaultFormatter
setting inside the Dart-specific settings (“[dart]”).
Testing
- #4042: Tests that include
<
or>
in their names (but not immediately following quotes) no longer prevent tests from running using CodeLens links.
Debugger
- #4076: After updating the
path
of a dependency (or switching between apath
and other type of dependency) inpubspec.yaml
and then Hot Restarting, the debugger will no longer continue to jump to the original sources paths when breaking/stepping in the dependency.
DevTools
- #3944: A new setting
"dart.customDevToolsUri"
allows overriding the URI used when launching/embedded DevTools. This setting is intended for use by DevTools developers to simplify testing DevTools when embedded in VS Code.
Other
- #4028: Nested projects excluded from analysis using
analysis_options.yaml
are now also excluded when locating projects, including when deciding whether to use a Dart or Flutter SDK. This prevents the Flutter SDK being selected for Dart projects that may include nested Flutter projects for testing purposes (such as the project for thelinter
package).
Features/Fixes Enabled with Future SDKs
These items rely on changes to the Dart/Flutter SDKs that have not yet been released to stable channels. They will show up automatically when you update your SDK in future (or if using beta/development channels depending on the exact version).
- #4039: When using SDK debug adapters (via the
"dart.previewSdkDaps"
setting), exception popups now include the full exception text (matching the existing debug adapters). Migration to the SDK debug adapters by default will begin in an upcoming release. - #4053: The Extract Method refactor no longer incorrectly adds the
async
keyword to synchronous code that contained asynchronous callbacks. - #4031: Several issues with Go to Definition not navigating correctly on
super
/this
formal params have been resolved.
Upstream Issues
Some feature requests and fixes require new features and fixes in upstream projects like VS Code and LSP which use counts of 👍s on those issues to help gauge demand. The Dart-Code website now lists some of the most significant upstream issues with a description of the feature/fix they would enable. Please consider reviewing this list and adding your 👍 to any GitHub issues relevant to features you’d like to see!