Skip to content

Unhandled exception in WorkspaceDeleteHandler#moveFileToTrash #11908

@JonasHelming

Description

@JonasHelming

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    hackathonissues reserved for hackatons

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions