I've VSCode extension and I need to know if user is using multiroot projects view (multiple projects are opened ) or just one project, how should I differentiate ?
I try with the following:
if (!workspace.workspaceFolders || workspace.workspaceFolders.length < 2) {
console.dir(`workspace folders ${JSON.stringify(workspace.workspaceFolders)} && workspace length ${workspace.workspaceFolders?.length}`)
}
But it doesn't works give me that data, is there other way to achive this ?
this is what I need
- if user open a project directly
- if user open more then on project using multi root mode
- if user open one project in multi root mode (maybe it's like the first)