lspeasy / core/src / CodeActionContextSchema
Variable: CodeActionContextSchema
ts
const CodeActionContextSchema: ZodObject<{
diagnostics: ZodArray<ZodObject<{
code: ZodOptional<ZodUnion<readonly [ZodNumber, ZodString]>>;
codeDescription: ZodOptional<ZodObject<{
href: ZodString;
}, $strip>>;
data: ZodOptional<ZodLazy<ZodType<unknown, unknown, $ZodTypeInternals<unknown, unknown>>>>;
message: ZodString;
range: ZodObject<{
end: ZodObject<{
character: ZodNumber;
line: ZodNumber;
}, $strip>;
start: ZodObject<{
character: ZodNumber;
line: ZodNumber;
}, $strip>;
}, $strip>;
relatedInformation: ZodOptional<ZodArray<ZodObject<{
location: ZodObject<{
range: ...;
uri: ...;
}, $strip>;
message: ZodString;
}, $strip>>>;
severity: ZodOptional<ZodUnion<readonly [ZodLiteral<1>, ZodLiteral<2>, ZodLiteral<3>, ZodLiteral<4>]>>;
source: ZodOptional<ZodString>;
tags: ZodOptional<ZodArray<ZodUnion<readonly [ZodLiteral<1>, ZodLiteral<2>]>>>;
}, $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>;Defined in: packages/core/src/protocol/schemas.ts:1957