@kkdev92/vscode-ext-kit - v4.1.1
    Preparing search index...

    Function err

    • Creates a failure Result.

      Type Parameters

      • E

      Parameters

      • error: E

        The error value.

      • options: { cancelled?: boolean } = {}

        Set cancelled: true when the failure represents a cancellation rather than a real error.

      Returns Result<never, E>

      return err(new Error('no workspace'));
      return err(cause, { cancelled: true });