LspToolConfig class final

Configuration for the lsp tool; one per agent session (the client pool is session-scoped through it, like the task tool's stores).

Constructors

LspToolConfig({required LspTransportFactory transportFactory, LspConfig? config, int? processId, Duration requestTimeout = defaultLspRequestTimeout, Duration initTimeout = defaultLspRequestTimeout, Duration diagnosticsWait = defaultDiagnosticsWait, Duration? idleTimeout, LspClientManager? manager})
Creates an LspToolConfig. Exactly one of manager (tests/hosts drive the lifecycle) or the factory fields (the tool creates and owns the manager lazily) is used.
const

Properties

config LspConfig?
The server map. When null, LspConfig.load merges .fah/lsp.json over the built-in Dart defaults on first use.
final
diagnosticsWait Duration
How long diagnostics waits for a fresh publish.
final
hashCode int
The hash code for this object.
no setterinherited
idleTimeout Duration?
Idle shutdown timeout override; defaults to LspConfig.idleTimeout.
final
initTimeout Duration
Initialize-handshake timeout.
final
manager LspClientManager?
A prebuilt manager; when set, the fields above (except diagnosticsWait) are ignored.
final
processId int?
Host process id advertised to servers (they exit when it dies).
final
requestTimeout Duration
Default request timeout.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transportFactory LspTransportFactory
Spawns language servers. The io-side factory lives in lib/io.dart; hosts without process support (web) simply do not register the tool.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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