Optional
__namedParameters: SockDaemonClientOptionsTrue if currently connected to the daemon service
True if the client is currently connected
The execArgv that is used when spawning the daemon script.
Path where daemon logs are written
Path where the daemonScript mtime is written
The folder where this daemon service stores stuff
File containing the daemon process ID
List of current pending requests
Path to the socket used by this service
Static
daemonPath to the script that is the daemon program for node to run on demand in the background.
Static
serviceAlways 'tsimp'. Used by SockDaemon to know where to put stuff.
Compile the code contained in inputFile
.
Return the fileName that the resulting JS was written to, and a string[] of diagnostics.
Set to check that a response is valid
Send a PING message to the server. This can be useful when you want to start the daemon, without making any specific request.
Explicitly start up the language service, used for type checking
This is a slow operation, but it's somewhat rare that you'd need to do this explicitly, since it's done on demand when needed. Mostly this is for testing purposes.
Send a request. The id
property is made optional, because it will
be overridden anyway by a generated message ID. Starts the daemon
script automatically if not already running, and connects if needed.
If an AbortSignal is provided, then the request will be dropped on an abort signal, and the promise rejected with the abort reason, if it has not already been resolved.
Optional
signal: AbortSignalOptional
signal: AbortSignal
Client that can perform various tasks with the TSIMP Daemon process.