예제 #1
0
 public OmniSharpWorkspace(HostServicesAggregator aggregator, ILoggerFactory loggerFactory, IFileSystemWatcher fileSystemWatcher)
     : base(aggregator.CreateHostServices(), "Custom")
 {
     BufferManager = new BufferManager(this, fileSystemWatcher);
     _logger       = loggerFactory.CreateLogger <OmniSharpWorkspace>();
     fileSystemWatcher.WatchDirectories(OnDirectoryRemoved);
 }
예제 #2
0
        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);
            }
        }
예제 #4
0
 public OmniSharpWorkspace(HostServicesAggregator aggregator, ILoggerFactory loggerFactory)
     : base(aggregator.CreateHostServices(), "Custom")
 {
     BufferManager = new BufferManager(this);
     _logger       = loggerFactory.CreateLogger <OmniSharpWorkspace>();
 }
예제 #5
0
 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)
 {
 }