workspaceFolders property

List<WorkspaceFolder>? get workspaceFolders

List of workspace folders (0-N) that are open in the editor. undefined when no workspace has been opened.

Refer to https://code.visualstudio.com/docs/editor/workspaces for more information on workspaces.

Implementation

_i2.List<_i3.WorkspaceFolder>? get workspaceFolders => (_i4.getProperty(
      this,
      'workspaceFolders',
    ) as _i2.List?)
        ?.cast();