LSP-Dart
Convenience plugin for the Dart Analysis Server, bundled in the Dart SDK
Details
Installs
- Total 5K
- Win 2K
- Mac 1K
- Linux 1K
| Jun 13 | Jun 12 | Jun 11 | Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 1 | 0 | 5 | 1 | 3 | 2 | 3 | 2 | 1 | 1 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 | 2 | 0 | 2 | 0 | 0 | 0 | 2 | 3 | 0 | 2 | 1 | 0 | 0 | 1 | 2 | 0 | 3 | 4 | 2 | 1 | 0 | 1 | 2 | 1 |
| Mac | 0 | 1 | 0 | 0 | 2 | 0 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 2 |
| Linux | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 4 | 1 | 0 | 0 | 0 | 2 | 2 | 0 | 0 | 3 | 4 | 0 | 0 | 3 | 1 | 0 | 1 | 0 | 2 | 2 | 0 | 2 | 1 |
Readme
- Source
- raw.githubusercontent.com
LSP-Dart
This is a helper package that automatically starts the Dart Analysis Server for you.
To use this package, you must have:
- The LSP package.
- A Dart syntax. Try Dartlight.
- A Flutter SDK or a Dart SDK. See https://dart.dev/get-dart.
The language server is bundled inside the SDK. This package will attempt to utilize that fact. If it won't be able to find it automaticaly then you will have to define FLUTTER_ROOT or DART_SDK in your environment variables. You can also define one of them in the "env" key of LSP-Dart.sublime-settings so that you can have different SDKs active per .sublime-project. Run the command Preferences: LSP-Dart Settings to set up the environment variables.
Applicable Selectors
This language server operates on views with the source.dart base scope.
Installation Location
This helper package doesn't install any binaries.
Server-specific commands
You can run LSP-Dart: Goto Super from the command palette to jump to a super class. The relevant command is lsp_dart_super in case you want to bind it to a keybinding.
Quirks
The language server is capable of “signature help”, but you have to trigger it manually. Run the command Preferences: LSP Keybindings to find out what the keybinding is to manually invoke “signature help”.
Capabilities
Dart Analysis Server can do a lot of cool things, like
- code completion
- signature help
- hover info
- some quality code actions
- formatting
- find references
- goto def