Dart-Code

Dart and Flutter support for VS Code

MIT License

Stars
1.5K
Committers
60

Bot releases are hidden (Show)

Dart-Code - Dart Code v2.4.0

Published by DanTup about 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Dart Code will now activate if a workspace contains a .dart file rather than only if it contains a pubspec.yaml file or when a .dart file is specifically opened
  • The dependency tree should work more reliably for .packages files that are not consistent with those generated by pub (for example, the hand-maintaned one in the Dart SDK repo)
  • Errors that occur when running Flutter debug commands will now be shown in the debug console
  • The Closing Labels preview has been updated to use functionality provided by the Dart SDK which will result in better performance and improved labels (this requires SDK v1.25.0-dev.11.0 or later)

Preview Features available in this version

Dart-Code - Dart Code v2.3.4

Published by DanTup about 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Go-to-Definition now works in read-only files (eg. SDK or external files opened using Go-to-Definition)

Preview Features available in this version

Dart-Code - Dart Code v2.3.3

Published by DanTup about 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • The dependency tree will now update after packages are changed/updated
  • When opening a Fuchsia project, the explorer will no longer indefinitely show a progress bar caused by trying to read dependencies
  • When using Go to Definition, files that are outside of your workspace root (eg. packages, SDK sources) will now be readonly to avoid accidental modification

Preview Features in this version

Dart-Code - Dart Code v2.3.2

Published by DanTup about 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • A new "Packages Tree" has been added to the explorer which lists your projects depencies and allows you to browse them in a read-only view
  • The ability to switch SDKs has been removed for Flutter and Fuchsia projects where it does not make sense
  • Fuchsia projects are now detected and will use the correct Dart SDK from Fuchsia
  • The dart.previewFlutterCloseTagDecorations preview feature has had several improvements
    • Decorations now appear in Fuchsia projects as well as Flutter projects
    • Decorations now appear for any Widget-returning method instead of only methods named build
    • Decorations will update less frequently to avoid flickering during quick typing
    • Decorations should no longer appear in invalid places (probably)
    • Decorations now look more like comments, prefixed with // instead of /
    • Decorations now apply to const constructor calls as well as those using new

Preview Features

Dart-Code - Dart Code v2.3.1

Published by DanTup about 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • An issue with searching symbols in a file being unreliable (appearing to hang) has been fixed
  • A new setting flutterHotReloadOnSave has been added to force a hot reload upon saving (if there are no errors in the file being saved)
  • A new Full Restart command is now available during Flutter debugging sessions for a full restart

Additionally, a new prototype editor feature is available for Flutter projects to improve readability of build methods, see #383 for details.

Dart-Code - Dart Code v2.3.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Flutter Debugging Commands

Several new commands have been added to aid Flutter debugging. These appear in the command palette but can be bound to keys in the Keyboard Shortcuts window in Code.

  • Toggle Debug Painting
  • Toggle Performance Overlay
  • Toggle Slow Animations
  • Toggle Repaint Rainbow
  • Toggle Platform (Android/iOS)
  • Toggle Baseline Painting
  • Toggle Slow-Mode Banner

Additionally the default hotkey for Organize Directives has been removed to avoid a warning from Code about modifier keys. You can rebind this command in Code's Keyboard Shortcuts window.

Dart-Code - Dart Code v2.2.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • When running on Mac OS + iOS breakpoints should work from first launch without having to hot reload first
  • A new Sort Members command has been added
  • Start without debugging will no longer error if this is the first time running a project (where the .vscode\launch.json file does not exist)
  • A new option sdkContainer has been added which can be used for fast SDK switching - set to a folder that contains multiple SDKs and the Dart SDK version in the status bar will become clickable
Dart-Code - Dart Code v2.1.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • [Flutter] A new command has been added to the command palette to run flutter doctor
  • Dart and Flutter SDKs are now found in PATH even when they start with ~/ for a users home directory
  • All path names in config (log files, analyzer path, SDK path) now support starting with ~/ for a users home directory
  • When enabled, debug logging should now flush correctly before terminating to reduce the changes of data not being recorded
  • A new option has been introduced (showLintNames) which will prefix lint/hint names into messages in the Problems pane to make it easier to // ignore them if you wish
Dart-Code - Dart Code v2.0.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Flutter Support

v2.0 is a major update that adds significant flutter support, including debugging and hot reload!

Changes

Note: If you previously installed a beta version of Dart Code to help with testing Flutter integration, please uninstall it and close all Code instances before installing v2.0 from the marketplace.

  • [Flutter] When opening a Flutter project your selected device will be shown in the status bar
  • [Flutter] If you have more than one connected device you will be able to switch between them by clicking on the device in the status bar
  • [Flutter] Pressing F5 will build and launch your app on the selected device
  • [Flutter] The usual debugging experience is available for Flutter apps, including breakpoints, call stacks, watch window etc.
  • [Flutter] The debugger's Restart button (or Ctrl+Shift+F5) has been mapped to Flutter's hot reload and will update the running application without needing to rebuild
  • [Flutter] Code completion for Widgets will no longer show trailing commas in the list (though they will still be inserted)
  • Clicking the debugger's restart button for a Dart CLI app will no longer crash but instead provide a more useful message about being unable to restart when VS Code does not supply toe correct configuration (this issue is fixed for VS Code 1.14 coming soon)
  • Stack frame text when stopped in the debugger is now improved and will show async gaps
  • Cursor placement after code fixes and assists should now be more accurate

