mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
In Flutter projects the Structure view now shows the widget nesting inside build() (e.g. Scaffold > Column > Text 'Hello') from the Dart analysis server's dart/textDocument/publishFlutterOutline, following the Flutter plugin's former Outline window: letter badges (private widgets in pink), properties after the name, bold build methods, and Show Only Widgets in View Options. A new doc_flutter_outline command keeps doc_outline unchanged; the outline is cached per document and server and refreshed via LspRefresh. Refs #4096 Co-authored-by: wildcatDownstairs <26499420+wildcatDownstairs@users.noreply.github.com>
25 lines
761 B
TOML
25 lines
761 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"]
|
|
initialization-options = { flutterOutline = true }
|
|
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"
|