import * as fse from 'fs-extra' ; import { Uri } from 'vscode' ; export async function pathExistsNoThrow ( path ) { try { const localPath = path instanceof Uri ? path . fsPath : path ; return ! ! localPath && await fse . pathExists ( localPath ) ; } catch ( err ) { return false ; } }