Converts a task DTO to a task.
returns the workspace folder that contains the given URI, so that a folder scoped task has the folder from workspace.workspaceFolders as its scope
workspace.workspaceFolders
scope
the task, or undefined if the task is scoped to a folder that is not in a workspace folder
undefined
Converts a task DTO to a task.