This commit is contained in:
Ryan Brandenburg 2022-11-18 11:29:53 -08:00
Родитель b80e80e670
Коммит 1f62c288ca
15 изменённых файлов: 24 добавлений и 11 удалений

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

@ -5,6 +5,7 @@ VisualStudioVersion = 17.0.31415.485
MinimumVisualStudioVersion = 16.0.0.0 MinimumVisualStudioVersion = 16.0.0.0
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tooling", "Tooling", "{3C0D6505-79B3-49D0-B4C3-176F0F1836ED}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tooling", "Tooling", "{3C0D6505-79B3-49D0-B4C3-176F0F1836ED}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
src\Razor\src\.editorconfig = src\Razor\src\.editorconfig
src\Razor\src\Directory.Build.props = src\Razor\src\Directory.Build.props src\Razor\src\Directory.Build.props = src\Razor\src\Directory.Build.props
EndProjectSection EndProjectSection
EndProject EndProject

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

@ -152,6 +152,7 @@
<Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion> <Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
<Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion> <Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
<Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion> <Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion>
<Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>
<Tooling_RoslynDiagnosticsAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_RoslynDiagnosticsAnalyzersPackageVersion> <Tooling_RoslynDiagnosticsAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_RoslynDiagnosticsAnalyzersPackageVersion>
<Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion> <Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion>
<XunitAnalyzersPackageVersion>0.10.0</XunitAnalyzersPackageVersion> <XunitAnalyzersPackageVersion>0.10.0</XunitAnalyzersPackageVersion>

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

@ -3,6 +3,11 @@
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" /> <Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
<PropertyGroup>
<AnalysisLevel>Latest</AnalysisLevel>
<AnalysisMode>AllEnabledByDefault</AnalysisMode>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)" NoWarn="NU1608" /> <PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)" NoWarn="NU1608" />
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(Tooling_MicrosoftCodeAnalysisNetAnalyzersPackageVersion)" NoWarn="NU1608" /> <PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="$(Tooling_MicrosoftCodeAnalysisNetAnalyzersPackageVersion)" NoWarn="NU1608" />

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

@ -11,4 +11,10 @@
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb> <PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion)">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project> </Project>

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

@ -68,5 +68,5 @@ internal sealed class CompletionListCache
} }
} }
public record CacheEntry(int ResultId, VSInternalCompletionList CompletionList, object? Context); internal record CacheEntry(int ResultId, VSInternalCompletionList CompletionList, object? Context);
} }

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

@ -6,6 +6,6 @@ using Microsoft.Extensions.Logging;
namespace Microsoft.AspNetCore.Razor.LanguageServer; namespace Microsoft.AspNetCore.Razor.LanguageServer;
internal interface IRazorLogger : ILogger, ILspLogger public interface IRazorLogger : ILogger, ILspLogger
{ {
} }

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

@ -492,6 +492,6 @@ internal class DefaultRazorDynamicFileInfoProvider : RazorDynamicFileInfoProvide
return new TestDynamicFileInfoResult(result.FilePath, result.TextLoader); return new TestDynamicFileInfoResult(result.FilePath, result.TextLoader);
} }
public record TestDynamicFileInfoResult(string FilePath, TextLoader TextLoader); internal record TestDynamicFileInfoResult(string FilePath, TextLoader TextLoader);
} }
} }

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

@ -8,7 +8,7 @@ using Microsoft.Extensions.Internal;
namespace Microsoft.CodeAnalysis.Razor; namespace Microsoft.CodeAnalysis.Razor;
public readonly struct DocumentKey : IEquatable<DocumentKey> internal readonly struct DocumentKey : IEquatable<DocumentKey>
{ {
public DocumentKey(string projectFilePath, string documentFilePath) public DocumentKey(string projectFilePath, string documentFilePath)
{ {

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

@ -6,7 +6,7 @@ using Microsoft.Extensions.Internal;
namespace Microsoft.CodeAnalysis.Razor.Editor; namespace Microsoft.CodeAnalysis.Razor.Editor;
public sealed class EditorSettings : IEquatable<EditorSettings> internal sealed class EditorSettings : IEquatable<EditorSettings>
{ {
public static readonly EditorSettings Default = new(indentWithTabs: false, indentSize: 4); public static readonly EditorSettings Default = new(indentWithTabs: false, indentSize: 4);

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

@ -5,7 +5,7 @@ using System;
namespace Microsoft.CodeAnalysis.Razor.Editor; namespace Microsoft.CodeAnalysis.Razor.Editor;
public sealed class EditorSettingsChangedEventArgs : EventArgs internal sealed class EditorSettingsChangedEventArgs : EventArgs
{ {
public EditorSettingsChangedEventArgs(EditorSettings settings) public EditorSettingsChangedEventArgs(EditorSettings settings)
{ {

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

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language;
namespace Microsoft.VisualStudio.Editor.Razor; namespace Microsoft.VisualStudio.Editor.Razor;
public sealed class ElementCompletionContext internal sealed class ElementCompletionContext
{ {
public ElementCompletionContext( public ElementCompletionContext(
TagHelperDocumentContext documentContext, TagHelperDocumentContext documentContext,

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

@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Razor.Language;
namespace Microsoft.VisualStudio.Editor.Razor; namespace Microsoft.VisualStudio.Editor.Razor;
public struct ClassifiedSpan internal struct ClassifiedSpan
{ {
public ClassifiedSpan(SourceSpan span, SourceSpan blockSpan, SpanKind spanKind, BlockKind blockKind, AcceptedCharacters acceptedCharacters) public ClassifiedSpan(SourceSpan span, SourceSpan blockSpan, SpanKind spanKind, BlockKind blockKind, AcceptedCharacters acceptedCharacters)
{ {

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

@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language;
namespace Microsoft.VisualStudio.Editor.Razor; namespace Microsoft.VisualStudio.Editor.Razor;
public struct TagHelperSpan internal struct TagHelperSpan
{ {
public TagHelperSpan(SourceSpan span, TagHelperBinding binding) public TagHelperSpan(SourceSpan span, TagHelperBinding binding)
{ {

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

@ -8,7 +8,7 @@ namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage.MessageInterce
/// <summary> /// <summary>
/// Contains an updated message token and a signal of whether the document Uri was changed. /// Contains an updated message token and a signal of whether the document Uri was changed.
/// </summary> /// </summary>
public struct InterceptionResult internal struct InterceptionResult
{ {
public static readonly InterceptionResult NoChange = new(null, false); public static readonly InterceptionResult NoChange = new(null, false);

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

@ -13,7 +13,7 @@ namespace System.Runtime.CompilerServices;
/// This dummy class is required to compile records when targeting .NET Standard /// This dummy class is required to compile records when targeting .NET Standard
/// </summary> /// </summary>
[EditorBrowsable(EditorBrowsableState.Never)] [EditorBrowsable(EditorBrowsableState.Never)]
public static class IsExternalInit internal static class IsExternalInit
{ {
} }