resolveAuthoringCodeLens
@gooi/language-server / features/actions/resolve-authoring-code-lens / resolveAuthoringCodeLens
Function: resolveAuthoringCodeLens()
resolveAuthoringCodeLens(
value):object
Defined in: authoring/language-server/src/features/actions/resolve-authoring-code-lens.ts:43
Resolves one code lens into executable command metadata.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | Untrusted code-lens resolve request. |
Returns
object
Resolved code lens with parity state.
lens
lens:
object=authoringCodeLensSchema
Type Declaration
lens.command?
optionalcommand:object
Type Declaration
lens.command.arguments?
optionalarguments:unknown[]
lens.command.id
id:
string
lens.command.title
title:
string
lens.data?
optionaldata:Record<string,unknown>
lens.kind
kind:
"run_query_or_mutation"|"show_providers_for_capability"|"show_affected_queries_for_signal"=authoringCodeLensKindSchema
lens.range
range:
object=authoringRangeSchema
Type Declaration
lens.range.end
end:
object=authoringPositionSchema
Type Declaration
lens.range.end.character
character:
number
lens.range.end.line
line:
number
lens.range.start
start:
object=authoringPositionSchema
Type Declaration
lens.range.start.character
character:
number
lens.range.start.line
line:
number
lens.symbolId
symbolId:
string
parity
parity:
object=authoringParityStateSchema
Type Declaration
parity.issues
issues:
object[]
Type Declaration
parity.lockfileHash
lockfileHash:
string=hashSchema
parity.status
status:
"matched"|"mismatch"
Example
const resolved = resolveAuthoringCodeLens({ context, lens });