onDidChangeWorkspaceFolders property

Event<WorkspaceFoldersChangeEvent> get onDidChangeWorkspaceFolders

An event that is emitted when a workspace folder is added or removed.

Note: this event will not fire if the first workspace folder is added, removed or changed, because in that case the currently executing extensions (including the one that listens to this event) will be terminated and restarted so that the (deprecated) rootPath property is updated to point to the first workspace folder.

Implementation

_i3.Event<_i3.WorkspaceFoldersChangeEvent> get onDidChangeWorkspaceFolders =>
    _i4.getProperty(
      this,
      'onDidChangeWorkspaceFolders',
    );