createAuthoringProtocolServer
@gooi/language-server / features/protocol/create-authoring-protocol-server / createAuthoringProtocolServer
Function: createAuthoringProtocolServer()
createAuthoringProtocolServer(
input):AuthoringProtocolServer
Defined in: authoring/language-server/src/features/protocol/create-authoring-protocol-server.ts:39
Creates a protocol server that routes protocol methods to authoring handlers.
Parameters
| Parameter | Type |
|---|---|
input | { context: { capabilityIndexSnapshot: { artifactHash: string; artifactVersion: "1.0.0"; capabilities: object[]; catalogIdentity: { catalogHash: string; catalogSource: string; catalogVersion: string; }; sourceHash: string; }; compiledEntrypointBundleIdentity: { artifactHash: string; artifactId: "CompiledEntrypointBundle"; artifactVersion: string; }; documentPath: string; documentText: string; documentUri: string; lockfile: { artifactHash: string; artifactVersion: "1.0.0"; catalogSnapshot: { catalogHash: string; catalogSource: string; catalogVersion: string; }; envelopeVersions: { authoringDiagnosticsEnvelope: "1.0.0"; authoringErrorEnvelope: "1.0.0"; authoringRequestEnvelope: "1.0.0"; authoringResultEnvelope: "1.0.0"; }; remoteSource?: { fetchedAt: string; id: string; url: string; }; requiredArtifacts: { capabilityIndexSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; compiledEntrypointBundle: { artifactHash: string; artifactId: string; artifactVersion: string; }; symbolGraphSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; }; sourceHash: string; sourceKind: "workspace-local"; }; sourceSpec?: unknown; symbolGraphSnapshot: { artifactHash: string; artifactVersion: "1.0.0"; references: object[]; renameConstraints: object[]; sourceHash: string; symbols: object[]; }; }; hooks?: AuthoringProtocolServerHooks; initialVersion?: number; } |
input.context | { capabilityIndexSnapshot: { artifactHash: string; artifactVersion: "1.0.0"; capabilities: object[]; catalogIdentity: { catalogHash: string; catalogSource: string; catalogVersion: string; }; sourceHash: string; }; compiledEntrypointBundleIdentity: { artifactHash: string; artifactId: "CompiledEntrypointBundle"; artifactVersion: string; }; documentPath: string; documentText: string; documentUri: string; lockfile: { artifactHash: string; artifactVersion: "1.0.0"; catalogSnapshot: { catalogHash: string; catalogSource: string; catalogVersion: string; }; envelopeVersions: { authoringDiagnosticsEnvelope: "1.0.0"; authoringErrorEnvelope: "1.0.0"; authoringRequestEnvelope: "1.0.0"; authoringResultEnvelope: "1.0.0"; }; remoteSource?: { fetchedAt: string; id: string; url: string; }; requiredArtifacts: { capabilityIndexSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; compiledEntrypointBundle: { artifactHash: string; artifactId: string; artifactVersion: string; }; symbolGraphSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; }; sourceHash: string; sourceKind: "workspace-local"; }; sourceSpec?: unknown; symbolGraphSnapshot: { artifactHash: string; artifactVersion: "1.0.0"; references: object[]; renameConstraints: object[]; sourceHash: string; symbols: object[]; }; } |
input.context.capabilityIndexSnapshot | { artifactHash: string; artifactVersion: "1.0.0"; capabilities: object[]; catalogIdentity: { catalogHash: string; catalogSource: string; catalogVersion: string; }; sourceHash: string; } |
input.context.capabilityIndexSnapshot.artifactHash | string |
input.context.capabilityIndexSnapshot.artifactVersion | "1.0.0" |
input.context.capabilityIndexSnapshot.capabilities | object[] |
input.context.capabilityIndexSnapshot.catalogIdentity | { catalogHash: string; catalogSource: string; catalogVersion: string; } |
input.context.capabilityIndexSnapshot.catalogIdentity.catalogHash | string |
input.context.capabilityIndexSnapshot.catalogIdentity.catalogSource | string |
input.context.capabilityIndexSnapshot.catalogIdentity.catalogVersion | string |
input.context.capabilityIndexSnapshot.sourceHash | string |
input.context.compiledEntrypointBundleIdentity | { artifactHash: string; artifactId: "CompiledEntrypointBundle"; artifactVersion: string; } |
input.context.compiledEntrypointBundleIdentity.artifactHash | string |
input.context.compiledEntrypointBundleIdentity.artifactId | "CompiledEntrypointBundle" |
input.context.compiledEntrypointBundleIdentity.artifactVersion | string |
input.context.documentPath | string |
input.context.documentText | string |
input.context.documentUri | string |
input.context.lockfile | { artifactHash: string; artifactVersion: "1.0.0"; catalogSnapshot: { catalogHash: string; catalogSource: string; catalogVersion: string; }; envelopeVersions: { authoringDiagnosticsEnvelope: "1.0.0"; authoringErrorEnvelope: "1.0.0"; authoringRequestEnvelope: "1.0.0"; authoringResultEnvelope: "1.0.0"; }; remoteSource?: { fetchedAt: string; id: string; url: string; }; requiredArtifacts: { capabilityIndexSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; compiledEntrypointBundle: { artifactHash: string; artifactId: string; artifactVersion: string; }; symbolGraphSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; }; sourceHash: string; sourceKind: "workspace-local"; } |
input.context.lockfile.artifactHash | string |
input.context.lockfile.artifactVersion | "1.0.0" |
input.context.lockfile.catalogSnapshot | { catalogHash: string; catalogSource: string; catalogVersion: string; } |
input.context.lockfile.catalogSnapshot.catalogHash | string |
input.context.lockfile.catalogSnapshot.catalogSource | string |
input.context.lockfile.catalogSnapshot.catalogVersion | string |
input.context.lockfile.envelopeVersions | { authoringDiagnosticsEnvelope: "1.0.0"; authoringErrorEnvelope: "1.0.0"; authoringRequestEnvelope: "1.0.0"; authoringResultEnvelope: "1.0.0"; } |
input.context.lockfile.envelopeVersions.authoringDiagnosticsEnvelope | "1.0.0" |
input.context.lockfile.envelopeVersions.authoringErrorEnvelope | "1.0.0" |
input.context.lockfile.envelopeVersions.authoringRequestEnvelope | "1.0.0" |
input.context.lockfile.envelopeVersions.authoringResultEnvelope | "1.0.0" |
input.context.lockfile.remoteSource? | { fetchedAt: string; id: string; url: string; } |
input.context.lockfile.remoteSource.fetchedAt | string |
input.context.lockfile.remoteSource.id | string |
input.context.lockfile.remoteSource.url | string |
input.context.lockfile.requiredArtifacts | { capabilityIndexSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; compiledEntrypointBundle: { artifactHash: string; artifactId: string; artifactVersion: string; }; symbolGraphSnapshot: { artifactHash: string; artifactId: string; artifactVersion: string; }; } |
input.context.lockfile.requiredArtifacts.capabilityIndexSnapshot | { artifactHash: string; artifactId: string; artifactVersion: string; } |
input.context.lockfile.requiredArtifacts.capabilityIndexSnapshot.artifactHash | string |
input.context.lockfile.requiredArtifacts.capabilityIndexSnapshot.artifactId | string |
input.context.lockfile.requiredArtifacts.capabilityIndexSnapshot.artifactVersion | string |
input.context.lockfile.requiredArtifacts.compiledEntrypointBundle | { artifactHash: string; artifactId: string; artifactVersion: string; } |
input.context.lockfile.requiredArtifacts.compiledEntrypointBundle.artifactHash | string |
input.context.lockfile.requiredArtifacts.compiledEntrypointBundle.artifactId | string |
input.context.lockfile.requiredArtifacts.compiledEntrypointBundle.artifactVersion | string |
input.context.lockfile.requiredArtifacts.symbolGraphSnapshot | { artifactHash: string; artifactId: string; artifactVersion: string; } |
input.context.lockfile.requiredArtifacts.symbolGraphSnapshot.artifactHash | string |
input.context.lockfile.requiredArtifacts.symbolGraphSnapshot.artifactId | string |
input.context.lockfile.requiredArtifacts.symbolGraphSnapshot.artifactVersion | string |
input.context.lockfile.sourceHash | string |
input.context.lockfile.sourceKind | "workspace-local" |
input.context.sourceSpec? | unknown |
input.context.symbolGraphSnapshot | { artifactHash: string; artifactVersion: "1.0.0"; references: object[]; renameConstraints: object[]; sourceHash: string; symbols: object[]; } |
input.context.symbolGraphSnapshot.artifactHash | string |
input.context.symbolGraphSnapshot.artifactVersion | "1.0.0" |
input.context.symbolGraphSnapshot.references | object[] |
input.context.symbolGraphSnapshot.renameConstraints | object[] |
input.context.symbolGraphSnapshot.sourceHash | string |
input.context.symbolGraphSnapshot.symbols | object[] |
input.hooks? | AuthoringProtocolServerHooks |
input.initialVersion? | number |