import { Uri , workspace , WorkspaceFolder } from "vscode" ; import { injectable } from "inversify" ; @ injectable ( ) export class WorkspaceProxy { public getConfigurationValue < T > ( value , section ? , resource ? ) { return workspace . getConfiguration ( section , resource ) . get < T > ( value ) ; } public get workspaceFolders ( ) : WorkspaceFolder [ ] | undefined { return workspace . workspaceFolders ; } public getWorkspaceFolders ( ) { return workspace . workspaceFolders ; } }