Class CommonWorkspaceUtils
Methods
getUntitledWorkspaceUri
- 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
Returns MaybePromise<boolean>
Optional warnOnHits: (() => unknown)
Returns Promise<URI>
isUntitledWorkspace
- isUntitledWorkspace(candidate?: URI): boolean
Parameters
Returns boolean
isWorkspaceFile
- isWorkspaceFile(candidate: URI | FileStat): boolean
Parameters
candidate: URI | FileStat
Returns 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.