lspeasy / core/src / CodeActionParamsSchema
Variable: CodeActionParamsSchema
ts
const CodeActionParamsSchema: ZodObject<{
context: ZodObject<{
diagnostics: ZodArray<ZodObject<{
code: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
codeDescription: ZodOptional<ZodObject<{
href: ZodString;
}, $strip>>;
data: ZodOptional<ZodLazy<ZodType<unknown, unknown, $ZodTypeInternals<..., ...>>>>;
message: ZodString;
range: ZodObject<{
end: ZodObject<{
character: ...;
line: ...;
}, $strip>;
start: ZodObject<{
character: ...;
line: ...;
}, $strip>;
}, $strip>;
relatedInformation: ZodOptional<ZodArray<ZodObject<{
location: ...;
message: ...;
}, $strip>>>;
severity: ZodOptional<ZodUnion<readonly [ZodLiteral<...>, ZodLiteral<...>, ZodLiteral<...>, ZodLiteral<...>]>>;
source: ZodOptional<ZodString>;
tags: ZodOptional<ZodArray<ZodUnion<readonly [..., ...]>>>;
}, $strip>>;
only: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<"">, ZodLiteral<"quickfix">, ZodLiteral<"refactor">, ZodLiteral<"refactor.extract">, ZodLiteral<"refactor.inline">, ZodLiteral<"refactor.move">, ZodLiteral<"refactor.rewrite">, ZodLiteral<"source">, ZodLiteral<"source.organizeImports">, ZodLiteral<"source.fixAll">, ZodLiteral<"notebook">, ZodString]>>>;
triggerKind: ZodOptional<ZodUnion<readonly [ZodLiteral<1>, ZodLiteral<2>]>>;
}, $strip>;
partialResultToken: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
range: ZodObject<{
end: ZodObject<{
character: ZodNumber;
line: ZodNumber;
}, $strip>;
start: ZodObject<{
character: ZodNumber;
line: ZodNumber;
}, $strip>;
}, $strip>;
textDocument: ZodObject<{
uri: ZodString;
}, $strip>;
workDoneToken: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
}, $strip>;Defined in: packages/core/src/protocol/schemas.ts:1962