New versions of the Dart/Flutter VS Code extensions have been published! Release notes are below (and online).
#3591: It’s no longer required to open or run a test file for tests to be discovered. Test files will be discovered automatically at startup and expanding them will discover the tests within.
#3606: All output from tests is now recorded in the test history, rather than only error output:
#2708: A new command Dart: Hot Reload allows hot reloading in Dart (non-Flutter) programs.
testfolder (for example tests in
integration_testcan be run).
\for path separators on Windows.
mainmethod to include a return type.
dart.onlyAnalyzeProjectsWithOpenFilesthat runs the LSP server in a mode that does not analyze the whole workspace, but only projects for open files. This may improve performance for large workspaces but may limit some functionality.
dart.previewLspsetting has been renamed to
dart.useLsp. LSP is no longer considered a preview and should be used by everyone. This setting (and support for using the old server protocol) will be removed in an future release so if you believe you have a need to disable LSP, please file an issue on GitHub with details.
dart.useKnownChromeOSPortssetting has been removed as it is no longer required to use specific ports on ChromeOS.
dart.completeFunctionCallssetting has been improved to make it clearer which arguments will have placeholders inserted.
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 development channels depending on the exact version).
dart.onlyAnalyzeProjectsWithOpenFilesshould no longer prevent the analysis server from fully initialising.
"annotation"so that colors can be customised with
"editor.semanticTokenColorCustomizations"(for example to allow matching the colour of the annotations
"variable"to match guidelines in the VS Code docs.
"editor.formatOnSaveMode": "modifications"to format only modified lines will no longer fail to format the leading indentation of the first line of a range.
"dart devtools"command instead of
"pub global"for new SDKs. This means the version will match what is shipped in the SDK and not what’s published to Pub.