The contributing file has also been updated to make it easier to get started with contributing to Dart Code.

Dart-Code - Dart Code v1.4.2

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Note: This version requires Visual Studio Code 1.13.

Changes

  • Code completion will now show types for named arguments more reliably
  • Argument placeholders will now (again) insert placeholder text instead of empty strings
  • Completing methods that take no arguments will no longer place the cursor between the parens as if there are arguments to type
  • When selecting items from the code completion list the cursor will now more reliably move to the expected location after insertion
  • New snippets have been added for test and group methods defined in the test package
  • Dart Code will now activate when opening workspaces that include a pubspec.yaml anywhere in the tree, not just in the workspace root folder
  • Debug logging will no longer appear in the Debug Output window when launching a debug session
  • Snippets now have slightly more verbose descriptions of their functionality
Dart-Code - Dart Code v1.5.0 beta (Flutter) 5

Published by DanTup over 7 years ago

This is a beta release from the Flutter branch. Please test and report general feedback at #318 or raise issues for problems. If you don't have issues, please still post in #318 and include which platform you're using to help gauge stability!

Dart-Code - Dart Code v1.4.1

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Identifiers that start or end with $ symbols will now highlight correctly
  • Highlighting of variables inside interpolated strings is now more accurate
  • Configuration snippets have been added to make adding additional debug configs to launch.json easier
Dart-Code - Dart Code v1.4.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Code assists are now available and will show up as lightbulbs similar to existing code fixes (for example, Wrap in new widget in Flutter projects)
  • Code completion will now refresh on certain key presses (space, (, =) which should result in more accurate results more often
  • Code completion results are now sorted by relevance rather than alphabetically
  • Cursor position should now be better maintained when executing code fixes
  • pubspec.yaml and analysisoptions.yaml will once again use the built-in YAML language/highlighting
  • When opening a flutter project, the .packages file will now also be used when trying to locate the Flutter SDK
  • The error message shown when unable to locate the Flutter SDK has been simplified and a link to the Flutter download page added
  • The environment variable FLUTTER_HOME is not recommended for use and will no longer be used to locate a Flutter SDK (FLUTTER_ROOT is still checked)
Dart-Code - Dart Code v1.3.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • When opening a Flutter project, the below locations will be checked for a Flutter SDK and the embedded Dart SDK will be used (if no flutter SDK is found an error message will be shown)
    • .\bin\flutter(.bat)
    • (FLUTTER_ROOT)\bin\flutter(.bat)
    • (FLUTTER_HOME)\bin\flutter(.bat)
    • All folders in PATH
  • Dart SDK update checks are now disabled for Flutter projects due to the embedded Dartk SDK
  • Pub commands are now generally replaced with Flutter equivilents when a Flutter project is open (note: Pub commands still appear in the command palette for familiarity but will execute flutters versions)
  • When flutter: sdk: flutter is added to/removed from pubspec.yaml you will be prompted to reload to switch between Dart/Flutter SDKs
  • Pub commands will no longer appear in the command palette when a Dart project is not open
Dart-Code - Dart Code v1.2.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • The change made in v1.1.0 to support opening the Flutter repo introduced some new issues and has been reverted except for specific workspaces. The issue is caused by using a folder named packages which is not currently supported by the analyzer. In order to fix the issue for the Flutter repo the workaround will be triggered by the presence of a .\packages\.gitignore file (which exists in the Flutter repo but not in packages folders created by pub). This workaround will be removed once the Analyzer has been updated.
Dart-Code - Dart Code v1.1.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Opening a folder that is not itself a Dart package but contains others (such as the Flutter repository) will no longer give false errors/warnings caused by incorrect package resolution
  • Setting Dart SDK/libraries as debuggable/non-debuggable will now work correctly with SDK 1.23 which has different debugging defaults
  • The launch.json file should now be much simpler than before and not contain internal Dart Code settings that are not relevant to the user *
  • The launch.json file now properly supports default so checkedMode: true and args: [] are not longer required unless being changed *

* Your launch.json file should automatically be tidied up when you first open your project.

Dart-Code - Dart Code v1.0.2

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • interface has been removed from the list of keywords for syntax highlighting. It has not been a Dart keyword for sometime and resulted in incorrect colouring when using it as a variable name
  • Expressions in interpolated strings should now be highlighted even when containing properties and method calls
Dart-Code - Dart Code v1.0.1

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Opening a Dart file from the Dart SDK (such as navigating via Go to Definition on an SDK type) when using a dev-version 1.23 Dart SDK will no longer result in an infinite analyzing loop causing Analyzing... to flicker on the status bar
Dart-Code - Dart Code v1.0.0

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Pressing F5 to launch Dart programs after upgrading to Code 1.10 will no longer fail with an error about an unexpected token in launch.json
  • Pressing F5 to launch Dart programs will now use Dart's checked mode by default
  • A new option has been introduced (pubAdditionalArgs) that allows additional arguments to be passed to pub in the Pub Get and Pub Upgrade commands (this may be useful if you wish to use --packages-dir)
  • The order of items in error reports have been tweaked slightly to move more useful stuff further up
Dart-Code - Dart Code v0.15.1

Published by DanTup over 7 years ago

Dart Code can be installed from the Visual Studio Code Marketplace. Open VS Code Quick Open (Ctrl+P) and paste the following and press enter:

ext install dart-code

Changes

  • Fixed an issue introduced in v0.15.0 where null would something appear in tooltips for items with no doc comments.