Does not work because cutting away the leading path relies on the presence of the workspaceFolder member. But this does not exist if there is only one workspacefolder, because #addWorkspace() then does not create a WorkspaceFolderItem.
Best to create the complete tree cleanly and then filter it for display later.
Does not work because cutting away the leading path relies on the presence of the
workspaceFolder
member. But this does not exist if there is only one workspacefolder, because#addWorkspace()
then does not create aWorkspaceFolderItem
. Best to create the complete tree cleanly and then filter it for display later.