mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 08:07:49 +00:00
Dart projects that depend on the Flutter SDK were debugged through `dart debug_adapter`, which cannot start a program importing dart:ui and has no hot reload. A session now uses `flutter debug_adapter` when the program's or the working directory's pubspec.yaml depends on the Flutter SDK, or when an attach configuration asks for it (add-to-app: vm-service-uri and device map to the adapter's attach arguments). Hot Reload and Hot Restart are sent over DAP and appear in the toolbar of Dart sessions. Dart files also get a debug configuration. Co-authored-by: payailk <80739895+payailk@users.noreply.github.com>
24 lines
710 B
TOML
24 lines
710 B
TOML
id = "dart"
|
|
name = "Dart"
|
|
extensions = ["dart"]
|
|
line-comment = "//"
|
|
block-comment = ["/*", "*/"]
|
|
indent = { tab-size = 2, insert-spaces = true }
|
|
ui-mode = "Dart"
|
|
tree-sitter = "dart"
|
|
|
|
[[language-servers]]
|
|
name = "dart"
|
|
command = "dart"
|
|
args = ["language-server", "--protocol=lsp"]
|
|
root-markers = ["pubspec.yaml", "analysis_options.yaml"]
|
|
install-hint = "Install the Dart SDK (https://dart.dev/get-dart) or Flutter"
|
|
|
|
# `dart` here; a project that depends on the Flutter SDK is switched to
|
|
# `flutter debug_adapter` at session start (see `ide-dap`'s `start_with`).
|
|
[debugger]
|
|
adapter = "dart"
|
|
command = "dart"
|
|
args = ["debug_adapter"]
|
|
install-hint = "Install the Dart SDK (https://dart.dev/get-dart) or Flutter"
|