Hey all,
New Dart/Flutter VS Code extensions have been published! Release notes are below (and online).
Note: Many enhancements have been made when running with the LSP Preview. Many of these rely on changes in the Dart language server so may not be immediately available depending on the Dart/Flutter channel you are using. At the time of writing, they have not yet reached the Flutter stable channel.
#2926: Some quick-fixes are now able to be fixed for the entire file in one go.
#2823: A new setting dart.completeFunctionCalls
will cause code completion on functions/methods to include parentheses and argument placeholders for required arguments.
#812/#2790: It’s now possible to format only a selection of code (or also only lines modified according to source control).
pubspec.yaml
and analysis_options.yaml
Code Completion#114/#2110: Basic code completion is now available for pubspec.yaml
and analysis_options.yaml
files. This includes static identifiers and also lint names. It does not include Pub package names.
lib
folder, simplifying opening files outside of the lib
in dependencies.dart.analysisExcludedFolders
setting is now also used to exclude projects from project detection and project selection inputs. This means an excluded Flutter project will not force a workspace into using a Flutter SDK if all other projects are only Dart.package:
links/filenames linkified. This is useful if you have a text stack trace (eg. in a log file) that you’d like to quickly linkify to be able to navigate.flutter install
and flutter build
and can be customized by copying to tasks.json
using the Cog icon in the Tasks: Run Task picker.dart.flutterAndroidX
setting has been removed. This support has been enabled by default for some time.dart.hotReloadProgress
controls whether Hot Reload and Hot Restart progress is reported in the status bar or as a large notification (defaults to notification).dart run test:test
when using a Dart SDK >= v2.12.launchRequest
, simplifying their use by other editors.dart.flutterTestAdditionalArgs
setting that allows injecting arguments to call invocations of flutter test
(eg. to always run with --coverage
).dart pub get
instead of pub get
for Dart SDKs >= 2.12.build_runner
tasks now work reliably if run from the recent tasks list.previewBuildRunnerTasks
preview flag has been removed and build_runner
tasks are now always available..build_runner
tasks are now handled more reliably and will produce diagnostics in the Problems pane.