Gets the workspace file path

How to get the path of the file in the current workspace, which was previously available from worksapce.uri, but after the new version, this attribute is removed!

@kingkiller thank you for the discussion, which version did it work at, it’s been a while I haven’t seen workspace.uri.

You can take a look at the documentation (https://eclipse-theia.github.io/theia/docs/next/classes/workspace.workspaceservice-1.html) likely what you want is tryGetRoots.

@vince-fugnitto Thank you for the documentation, which is of great help to me. I used version 1.2.1 before, so it should be an older version. Now I’ve updated it to the latest version