Skip to content

JSON API server primarily used to format Dart code, using dart_polisher.

License

Notifications You must be signed in to change notification settings

xnfo-dart/formatter_server

Repository files navigation

Dart Formatter Server Formatter Issues

stdio Dart formatter server using Dart Polisher over an API Protocol

For use in IDE integration.

Download

IDE Extensions

Build

Compile to native:

dart run grinder build --output=<filename>

Build notes

(optional) Protocol spec and version is defined in
./tool/protocol_spec/spec-input.html

(optional) Update protocol files and doc using spec-input.html

dart run grinder generate

(for release) Bump version (protocol, app, and dependencies)

dart run grinder bump

(optional) Get version written in the pubspec file

dart run grinder version

The resulting executable is usually used as a daemon for IDE extensions, for example the VScode Extension loads this daemon from /bin to receive edit.format requests and overlay the requested files in memory.

Analysis Server

Server based on the analysis_server (base stdio bytestream server and protocol generators where taken and adapted to serve only requests)

License

BSD-3-Clause license

Most of the code is originaly from the Dart Authors.

About

JSON API server primarily used to format Dart code, using dart_polisher.

Resources

License

Stars

Watchers

Forks

Packages

No packages published