import { AutoWire , BaseEnvironment , Logger , WorkspaceFolder } from "@vmware/vrdt-common" ; import { InitializeParams } from "vscode-languageclient" ; import { Initializer } from "./Initializer" ; import { Settings } from "./Settings" ; @ AutoWire export class Environment extends BaseEnvironment { protected readonly logger = Logger . get ( "Environment" ) ; workspaceFolders : WorkspaceFolder [ ] = [ ] ; constructor ( protected config , initializer ) { super ( ) ; initializer . onInitialize ( this . initialize . bind ( this ) ) ; this . logger . debug ( "Created LS environment" ) ; } private initialize ( event ) { if ( event . workspaceFolders ) { this . workspaceFolders = event . workspaceFolders . map ( e => WorkspaceFolder . fromProtocol ( e ) ) ; } } }