Hey all!
New versions of the VS Code extensions have been published. Release notes are below (and online). If you encounter any issues with them, please file them on GitHub. Thanks!
try
, class
, new
, switch
) now appear correctly in Dartdocs.flutter
tool is run for the first time by the extension, the Output pane containing welcome text will remain visible instead of closing automatically.launch.json
for that specific device, regardless of the current selected device.dart.flutterCreateOffline
has been renamed to dart.offline
and now passes --offline
to other commands (such as pub get
) in addition to flutter create
.dart.devToolsLocation
replaces dart.embedDevTools
to configure where DevTools should be launched. The default setting "beside"
behaves the same as the previous embedding (opening in a tab beside the current editor). "active"
open over the top of the current editor (which can be full-width). "external"
opens in an external browser window.file:///
links for Dart files in the embedded terminal are now detected more reliably and should not lead to “Invalid file path” errors after clicking.pubspec.yaml
will no longer suppress the notification if a Dart SDK cannot be found.dart-lang/sdk
repo is again detected correctly, disabling automatic pub get
and related commands.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/dev channels that already include the SDK parts of these changes).
#3904: When using a new enough SDK, the local code snippets are suppressed and snippets will be provided by the Dart LSP server. Server-provided snippets are contextual and can adapt to your project settings and language version, including:
class
or stful
snippets are only shown at the top level, and if
and switch
are not shown at the top level).?
are only included when null saftey is enabled.List<String> args
are not included in main()
functions for test files.#3833: Go to Type Definition allows navigating to the definition of a type of a symbol without first needing to navigate to the symbols definition.
dart.experimentalSdkDaps
), detaching from a Flutter process will remove breakpoints and automatically resume.--multidex
/--no-multidex
flag now works correctly for launches of flutter run
through the VS Code debugger (including defaulting to enabled).F8
) functionality from changing the selected error during typing.var
keyword is no longer highlighted differently when used in a for
loop for some themes..dart
files that are not part of a project (with a pubspec.yaml
or analysis_options.yaml
) will no longer sometimes cause some “File is not being analyzed” errors during startup.children: []
will no longer insert []
if completion is invoked on the children
label and a value is already present.