Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main to main-vs-deps #53843

Merged
merged 24 commits into from
Jun 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ed3f297
Suppress ExecutionContext flow on SQLite hot path
sharwell May 19, 2021
f956d76
enables auto-attach to servicehub processes
jmarolf May 21, 2021
1f6d15e
have service hub debugging be its own profile
jmarolf May 21, 2021
1f902ca
Don't validate workspace invariants in release builds
jasonmalinowski May 27, 2021
035f873
Merge remote-tracking branch 'upstream/release/dev16.11' into merges/…
Cosifne May 29, 2021
7c11585
Merge pull request #53766 from dotnet/merges/release/dev16.11-to-main
Cosifne May 29, 2021
6580861
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] May 30, 2021
879ef60
Do not persist diagnostics just to purge them from memory
CyrusNajmabadi May 31, 2021
c34fa7a
Rename members for clarity
CyrusNajmabadi May 31, 2021
f944fc1
REmove unused code
CyrusNajmabadi May 31, 2021
de666d2
MOve static methods
CyrusNajmabadi May 31, 2021
4aeccc3
Remove unused field
CyrusNajmabadi May 31, 2021
0addecf
Update dependencies from https://github.com/dotnet/arcade build 20210…
dotnet-maestro[bot] Jun 1, 2021
0de95bb
Merge pull request #53723 from jasonmalinowski/check-invariants-in-de…
jasonmalinowski Jun 1, 2021
1bf0e0d
Merge pull request #53601 from jmarolf/debug-service-process
jmarolf Jun 1, 2021
87bf7c2
Inline further
CyrusNajmabadi Jun 2, 2021
cf37fb9
Merge pull request #53503 from sharwell/faster-save
sharwell Jun 2, 2021
7e06c9a
Make async again
CyrusNajmabadi Jun 2, 2021
253a00d
Make async again
CyrusNajmabadi Jun 2, 2021
5cabbd1
Cancellation tokens
CyrusNajmabadi Jun 2, 2021
97d2d16
Simplify
CyrusNajmabadi Jun 2, 2021
75d1282
Merge pull request #53792 from CyrusNajmabadi/diagnosticsPersistence
CyrusNajmabadi Jun 2, 2021
a56336b
Store more information when an exception happens when making RPC call…
CyrusNajmabadi Jun 2, 2021
31103b6
Merge pull request #53839 from CyrusNajmabadi/jsonRpcException
CyrusNajmabadi Jun 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions eng/Version.Details.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
</Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21277.1">
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="6.0.0-beta.21281.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>c3e0e4070f6cd3873b775e3f4136e29f4d66cb49</Sha>
<Sha>c7d6bd607715f334cda90e01967bb0c02dee09be</Sha>
<SourceBuild RepoName="arcade" ManagedOnly="true" />
</Dependency>
<Dependency Name="Microsoft.Net.Compilers.Toolset" Version="4.0.0-2.21253.8">
<Uri>https://github.com/dotnet/roslyn</Uri>
<Sha>5b972bceb846f5d15f991a479e285067a75103e4</Sha>
</Dependency>
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21277.1">
<Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="6.0.0-beta.21281.1">
<Uri>https://github.com/dotnet/arcade</Uri>
<Sha>c3e0e4070f6cd3873b775e3f4136e29f4d66cb49</Sha>
<Sha>c7d6bd607715f334cda90e01967bb0c02dee09be</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"xcopy-msbuild": "16.8.0-preview2.1"
},
"msbuild-sdks": {
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21277.1",
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21277.1"
"Microsoft.DotNet.Arcade.Sdk": "6.0.0-beta.21281.1",
"Microsoft.DotNet.Helix.Sdk": "6.0.0-beta.21281.1"
}
}
8 changes: 8 additions & 0 deletions src/Deployment/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
"executablePath": "$(DevEnvDir)devenv.exe",
"commandLineArgs": "/rootsuffix $(VSSDKTargetPlatformRegRootSuffix) /log"
},
"Visual Studio Extension (with ServiceHub Debugging)": {
"commandName": "Executable",
"executablePath": "$(DevEnvDir)devenv.exe",
"commandLineArgs": "/rootsuffix $(VSSDKTargetPlatformRegRootSuffix) /log",
"environmentVariables": {
"SERVICEHUBDEBUGHOSTONSTARTUP": "All"
}
},
"Visual Studio Extension (with Native Debugging)": {
"commandName": "Executable",
"executablePath": "$(DevEnvDir)devenv.exe",
Expand Down
364 changes: 0 additions & 364 deletions src/EditorFeatures/Test/Diagnostics/DiagnosticDataSerializerTests.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,17 @@ internal partial class DiagnosticAnalyzerService
/// <summary>
/// Synchronize build errors with live error.
/// </summary>
public Task SynchronizeWithBuildAsync(
public ValueTask SynchronizeWithBuildAsync(
Workspace workspace,
ImmutableDictionary<ProjectId,
ImmutableArray<DiagnosticData>> diagnostics,
TaskQueue postBuildAndErrorListRefreshTaskQueue,
bool onBuildCompleted,
CancellationToken cancellationToken)
{
if (_map.TryGetValue(workspace, out var analyzer))
{
return analyzer.SynchronizeWithBuildAsync(diagnostics, postBuildAndErrorListRefreshTaskQueue, onBuildCompleted, cancellationToken);
}

return Task.CompletedTask;
return _map.TryGetValue(workspace, out var analyzer)
? analyzer.SynchronizeWithBuildAsync(diagnostics, postBuildAndErrorListRefreshTaskQueue, onBuildCompleted, cancellationToken)
: default;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ public ProjectAnalysisData(
public DiagnosticAnalysisResult GetResult(DiagnosticAnalyzer analyzer)
=> GetResultOrEmpty(Result, analyzer, ProjectId, Version);

public static async Task<ProjectAnalysisData> CreateAsync(IPersistentStorageService persistentService, Project project, IEnumerable<StateSet> stateSets, bool avoidLoadingData, CancellationToken cancellationToken)
public static async Task<ProjectAnalysisData> CreateAsync(Project project, IEnumerable<StateSet> stateSets, bool avoidLoadingData, CancellationToken cancellationToken)
{
VersionStamp? version = null;

var builder = ImmutableDictionary.CreateBuilder<DiagnosticAnalyzer, DiagnosticAnalysisResult>();
foreach (var stateSet in stateSets)
{
var state = stateSet.GetOrCreateProjectState(project.Id);
var result = await state.GetAnalysisDataAsync(persistentService, project, avoidLoadingData, cancellationToken).ConfigureAwait(false);
var result = await state.GetAnalysisDataAsync(project, avoidLoadingData, cancellationToken).ConfigureAwait(false);
Contract.ThrowIfFalse(project.Id == result.ProjectId);

if (!version.HasValue)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private async Task<ProjectAnalysisData> GetProjectAnalysisDataAsync(
// PERF: We need to flip this to false when we do actual diffing.
var avoidLoadingData = true;
var version = await GetDiagnosticVersionAsync(project, cancellationToken).ConfigureAwait(false);
var existingData = await ProjectAnalysisData.CreateAsync(PersistentStorageService, project, stateSets, avoidLoadingData, cancellationToken).ConfigureAwait(false);
var existingData = await ProjectAnalysisData.CreateAsync(project, stateSets, avoidLoadingData, cancellationToken).ConfigureAwait(false);

// We can't return here if we have open file only analyzers since saved data for open file only analyzer
// is incomplete -- it only contains info on open files rather than whole project.
Expand Down
Loading