Skip to main content

Crate shipwright_zed

Crate shipwright_zed 

Source
Expand description

Zed-facing helpers for shipwright host integrations.

Zed extensions often cannot run native --version probes before the language server starts. This crate re-exports the pure host resolver and adds small helpers for representing deferred LSP checks and validating the serverInfo payload returned from LSP initialize.

Structs§

DotnetToolConfig
dotnet tool metadata for the dotnet-tool source.
EnvConfig
Env-var names this component consults.
ErrorDetails
Expected-vs-found details for a mismatch error.
LspServerInfo
The serverInfo subset Zed can verify from an LSP initialize response.
PkgmgrConfig
Package-manager install targets for the pkgmgr source.
ProbedVersion
Probe result: what <binary> --version reports.
Resolution
Final output of resolve.
ResolveInput
Runtime inputs for a single resolve call.

Enums§

DeferredCheck
Deferred check kinds.
ErrorCode
Known error codes.
Platform
Canonical platform identifiers. Mirrors schemas/platforms.json.
PromptAction
Actionable prompt payload.
Source
Ordered discovery sources declared in shipwright.schema.json.
Status
High-level outcome category.
WarningCode
Known warning codes.

Functions§

deferred_lsp_resolution
Build a deferred LSP version-check result for a resolved command path.
resolve
The single entry point. Every host library (TS, Kotlin, C#, Dart, Zed) ports this function and passes schemas/test-vectors.json bit-for-bit.
verify_lsp_server_info
Verify LSP serverInfo against the manifest component id and version.