import { IServiceManager } from '../ioc/types' ; import { ApplicationShell } from './applicationShell' ; import { CommandManager } from './commandManager' ; import { DisposableRegistry } from './disposableRegistry' ; import { DocumentManager } from './documentManager' ; import { WorkspaceStateStoreFactory } from './stateStore' ; import { IApplicationShell } from './types' ; import { ICommandManager } from './types/commandManager' ; import { IDisposableRegistry } from './types/disposableRegistry' ; import { IDocumentManager } from './types/documentManager' ; import { IStateStoreFactory } from './types/stateStore' ; import { IWorkspaceService } from './types/workspace' ; import { WorkspaceService } from './workspace' ; export function registerTypes ( serviceManager ) { serviceManager . addSingleton < IApplicationShell > ( IApplicationShell , ApplicationShell ) ; serviceManager . addSingleton < ICommandManager > ( ICommandManager , CommandManager ) ; serviceManager . addSingleton < IDisposableRegistry > ( IDisposableRegistry , DisposableRegistry ) ; serviceManager . addSingleton < IDocumentManager > ( IDocumentManager , DocumentManager ) ; serviceManager . addSingleton < IWorkspaceService > ( IWorkspaceService , WorkspaceService ) ; serviceManager . add < IStateStoreFactory > ( IStateStoreFactory , WorkspaceStateStoreFactory ) ; }