lsp 0.1.0

  • Readme
  • Changelog
  • Installing
  • new58

Tools for writing a language server following the Language Server Protocol.

Any class implementing LanguageServer can be started as a server communicating over stdin and stdout. Includes types for all the messages that can be sent to and from the client.

Looking for a Dart language server? #

The Dart language server implemented in this package is deprecated. Instead, use the analysis server from the Dart SDK with the --lsp flag.

0.1.0 #

  • Initial release. Forked from dart_language_server.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  lsp: ^0.1.0

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:lsp/lsp.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and lsp.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
async ^2.0.0 2.4.1
json_rpc_2 ^2.0.3 2.1.0
stream_channel ^2.0.0 2.0.0
Transitive dependencies
collection 1.14.12
path 1.6.4
stack_trace 1.9.3
Dev dependencies
build_runner ^1.0.0
message_builder ^0.1.6
pedantic ^1.9.0
test ^1.0.0