Skip to content

Commit fc15c69

Browse files
committed
Improve generation of docs + fix bug that caused many settings to be missed (return vs continue)
Fixes Dart-Code/Dart-Code#5348
1 parent 12b3d08 commit fc15c69

File tree

2 files changed

+226
-38
lines changed

2 files changed

+226
-38
lines changed

_docs/settings.md

Lines changed: 164 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,11 @@ What level of documentation to show in Hovers and Code Completion details. When
163163
- `summary` - Show short documentatin summary.
164164
- `none` - Do not show documentation.
165165

166+
### dart.dtdEditorActiveLocationDelay
167+
**Default:** `200`.
168+
<br />
169+
How long (in ms) to delay sending editor location change events over the Dart Tooling Daemon. Increasing this results in less events which may improve performance, at the expensive of tools that use these events not updating as quickly after your location/editor changes (requires restart).
170+
166171
### dart.enableSdkFormatter
167172
**Default:** `true`.
168173
<br />
@@ -502,6 +507,11 @@ How many levels (including the workspace roots) down the workspace to search for
502507

503508
## Experimental
504509

510+
### dart.experimentalDtdHandlers
511+
**Default:** `false`.
512+
<br />
513+
Whether to enable experimental (possibly unfinished or unstable) LSP handlers through DTD. This setting is passed to the analysis server in the connectToDtd request and therefore relies on DTD being supported and enabled for the analysis server (requires restart).
514+
505515
### dart.experimentalRefactors
506516
**Default:** `false`.
507517
<br />
@@ -582,7 +592,7 @@ Resource scoped settings can be set in individual workspace folder settings and
582592
An array of paths to be excluded from Dart analysis. This option should usually be set at the Workspace level. Excluded folders will also be ignored when detecting project types.
583593

584594
### dart.analyzerPath
585-
The path to a custom Dart Analysis Server. This setting is intended for use by Dart Analysis Server developers.
595+
The path to a custom Dart Analysis Server. This setting is intended for use by Dart Analysis Server developers. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
586596

587597
## DevTools
588598

@@ -612,7 +622,7 @@ Whether to insert argument placeholders during code completions. This feature is
612622
### dart.lineLength
613623
**Default:** `80`.
614624
<br />
615-
The maximum length of a line of code. This is used by the document formatter. If you change this value, you may wish to update `editor.rulers` (which draws vertical lines in the editor) in the `["dart"]` section if your settings to match.
625+
The maximum length of a line of code. This is used by the document formatter. If you change this value, you may wish to update `editor.rulers` (which draws vertical lines in the editor) in the `["dart"]` section of your settings to match.
616626

617627
## Flutter
618628

