-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
hackathonissues reserved for hackatonsissues reserved for hackatons
Description
Blocked for Hackathon
see:
| this.fileService.delete(uri, { ...options, useTrash: true }); |
Consider using 'await' for the promise inside this 'try' or replace it with 'Promise.prototype.catch(...)' usage.
An exception (including reject) thrown by a promise will not be caught by a nesting try block, due to the asynchronous nature of execution. Instead, use catch method of Promise or wrap it inside await expression.
This rule reports try-catch statements containing nothing else but call(s) to a function returning a Promise (thus it’s less likely that catch is intended to catch something else than Promise rejection).
- Operating System: All
- Theia Version: Latest
@marcdumais-work Do you want to use this for the Hackathon and add details?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
hackathonissues reserved for hackatonsissues reserved for hackatons