Skip to content

Commit e63e203

Browse files
authored
Improve sdk path explanations
1 parent 7c710f5 commit e63e203

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ You can also open the [Dart DevTools](https://dart.dev/tools/dart-devtools) on t
150150

151151
| Variable | Description | Default |
152152
|:-------------------------------------------------|:--------------------------------------------------------------------------------------------------------|:------------------|
153-
| `lsp-dart-sdk-dir` | The optional Dart SDK path. | `nil` |
154-
| `lsp-dart-flutter-sdk-dir` | The optional Flutter SDK path. | `nil` |
153+
| `lsp-dart-sdk-dir` | The optional Dart SDK path. If nil and in a flutter project, it will try to find the dart SDK from Flutter SDK cache dir, otherwise it will search for a dart executable in `$PATH`. | `nil` |
154+
| `lsp-dart-flutter-sdk-dir` | The optional Flutter SDK path. If nil, it will try to find the Flutter SDK from the `flutter` executable in `$PATH` and if not found, it will try in `$FLUTTER_ROOT`. | `nil` |
155155
| `lsp-dart-server-command` | `analysis_server` executable to use | Check source file |
156156
| `lsp-dart-extra-library-directories` | Extra libs to analyze besides Dart SDK libs | `'()` |
157157
| `lsp-dart-only-analyze-projects-with-open-files` | Analysis will only be performed for projects that have open files rather than the root workspace folder | `t` |

0 commit comments

Comments
 (0)