import * as vscode from 'vscode' ; export class ToolsWorkspaceFoldersChangeRequest { added : string [ ] | undefined ; removed : string [ ] | undefined ; constructor ( addedFolders , removedFolders ) { this . added = this . getFolders ( addedFolders ) ; this . removed = this . getFolders ( removedFolders ) ; } protected getFolders ( wsFolders ) { if ( wsFolders ) { let folders = [ ] ; for ( let i = 0 ; i < wsFolders . length ; i ++ ) { if ( ( wsFolders [ i ] . uri ) && ( wsFolders [ i ] . uri . fsPath ) ) folders . push ( wsFolders [ i ] . uri . fsPath ) ; } return folders ; } return undefined ; } }