public OmniSharpWorkspace(HostServicesAggregator aggregator, ILoggerFactory loggerFactory, IFileSystemWatcher fileSystemWatcher) : base(aggregator.CreateHostServices(), "Custom") { BufferManager = new BufferManager(this, fileSystemWatcher); _logger = loggerFactory.CreateLogger <OmniSharpWorkspace>(); fileSystemWatcher.WatchDirectories(OnDirectoryRemoved); }
public static OmniSharpWorkspace Create() { lock (s_workspaceLock) { var factory = LoggerFactory.Create((b) => { }); var hostServicesAggregator = new HostServicesAggregator(Enumerable.Empty <IHostServicesProvider>(), factory); var workspace = new OmniSharpWorkspace(hostServicesAggregator, factory, TestFileSystemWatcher.Instance); return(workspace); } }
public static OmniSharpWorkspace Create() { lock (WorkspaceLock) { var factory = LoggerFactory.Create((b) => { }); var hostServicesAggregator = new HostServicesAggregator(Enumerable.Empty <IHostServicesProvider>(), factory); var fileSystemWatcher = Mock.Of <IFileSystemWatcher>(MockBehavior.Strict); var workspace = new OmniSharpWorkspace(hostServicesAggregator, factory, fileSystemWatcher); return(workspace); } }
public OmniSharpWorkspace(HostServicesAggregator aggregator, ILoggerFactory loggerFactory) : base(aggregator.CreateHostServices(), "Custom") { BufferManager = new BufferManager(this); _logger = loggerFactory.CreateLogger <OmniSharpWorkspace>(); }
public OmnisharpWorkspace(HostServicesAggregator aggregator) : base(aggregator.CreateHostServices(), "Custom") { BufferManager = new BufferManager(this); }
public OmniSharpWorkspace(HostServicesAggregator aggregator, ILoggerFactory loggerFactory, IFileSystemWatcher fileSystemWatcher) : this(aggregator.CreateHostServices(), loggerFactory, fileSystemWatcher) { }