提交 95615e93 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Merge pull request #13622 from CyrusNajmabadi/persistenceLayer

Export persistence service at appropriate layer.
......@@ -98,6 +98,7 @@ private IDiagnosticAnalyzerService GetDiagnosticAnalyzerService(IEnumerable<Lazy
{
// Sort list so BaseDiagnosticIncrementalAnalyzers (if any) come first. OrderBy orders 'false' keys before 'true'.
return providers.Select(p => p.Value.CreateIncrementalAnalyzer(registration.Workspace))
.WhereNotNull()
.OrderBy(a => !(a is BaseDiagnosticIncrementalAnalyzer))
.ToImmutableArray();
}
......@@ -194,6 +195,11 @@ private void ResetLogAggregator()
}
var local = analyzer;
if (local == null)
{
return;
}
await GetOrDefaultAsync(value, async (v, c) =>
{
await runnerAsync(local, v, c).ConfigureAwait(false);
......
......@@ -9,7 +9,7 @@
namespace Microsoft.CodeAnalysis.Storage
{
[ExportWorkspaceServiceFactory(typeof(IPersistentStorageService), ServiceLayer.Host), Shared]
[ExportWorkspaceServiceFactory(typeof(IPersistentStorageService), ServiceLayer.Desktop), Shared]
internal class PersistenceStorageServiceFactory : IWorkspaceServiceFactory
{
private readonly SolutionSizeTracker _solutionSizeTracker;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册