refactor: improve error codes return from LSP client
This commit is contained in:
parent
ba65fece7e
commit
d83d3a62bb
3 changed files with 11 additions and 5 deletions
|
@ -26,7 +26,7 @@ const OutOfMemoryError = error{OutOfMemory};
|
|||
const CallError = tp.CallError;
|
||||
const SpawnError = (OutOfMemoryError || error{ThespianSpawnFailed});
|
||||
pub const InvalidMessageError = error{ InvalidMessage, InvalidMessageField, InvalidTargetURI };
|
||||
pub const StartLspError = (error{ ThespianSpawnFailed, Timeout, InvalidArgument } || LspError || OutOfMemoryError || cbor.Error);
|
||||
pub const StartLspError = (error{ ThespianSpawnFailed, Timeout, InvalidLspCommand } || LspError || OutOfMemoryError || cbor.Error);
|
||||
pub const LspError = (error{ NoLsp, LspFailed } || OutOfMemoryError);
|
||||
pub const ClientError = (error{ClientFailed} || OutOfMemoryError);
|
||||
pub const LspOrClientError = (LspError || ClientError);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue