IoLspTransport class final

An LspTransport over a spawned process's stdio.

Implemented types

Properties

exitCode → Future<int>
Completes with the server's exit code when the process ends, normally or not. Completes with an error when the exit cannot be determined.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
messages → Stream<List<int>>
Raw bytes from the server's stdout. The stream closing (normally or by error) means the connection is dead.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

kill() → void
Terminates the server process. Idempotent.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(List<int> data) → void
Writes raw (already framed) bytes to the server's stdin.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

spawn({required String command, required List<String> args, required String cwd}) → Future<IoLspTransport>
Spawns command with args in cwd. Throws LspServerUnavailableException when the executable cannot be started (e.g. not on PATH) so the lsp tool degrades to a clean error result instead of crashing.