mirror of
https://github.com/coder/code-server.git
synced 2026-05-05 20:15:19 +02:00
fix(lib/vscode): fix lint errors
This commit is contained in:
@@ -279,12 +279,12 @@ export class ExtensionsScanner extends Disposable {
|
||||
/*
|
||||
* NOTE@coder: use fileService.resolve() like upstream does,
|
||||
* but simply ignore directories that do not exist. (upstream does not)
|
||||
*
|
||||
*
|
||||
* Used to (<1.54) use pfs.readdir.
|
||||
*/
|
||||
const stat = await this.fileService.resolve(URI.file(dir))
|
||||
.catch((error) => {
|
||||
if (!(error instanceof FileOperationError && error.fileOperationResult == FileOperationResult.FILE_NOT_FOUND)) {
|
||||
if (!(error instanceof FileOperationError && error.fileOperationResult === FileOperationResult.FILE_NOT_FOUND)) {
|
||||
throw error;
|
||||
}
|
||||
return undefined;
|
||||
|
||||
Reference in New Issue
Block a user