Skip to content

Commit 76e5629

Browse files
committed
delete commented out code
1 parent 971d6e2 commit 76e5629

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

packages/core/src/shared/filesystemUtilities.ts

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -221,35 +221,6 @@ export async function hasFileWithSuffix(dir: string, suffix: string, exclude?: v
221221
return matchedFiles.length > 0
222222
}
223223

224-
// /**
225-
// * TEMPORARY SHIM for vscode.workspace.findFiles() on Cloud9.
226-
// *
227-
// * @param dir Directory to search
228-
// * @param fileName Name of file to locate
229-
// * @returns List of one or zero Uris (for compat with vscode.workspace.findFiles())
230-
// */
231-
// export async function cloud9Findfile(dir: string, fileName: string): Promise<vscode.Uri[]> {
232-
// getLogger().debug('cloud9Findfile: %s', dir)
233-
// const files = await fs.readdir(dir)
234-
// const subDirs: vscode.Uri[] = []
235-
// for (const file of files) {
236-
// const [currentFileName] = file
237-
// const filePath = path.join(dir, currentFileName)
238-
// if (filePath === path.join(dir, fileName)) {
239-
// return [vscode.Uri.file(filePath)]
240-
// }
241-
// if (await fs.existsDir(filePath)) {
242-
// subDirs.push(vscode.Uri.file(filePath))
243-
// }
244-
// }
245-
// for (const d of subDirs) {
246-
// const found = await cloud9Findfile(d.fsPath, fileName)
247-
// if (found.length > 0) {
248-
// return found
249-
// }
250-
// }
251-
// return []
252-
// }
253224
/**
254225
* @returns A string path to the last locally stored download location. If none, returns the users 'Downloads' directory path.
255226
*/

0 commit comments

Comments
 (0)