public RemoteLanguageServiceWorkspace( ExportProvider exportProvider, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, IVsFolderWorkspaceService vsFolderWorkspaceService, SVsServiceProvider serviceProvider, IDiagnosticService diagnosticService, ITableManagerProvider tableManagerProvider, IGlobalOptionService globalOptions, IThreadingContext threadingContext) : base(VisualStudioMefHostServices.Create(exportProvider), WorkspaceKind.CloudEnvironmentClientWorkspace) { _serviceProvider = serviceProvider; _remoteDiagnosticListTable = new RemoteDiagnosticListTable(serviceProvider, this, globalOptions, diagnosticService, tableManagerProvider); var runningDocumentTable = (IVsRunningDocumentTable)serviceProvider.GetService(typeof(SVsRunningDocumentTable)); _runningDocumentTableEventTracker = new RunningDocumentTableEventTracker(threadingContext, editorAdaptersFactoryService, runningDocumentTable, this); _threadingContext = threadingContext; _vsFolderWorkspaceService = vsFolderWorkspaceService; _remoteWorkspaceRootPaths = ImmutableHashSet <string> .Empty; _registeredExternalPaths = ImmutableHashSet <string> .Empty; }
public RemoteLanguageServiceWorkspace(ExportProvider exportProvider, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, SVsServiceProvider serviceProvider, IDiagnosticService diagnosticService, ITableManagerProvider tableManagerProvider, IThreadingContext threadingContext) : base(VisualStudioMefHostServices.Create(exportProvider), WorkspaceKind.AnyCodeRoslynWorkspace) { _serviceProvider = serviceProvider; _remoteDiagnosticListTable = new RemoteDiagnosticListTable(serviceProvider, this, diagnosticService, tableManagerProvider); var componentModel = _serviceProvider.GetService(typeof(SComponentModel)) as IComponentModel; Assumes.Present(componentModel); _editorAdaptersFactoryService = componentModel.GetService <IVsEditorAdaptersFactoryService>(); var runningDocumentTable = (IVsRunningDocumentTable)serviceProvider.GetService(typeof(SVsRunningDocumentTable)); _runningDocumentTableEventTracker = new RunningDocumentTableEventTracker(threadingContext, editorAdaptersFactoryService, runningDocumentTable, this); _threadingContext = threadingContext; }