workspace.workspaceFolders API should return undefined when no folder is open #8640
Labels
bug
bugs found in the application
plug-in system
issues related to the plug-in system
Team: Che-Editors
issues regarding the che-editors team
vscode
issues related to VSCode compatibility
Milestone
Bug Description:
workspace.workspaceFolders
Plugin API should returnundefined
when no folder is open. But it returns an empty array. It leads to the failure of some VS Code extensions that rely onundefined
value.Steps to Reproduce:
plugins
folder and run Theia.Hello World
command from the Commands Palette when no workspace folder is opened.ws api returns 0 workspace folders
, but has to showno workspace folders
as it is in VS Code.Additional Information
The text was updated successfully, but these errors were encountered: