This commit is contained in:
David Wengier 2024-09-09 14:19:52 +10:00
Родитель cc5b5a54ec
Коммит d1857851fb
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -38,6 +38,7 @@ dotnet_separate_import_directive_groups = false
# IDE0005 - Remove unnecessary imports
dotnet_diagnostic.IDE0005.severity = warning
# IDE0052 - Private member can be removed
dotnet_diagnostic.IDE0052.severity = warning

Просмотреть файл

@ -14,10 +14,8 @@ namespace Microsoft.VisualStudio.Razor.LanguageClient.Cohost;
[Shared]
[CohostEndpoint(VSInternalMethods.WorkspaceSpellCheckableRangesName)]
[ExportCohostStatelessLspService(typeof(CohostWorkspaceSpellCheckEndpoint))]
[method: ImportingConstructor]
#pragma warning restore RS0030 // Do not use banned APIs
internal sealed class CohostWorkspaceSpellCheckEndpoint()
: AbstractRazorCohostRequestHandler<VSInternalWorkspaceSpellCheckableParams, VSInternalWorkspaceSpellCheckableReport[]>
internal sealed class CohostWorkspaceSpellCheckEndpoint : AbstractRazorCohostRequestHandler<VSInternalWorkspaceSpellCheckableParams, VSInternalWorkspaceSpellCheckableReport[]>
{
protected override bool MutatesSolutionState => false;

Просмотреть файл

@ -16,7 +16,7 @@ namespace Microsoft.AspNetCore.Razor.PooledObjects;
internal ref struct PooledHashSet<T>
{
private readonly ObjectPool<HashSet<T>> _pool;
#pragma warning disable IDE0052
#pragma warning disable IDE0052 // Used in NET only code below. Called API doesn't exist on framework.
private readonly int? _capacity;
#pragma warning restore IDE0052
private HashSet<T>? _set;