Skip to content

lspeasy / core/src / WorkspaceEditSchema

Variable: WorkspaceEditSchema

ts
const WorkspaceEditSchema: ZodObject<{
  changeAnnotations: ZodOptional<ZodRecord<ZodString, ZodObject<{
     description: ZodOptional<ZodString>;
     label: ZodString;
     needsConfirmation: ZodOptional<ZodBoolean>;
  }, $strip>>>;
  changes: ZodOptional<ZodRecord<ZodString, ZodArray<ZodObject<{
     newText: ZodString;
     range: ZodObject<{
        end: ZodObject<{
           character: ...;
           line: ...;
        }, $strip>;
        start: ZodObject<{
           character: ...;
           line: ...;
        }, $strip>;
     }, $strip>;
  }, $strip>>>>;
  documentChanges: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
     edits: ZodArray<ZodUnion<readonly [..., ..., ...]>>;
     textDocument: ZodObject<{
        uri: ZodString;
        version: ZodUnion<...>;
     }, $strip>;
   }, $strip>, ZodObject<{
     annotationId: ZodOptional<ZodString>;
     kind: ZodLiteral<"create">;
     options: ZodOptional<ZodObject<{
        ignoreIfExists: ...;
        overwrite: ...;
     }, $strip>>;
     uri: ZodString;
   }, $strip>, ZodObject<{
     annotationId: ZodOptional<ZodString>;
     kind: ZodLiteral<"rename">;
     newUri: ZodString;
     oldUri: ZodString;
     options: ZodOptional<ZodObject<{
        ignoreIfExists: ...;
        overwrite: ...;
     }, $strip>>;
   }, $strip>, ZodObject<{
     annotationId: ZodOptional<ZodString>;
     kind: ZodLiteral<"delete">;
     options: ZodOptional<ZodObject<{
        ignoreIfNotExists: ...;
        recursive: ...;
     }, $strip>>;
     uri: ZodString;
  }, $strip>]>>>;
}, $strip>;

Defined in: packages/core/src/protocol/schemas.ts:674

Released under the MIT License.