Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • CommonWorkspaceUtils

Index

Constructors

Methods

  • getUntitledWorkspaceUri(configDirUri: URI, isAcceptable: ((candidate: URI) => MaybePromise<boolean>), warnOnHits?: (() => unknown)): Promise<URI>
  • Parameters

    • configDirUri: URI
    • isAcceptable: ((candidate: URI) => MaybePromise<boolean>)
        • (candidate: URI): MaybePromise<boolean>
        • Parameters

          • candidate: URI

          Returns MaybePromise<boolean>

    • Optional warnOnHits: (() => unknown)
        • (): unknown
        • Returns unknown

    Returns Promise<URI>

  • isUntitledWorkspace(candidate?: URI): boolean
  • isWorkspaceFile(candidate: URI | FileStat): boolean
  • Check if the file should be considered as a workspace file.

    Example: We should not try to read the contents of an .exe file.

    Parameters

    • candidate: URI | FileStat

    Returns boolean