@@ -626,11 +636,112 @@ Additional args to pass to the `flutter attach` command. Using the `args`/`toolA
626636
Additional args to pass to the `flutter run` command. Using the `args`/`toolArgs` fields in `launch.json` is usually better than this setting as this setting will apply to _all_ projects.
627637

628638
### dart.flutterScreenshotPath
629-
The path to a directory to save Flutter screenshots.
639+
The path to a directory to save Flutter screenshots. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
630640

631641
### dart.flutterTestAdditionalArgs
632642
Additional args to pass to the `flutter test` command. Using the `args`/`toolArgs` fields in `launch.json` is usually better than this setting as this setting will apply to _all_ projects.
633643

644+
## Pub
645+
646+
### dart.promptToGetPackages
647+
**Default:** `true`.
648+
<br />
649+
Whether to prompt to get/upgrade packages when opening a project with missing/out of date packages.
650+
651+
### dart.pubAdditionalArgs
652+
Additional args to pass to all `pub` commands.
653+
654+
### dart.runPubGetOnPubspecChanges
655+
**Options:** `"always"`, `"prompt"` or `"never"`.
656+
<br />
657+
**Default:** `"always"`.
658+
<br />
659+
Whether to run `pub get` whenever `pubspec.yaml` is saved.
660+
661+
- `always` - Always run when pubspec is changed.
662+
- `prompt` - Prompt to run when pubspec is changed.
663+
- `never` - Never run when pubspec is changed.
664+
665+
## Run and Debug
666+
667+
### dart.cliAdditionalArgs
668+
Additional args to pass to the `dart` command when running CLI scripts. Using the `args`/`toolArgs` fields in `launch.json` is usually better than this setting as this setting will apply to _all_ projects.
669+
670+
### dart.customDartDapPath
671+
The path to a custom Dart Debug Adapter. This setting is intended for use by Dart Debug Adapter developers. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
672+
673+
### dart.customFlutterDapPath
674+
The path to a custom Flutter Debug Adapter. This setting is intended for use by Dart Debug Adapter developers. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
675+
676+
### dart.evaluateGettersInDebugViews
677+
**Default:** `true`.
678+
<br />
679+
Whether to evaluate getters in order to display them in debug views (such as the Variables, Watch and Hovers views).
680+
681+
### dart.showDartDeveloperLogs
682+
**Default:** `true`.
683+
<br />
684+
Whether to show logs from the `dart:developer` `log()` function in the debug console.
685+
686+
### dart.showGettersInDebugViews
687+
**Default:** `true`.
688+
<br />
689+
Whether to show getters in order to display them in debug views (such as the Variables, Watch and Hovers views). If `evaluateGettersInDebugViews` is `true` getters will be eagerly evaluated, otherwise they will require clicking to evaluate.
690+
691+
### dart.suppressTestTimeouts
692+
**Options:** `"never"`, `"debug"` or `"always"`.
693+
<br />
694+
**Default:** `"never"`.
695+
<br />
696+
Whether to suppress test timeouts when running/debugging tests. To work properly this requires package:test version 1.20.1 or newer. For older versions, the default timeout will be increased to 1d but this will not affect tests that have explicit (non-factor) timeouts set with @timeout.
697+
698+
- `never` - Do not suppress test timeouts.
699+
- `debug` - Suppress test timeouts when Debugging.
700+
- `always` - Suppress test timeouts both when Running and Debugging.
701+
702+
### dart.testAdditionalArgs
703+
Additional args to pass to the `dart test` command. Using the `args`/`toolArgs` fields in `launch.json` is usually better than this setting as this setting will apply to _all_ projects.
704+
705+
### dart.vmAdditionalArgs
706+
Arguments to be passed to the Dart VM when running Dart CLI scripts.
707+
708+
These arguments appear between "dart" and "run":
709+
710+
`dart (vmAdditionalArgs) run (toolArgs) bin/main.dart (args)`
711+
712+
## SDK
713+
714+
### dart.flutterSdkPath
715+
The location of the Flutter SDK to use. If blank (or not a valid SDK), Dart Code will attempt to find it from the project directory, `FLUTTER_ROOT` environment variable and the `PATH` environment variable. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
716+
717+
### dart.flutterSdkPaths
718+
An array of paths that either directly point to a Flutter SDK or the parent directory of multiple Flutter SDKs that can be used for fast SDK switching. These paths are not used directly when searching for an SDK. When this setting is populated, the version number in the status bar can be used to quickly switch between SDKs. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
719+
720+
### dart.sdkPath
721+
The location of the Dart SDK to use for analyzing and executing code. If blank (or not a valid SDK), Dart Code will attempt to find it from the `PATH` environment variable. When editing a Flutter project, the version of Dart included in the Flutter SDK is used in preference. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
722+
723+
### dart.sdkPaths
724+
An array of paths that either directly point to a Dart SDK or the parent directory of multiple Dart SDKs that can be used for fast SDK switching. These paths are not used directly when searching for an SDK. When this setting is populated, the SDK version number in the status bar can be used to quickly switch between SDKs. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows).
725+
726+
## Experimental
727+
728+
### dart.daemonPort
729+
EXPERIMENTAL: The port where `flutter daemon` can be accessed if daemon is run remotely. This setting is intended for use by Google developers.
730+
731+
## Legacy
732+
733+
### dart.doNotFormat
734+
**LEGACY SETTING: Only applies to legacy analysis server protocol.**
735+
736+
An array of glob patterns that should be excluded for formatting. The pattern is matched against the absolute path of the file. Use `[ "**/test/**" ]` to skip formatting for all test directories. Must always use forward slashes (even on Windows) as backslashes are used for escaping.
737+
738+
### dart.flutterTrackWidgetCreation
739+
**Default:** `true`.
740+
<br />
741+
**LEGACY SETTING: Disabling this may break functionality on modern SDKs.**
742+
743+
Whether to pass `--track-widget-creation` to Flutter apps (required to support 'Inspect Widget'). This setting is always ignored when running in Profile or Release mode.
744+
634745
# Custom Color Settings
635746

636747
Some colors in Dart Code can be customized using the `workbench.colorCustomizations` section in settings. Supported colors are:
@@ -649,3 +760,53 @@ There are several settings for enabling logging of various services used by Dart
649760

650761
### dart.analyzerDiagnosticsPort
651762
The port number to be used for the Dart analyzer diagnostic server. This setting is can be useful for troubleshooting issues with the Dart Analysis Server.
763+
764+
## Logging
765+
766+
### dart.analyzerInstrumentationLogFile
767+
The path to a log file for very detailed logging in the Dart Analysis Server that may be useful when trying to diagnose Analysis Server issues. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Analyzer Instrumentation Logging](/docs/logging/#analyzer-instrumentation).
768+
769+
### dart.analyzerLogFile
770+
The path to a log file for communication between Dart Code and the Analysis Server. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Analyzer Logging](/docs/logging/#analyzer).
771+
772+
### dart.dapLogFile
773+
The path to a log file for communication with the DAP debug adapters. This is useful when trying to diagnose issues with debugging such as missed breakpoints. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `${kind}` to insert a description of the kind of debug session ('dart', 'dart_test', 'flutter' etc.). Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.
774+
775+
### dart.devToolsLogFile
776+
The path to a low-traffic log file for the Dart DevTools service. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.
777+
778+
### dart.extensionLogFile
779+
The path to a low-traffic log file for basic extension and editor issues. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Extension Logging](/docs/logging/#extension).
780+
781+
### dart.flutterDaemonLogFile
782+
The path to a log file for the `flutter daemon` service, which provides information about connected devices accessible from the status bar. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Flutter Daemon Logging](/docs/logging/#flutter-daemon).
783+
784+
### dart.toolingDaemonLogFile
785+
The path to a log file for the `dart tooling-daemon` service, which coordinates between various Dart and Flutter tools and extensions. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.
786+
787+
## Legacy
788+
789+
### dart.dartTestLogFile
790+
**LEGACY SETTING: Only applies when using the legacy debug adapters.**
791+
792+
The path to a log file for Dart test runs. This is useful when trying to diagnose issues with unit test executions. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.
793+
794+
### dart.flutterRunLogFile
795+
**LEGACY SETTING: Only applies when using the legacy debug adapters.**
796+
797+
The path to a log file for `flutter run`, which is used to launch Flutter apps from VS Code. This is useful when trying to diagnose issues with apps launching (or failing to) on simulators and devices. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Flutter Run Logging](/docs/logging/#flutter-run).
798+
799+
### dart.flutterTestLogFile
800+
**LEGACY SETTING: Only applies when using the legacy debug adapters.**
801+
802+
The path to a log file for `flutter test`, which is used to run unit tests from VS Code. This is useful when trying to diagnose issues with unit test executions. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is. For more information on capturing these logs, see [Flutter Test Logging](/docs/logging/#flutter-test).
803+
804+
### dart.vmServiceLogFile
805+
**LEGACY SETTING: Only applies when using the legacy debug adapters.**
806+
807+
The path to a log file for communication between Dart Code and the VM service. This is useful when trying to diagnose issues with debugging such as missed breakpoints. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.
808+
809+
### dart.webDaemonLogFile
810+
**LEGACY SETTING: Only applies when using the legacy debug adapters.**
811+
812+
The path to a log file for communication between Dart Code and the webdev daemon. This is useful when trying to diagnose issues with launching web apps. Use `${name}` in the log file name to insert the Debug Session name to prevent concurrent debug sessions overwriting each others logs. Use `${workspaceName}` to insert the name of the current workspace in the file path. Use `~` to insert the user's home directory (the path should then use `/` separators even on Windows). Only the noted substitutions are supported, others will stay as-is.

0 commit comments

Comments
 (0)