зеркало из https://github.com/dotnet/razor.git
Merge pull request #7936 from ryanbrandenburg/OmniSharpDecouple
Omni sharp decouple
This commit is contained in:
Коммит
4e6fc5ac79
|
@ -5,6 +5,7 @@ VisualStudioVersion = 17.0.31415.485
|
|||
MinimumVisualStudioVersion = 16.0.0.0
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tooling", "Tooling", "{3C0D6505-79B3-49D0-B4C3-176F0F1836ED}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
src\Razor\src\.editorconfig = src\Razor\src\.editorconfig
|
||||
src\Razor\src\Directory.Build.props = src\Razor\src\Directory.Build.props
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
|
|
@ -152,6 +152,7 @@
|
|||
<Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisVisualBasicWorkspacesPackageVersion>
|
||||
<Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftCodeAnalysisWorkspacesCommonPackageVersion>
|
||||
<Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_MicrosoftCodeAnalysisBannedApiAnalyzersPackageVersion>
|
||||
<Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion>
|
||||
<Tooling_RoslynDiagnosticsAnalyzersPackageVersion>$(Tooling_MicrosoftCodeAnalysisAnalyzersPackageVersion)</Tooling_RoslynDiagnosticsAnalyzersPackageVersion>
|
||||
<Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion>$(RoslynPackageVersion)</Tooling_MicrosoftVisualStudioLanguageServicesPackageVersion>
|
||||
<XunitAnalyzersPackageVersion>0.10.0</XunitAnalyzersPackageVersion>
|
||||
|
|
|
@ -18,7 +18,7 @@ using Microsoft.VisualStudio.LanguageServer.Protocol;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.Microbenchmarks.LanguageServer;
|
||||
|
||||
public enum InputType
|
||||
internal enum InputType
|
||||
{
|
||||
Preformatted,
|
||||
Unformatted
|
||||
|
@ -26,7 +26,7 @@ public enum InputType
|
|||
|
||||
[CsvExporter]
|
||||
[RPlotExporter]
|
||||
public class RazorCSharpFormattingBenchmark : RazorLanguageServerBenchmarkBase
|
||||
internal class RazorCSharpFormattingBenchmark : RazorLanguageServerBenchmarkBase
|
||||
{
|
||||
private string _filePath;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ using Microsoft.CodeAnalysis.Remote.Razor;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.Microbenchmarks;
|
||||
|
||||
public class RemoteTagHelperDeltaProviderBenchmark : TagHelperBenchmarkBase
|
||||
internal class RemoteTagHelperDeltaProviderBenchmark : TagHelperBenchmarkBase
|
||||
{
|
||||
public RemoteTagHelperDeltaProviderBenchmark()
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.Microbenchmarks.Serialization;
|
||||
|
||||
public class CompletionListSerializationBenchmark : TagHelperBenchmarkBase
|
||||
internal class CompletionListSerializationBenchmark : TagHelperBenchmarkBase
|
||||
{
|
||||
private readonly byte[] _completionListBuffer;
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.Microbenchmarks.Serialization;
|
||||
|
||||
public class TagHelperSerializationBenchmark : TagHelperBenchmarkBase
|
||||
internal class TagHelperSerializationBenchmark : TagHelperBenchmarkBase
|
||||
{
|
||||
[Benchmark(Description = "Razor TagHelper Roundtrip Serialization")]
|
||||
public void TagHelper_Serialization_RoundTrip()
|
||||
|
|
|
@ -12,7 +12,7 @@ using Newtonsoft.Json;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.Microbenchmarks;
|
||||
|
||||
public abstract class TagHelperBenchmarkBase
|
||||
internal abstract class TagHelperBenchmarkBase
|
||||
{
|
||||
protected readonly byte[] TagHelperBuffer;
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[*.cs]
|
||||
dotnet_public_api_analyzer.require_api_files = true
|
||||
dotnet_diagnostic.RS0016.severity = error
|
||||
dotnet_diagnostic.RS0048.severity = error
|
|
@ -11,4 +11,7 @@
|
|||
<PublishWindowsPdb Condition="'$(DotNetSymbolServerTokenMsdl)'!='' and '$(DotNetSymbolServerTokenSymWeb)'!=''">true</PublishWindowsPdb>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="$(Tooling_MicrosoftCodeAnalysisPublicApiAnalyzersPackageVersion)" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public class AdhocLanguageServices : HostLanguageServices
|
||||
internal class AdhocLanguageServices : HostLanguageServices
|
||||
{
|
||||
private readonly HostWorkspaceServices _workspaceServices;
|
||||
private readonly IEnumerable<ILanguageService> _languageServices;
|
||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis.Host;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public class AdhocServices : HostServices
|
||||
internal class AdhocServices : HostServices
|
||||
{
|
||||
private readonly IEnumerable<IWorkspaceService> _workspaceServices;
|
||||
private readonly IEnumerable<ILanguageService> _razorLanguageServices;
|
||||
|
|
|
@ -10,7 +10,7 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public class AdhocWorkspaceServices : HostWorkspaceServices
|
||||
internal class AdhocWorkspaceServices : HostWorkspaceServices
|
||||
{
|
||||
private readonly HostServices _hostServices;
|
||||
private readonly HostLanguageServices _razorLanguageServices;
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
|||
|
||||
public class DefaultRemoteTextLoaderFactory : RemoteTextLoaderFactory
|
||||
{
|
||||
public override TextLoader Create(string filePath)
|
||||
internal override TextLoader Create(string filePath)
|
||||
{
|
||||
if (filePath is null)
|
||||
{
|
||||
|
|
|
@ -10,7 +10,7 @@ internal static class RazorCodeDocumentExtensions
|
|||
{
|
||||
private static readonly object s_unsupportedKey = new();
|
||||
|
||||
public static bool IsUnsupported(this RazorCodeDocument document)
|
||||
internal static bool IsUnsupported(this RazorCodeDocument document)
|
||||
{
|
||||
if (document is null)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public static class FilePathNormalizer
|
||||
internal static class FilePathNormalizer
|
||||
{
|
||||
public static string NormalizeDirectory(string? directoryFilePath)
|
||||
{
|
||||
|
|
|
@ -3,77 +3,77 @@
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public static class LanguageServerConstants
|
||||
public static class LanguageServerConstants
|
||||
{
|
||||
internal const int VSCompletionItemKindOffset = 118115;
|
||||
|
||||
public const string DefaultProjectConfigurationFile = "project.razor.json";
|
||||
|
||||
internal const string RazorSemanticTokensLegendEndpoint = "_vs_/textDocument/semanticTokensLegend";
|
||||
|
||||
internal const string SemanticTokensProviderName = "semanticTokensProvider";
|
||||
|
||||
internal const string RazorLanguageQueryEndpoint = "razor/languageQuery";
|
||||
|
||||
internal const string RazorBreakpointSpanEndpoint = "razor/breakpointSpan";
|
||||
|
||||
internal const string RazorProximityExpressionsEndpoint = "razor/proximityExpressions";
|
||||
|
||||
internal const string RazorMonitorProjectConfigurationFilePathEndpoint = "razor/monitorProjectConfigurationFilePath";
|
||||
|
||||
internal const string RazorMapToDocumentRangesEndpoint = "razor/mapToDocumentRanges";
|
||||
|
||||
internal const string RazorTranslateDiagnosticsEndpoint = "razor/translateDiagnostics";
|
||||
|
||||
internal const string RazorMapToDocumentEditsEndpoint = "razor/mapToDocumentEdits";
|
||||
|
||||
internal const string RazorCodeActionRunnerCommand = "razor/runCodeAction";
|
||||
|
||||
internal const string RazorDocumentFormattingEndpoint = "textDocument/formatting";
|
||||
|
||||
internal const string RazorDocumentOnTypeFormattingEndpoint = "textDocument/onTypeFormatting";
|
||||
|
||||
internal const string RazorCompletionEndpointName = "razor/completion";
|
||||
|
||||
internal const string RazorCompletionResolveEndpointName = "razor/completionItem/resolve";
|
||||
|
||||
internal const string RazorGetFormattingOptionsEndpointName = "razor/formatting/options";
|
||||
|
||||
// This needs to be the same as in Web Tools, that is used by the HTML editor, because
|
||||
// we actually respond to the Web Tools "Wrap With Div" command handler, which sends this message
|
||||
// to all servers. We then take the message, get the HTML virtual document, and send it
|
||||
// straight back to Web Tools for them to do the work.
|
||||
internal const string RazorWrapWithTagEndpoint = "textDocument/_vsweb_wrapWithTag";
|
||||
|
||||
internal static class CodeActions
|
||||
{
|
||||
public const int VSCompletionItemKindOffset = 118115;
|
||||
public const string EditBasedCodeActionCommand = "EditBasedCodeActionCommand";
|
||||
|
||||
public const string DefaultProjectConfigurationFile = "project.razor.json";
|
||||
public const string ExtractToCodeBehindAction = "ExtractToCodeBehind";
|
||||
|
||||
public const string RazorSemanticTokensLegendEndpoint = "_vs_/textDocument/semanticTokensLegend";
|
||||
public const string CreateComponentFromTag = "CreateComponentFromTag";
|
||||
|
||||
public const string SemanticTokensProviderName = "semanticTokensProvider";
|
||||
public const string AddUsing = "AddUsing";
|
||||
|
||||
public const string RazorLanguageQueryEndpoint = "razor/languageQuery";
|
||||
public const string CodeActionFromVSCode = "CodeActionFromVSCode";
|
||||
|
||||
public const string RazorBreakpointSpanEndpoint = "razor/breakpointSpan";
|
||||
/// <summary>
|
||||
/// Remaps without formatting the resolved code action edit
|
||||
/// </summary>
|
||||
public const string UnformattedRemap = "UnformattedRemap";
|
||||
|
||||
public const string RazorProximityExpressionsEndpoint = "razor/proximityExpressions";
|
||||
/// <summary>
|
||||
/// Remaps and formats the resolved code action edit
|
||||
/// </summary>
|
||||
public const string Default = "Default";
|
||||
|
||||
public const string RazorMonitorProjectConfigurationFilePathEndpoint = "razor/monitorProjectConfigurationFilePath";
|
||||
|
||||
public const string RazorMapToDocumentRangesEndpoint = "razor/mapToDocumentRanges";
|
||||
|
||||
public const string RazorTranslateDiagnosticsEndpoint = "razor/translateDiagnostics";
|
||||
|
||||
public const string RazorMapToDocumentEditsEndpoint = "razor/mapToDocumentEdits";
|
||||
|
||||
public const string RazorCodeActionRunnerCommand = "razor/runCodeAction";
|
||||
|
||||
public const string RazorDocumentFormattingEndpoint = "textDocument/formatting";
|
||||
|
||||
public const string RazorDocumentOnTypeFormattingEndpoint = "textDocument/onTypeFormatting";
|
||||
|
||||
public const string RazorCompletionEndpointName = "razor/completion";
|
||||
|
||||
public const string RazorCompletionResolveEndpointName = "razor/completionItem/resolve";
|
||||
|
||||
public const string RazorGetFormattingOptionsEndpointName = "razor/formatting/options";
|
||||
|
||||
// This needs to be the same as in Web Tools, that is used by the HTML editor, because
|
||||
// we actually respond to the Web Tools "Wrap With Div" command handler, which sends this message
|
||||
// to all servers. We then take the message, get the HTML virtual document, and send it
|
||||
// straight back to Web Tools for them to do the work.
|
||||
public const string RazorWrapWithTagEndpoint = "textDocument/_vsweb_wrapWithTag";
|
||||
|
||||
public static class CodeActions
|
||||
internal static class Languages
|
||||
{
|
||||
public const string EditBasedCodeActionCommand = "EditBasedCodeActionCommand";
|
||||
public const string CSharp = "CSharp";
|
||||
|
||||
public const string ExtractToCodeBehindAction = "ExtractToCodeBehind";
|
||||
public const string Razor = "Razor";
|
||||
|
||||
public const string CreateComponentFromTag = "CreateComponentFromTag";
|
||||
|
||||
public const string AddUsing = "AddUsing";
|
||||
|
||||
public const string CodeActionFromVSCode = "CodeActionFromVSCode";
|
||||
|
||||
/// <summary>
|
||||
/// Remaps without formatting the resolved code action edit
|
||||
/// </summary>
|
||||
public const string UnformattedRemap = "UnformattedRemap";
|
||||
|
||||
/// <summary>
|
||||
/// Remaps and formats the resolved code action edit
|
||||
/// </summary>
|
||||
public const string Default = "Default";
|
||||
|
||||
public static class Languages
|
||||
{
|
||||
public const string CSharp = "CSharp";
|
||||
|
||||
public const string Razor = "Razor";
|
||||
|
||||
public const string Html = "Html";
|
||||
}
|
||||
public const string Html = "Html";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.CodeAnalysis.Razor;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
|
||||
public static class ProjectEngineFactories
|
||||
internal static class ProjectEngineFactories
|
||||
{
|
||||
public static readonly Lazy<IProjectEngineFactory, ICustomProjectEngineFactoryMetadata>[] Factories =
|
||||
new Lazy<IProjectEngineFactory, ICustomProjectEngineFactoryMetadata>[]
|
||||
|
|
|
@ -10,3 +10,4 @@ using System.Runtime.CompilerServices;
|
|||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.LanguageServer.Common.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.LanguageServer.Test.Common, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.LanguageServerClient.Razor, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.LanguageServerClient.Razor.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
#nullable enable
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RemoteTextLoaderFactory
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RemoteTextLoaderFactory.RemoteTextLoaderFactory() -> void
|
||||
const Microsoft.AspNetCore.Razor.LanguageServer.Common.LanguageServerConstants.DefaultProjectConfigurationFile = "project.razor.json" -> string!
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.DefaultRemoteTextLoaderFactory
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.DefaultRemoteTextLoaderFactory.DefaultRemoteTextLoaderFactory() -> void
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.LanguageServerConstants
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind.Added = 0 -> Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind.Changed = 2 -> Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind.Removed = 1 -> Microsoft.AspNetCore.Razor.LanguageServer.Common.RazorFileChangeKind
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.Common.UnsupportedRazorConfiguration
|
||||
static readonly Microsoft.AspNetCore.Razor.LanguageServer.Common.UnsupportedRazorConfiguration.Instance -> Microsoft.AspNetCore.Razor.Language.RazorConfiguration!
|
|
@ -0,0 +1 @@
|
|||
#nullable enable
|
|
@ -7,5 +7,5 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
|||
|
||||
public abstract class RemoteTextLoaderFactory
|
||||
{
|
||||
public abstract TextLoader Create(string filePath);
|
||||
internal abstract TextLoader Create(string filePath);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer;
|
|||
|
||||
// We unify the ILspLogger and ILogger systems here because the ILspLogger class does not match the ILogger class used by Razor,
|
||||
// but we did not want to migrate them all at once
|
||||
public class LoggerAdapter : IRazorLogger
|
||||
internal class LoggerAdapter : IRazorLogger
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
|
||||
|
|
|
@ -11,3 +11,4 @@ using System.Runtime.CompilerServices;
|
|||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.Microbenchmarks, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.LanguageServer.Test.Common, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.LanguageServer.Common.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
[assembly: InternalsVisibleTo("Microsoft.AspNetCore.Razor.Test.Common, PublicKey=0024000004800000940000000602000000240000525341310004000001000100f33a29044fa9d740c9b3213a93e57c84b472c84e0b8a0e1ae48e67a9f8f6de9d5f7f3d52ac23e48ac51801f1dc950abe901da34d2a9e3baadb141a17c77ef3c565dd5ee5054b91cf63bb3c6ab83f72ab3aafe93d0fc3c2348b764fafb0b1c0733de51459aeab46580384bf9d74c4e28164b7cde247f891ba07891c9d872ad2bb")]
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#nullable enable
|
||||
Microsoft.AspNetCore.Razor.LanguageServer.IRazorLogger
|
|
@ -0,0 +1 @@
|
|||
#nullable enable
|
|
@ -6,7 +6,7 @@ using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer;
|
||||
|
||||
public static class RazorDefaults
|
||||
internal static class RazorDefaults
|
||||
{
|
||||
public static RazorConfiguration Configuration { get; } = FallbackRazorConfiguration.Latest;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.VisualStudio.LanguageServer.Protocol;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer;
|
||||
|
||||
public static class ServerCapabilitiesExtensions
|
||||
internal static class ServerCapabilitiesExtensions
|
||||
{
|
||||
private static readonly IReadOnlyDictionary<string, PropertyInfo> s_propertyMappings;
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
namespace Microsoft.AspNetCore.Razor.LanguageServer;
|
||||
|
||||
// We need to keep this in sync with the client definitions like Trace.ts
|
||||
public enum Trace
|
||||
internal enum Trace
|
||||
{
|
||||
Off = 0,
|
||||
Messages = 1,
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.CodeAnalysis.Text;
|
|||
|
||||
namespace Microsoft.AspNetCore.Razor.LanguageServer;
|
||||
|
||||
public class UpdateBufferRequest
|
||||
internal class UpdateBufferRequest
|
||||
{
|
||||
public int? HostDocumentVersion { get; set; }
|
||||
|
||||
|
|
|
@ -0,0 +1,96 @@
|
|||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager.Changed -> System.EventHandler<Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs>
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager.GetLoadedProject(string filePath) -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager.Projects.get -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot>
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerAccessor.Instance.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.DocumentAdded(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject hostProject, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument hostDocument) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.DocumentChanged(string projectFilePath, string documentFilePath) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.DocumentRemoved(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject hostProject, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument hostDocument) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.ProjectAdded(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject hostProject) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.ProjectConfigurationChanged(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject hostProject) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.ProjectRemoved(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject hostProject) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.ProjectWorkspaceStateChanged(string projectFilePath, Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState projectWorkspaceState) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.Workspace.get -> Microsoft.CodeAnalysis.Workspace
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher.AssertDispatcherThread(string caller = null) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher.DispatcherScheduler.get -> System.Threading.Tasks.TaskScheduler
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpDocumentProcessedListener.DocumentProcessed(Microsoft.AspNetCore.Razor.Language.RazorCodeDocument codeDocument, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot document) -> void
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpDocumentProcessedListener.Initialize(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager projectManager) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerAccessor.DefaultOmniSharpProjectSnapshotManagerAccessor(Microsoft.AspNetCore.Razor.LanguageServer.Common.RemoteTextLoaderFactory remoteTextLoaderFactory, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.OmniSharpPlugin.IOmniSharpProjectSnapshotManagerChangeTrigger> projectChangeTriggers, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, Microsoft.CodeAnalysis.Workspace workspace) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.IOmniSharpProjectSnapshotManagerChangeTrigger.Initialize(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase projectManager) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot.FileKind.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot.FilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot.HostDocument.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot.Project.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot.TargetPath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument.FileKind.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument.FilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument.OmniSharpHostDocument(string filePath, string targetPath, string kind) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument.TargetPath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocumentComparer.Equals(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument x, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument y) -> bool
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocumentComparer.GetHashCode(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument hostDocument) -> int
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject.Configuration.get -> Microsoft.AspNetCore.Razor.Language.RazorConfiguration
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject.FilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject.OmniSharpHostProject(string projectFilePath, Microsoft.AspNetCore.Razor.Language.RazorConfiguration razorConfiguration, string rootNamespace) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject.RootNamespace.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.DocumentFilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.Newer.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.Older.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.ProjectFilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.Configuration.get -> Microsoft.AspNetCore.Razor.Language.RazorConfiguration
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.DocumentFilePaths.get -> System.Collections.Generic.IEnumerable<string>
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.FilePath.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.GetDocument(string filePath) -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.ProjectWorkspaceState.get -> Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(System.Action action, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync<TResult>(System.Func<TResult> action, System.Threading.CancellationToken cancellationToken) -> System.Threading.Tasks.Task<TResult>
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpBackgroundDocumentGenerator.Initialize(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase projectManager) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpBackgroundDocumentGenerator.OmniSharpBackgroundDocumentGenerator(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, Microsoft.AspNetCore.Razor.LanguageServer.Common.RemoteTextLoaderFactory remoteTextLoaderFactory, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpDocumentProcessedListener> documentProcessedListeners) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpProjectWorkspaceStateGenerator.Initialize(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase projectManager) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpProjectWorkspaceStateGenerator.OmniSharpProjectWorkspaceStateGenerator(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpWorkspaceProjectStateChangeDetector.Initialize(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase projectManager) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpWorkspaceProjectStateChangeDetector.OmniSharpWorkspaceProjectStateChangeDetector(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher, Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpProjectWorkspaceStateGenerator workspaceStateGenerator, Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpLanguageServerFeatureOptions languageServerFeatureOptions) -> void
|
||||
override Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerAccessor.Instance.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager
|
||||
override Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerDispatcher.AssertDispatcherThread(string caller = null) -> void
|
||||
override Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerDispatcher.DispatcherScheduler.get -> System.Threading.Tasks.TaskScheduler
|
||||
static Microsoft.AspNetCore.Razor.OmniSharpPlugin.FallbackRazorConfiguration.SelectConfiguration(System.Version version) -> Microsoft.AspNetCore.Razor.Language.RazorConfiguration
|
||||
static Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.CreateTestInstance(Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot older, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot newer, string documentFilePath, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind kind) -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs
|
||||
static Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot.CreateForTest(object projectSnapshot) -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
static Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpRazorCodeDocumentExtensions.GetInternalCSharpSourceText(this Microsoft.AspNetCore.Razor.Language.RazorCodeDocument codeDocument) -> Microsoft.CodeAnalysis.Text.SourceText
|
||||
static Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.Serialization.JsonConverterCollectionExtensions.RegisterOmniSharpRazorConverters(this Newtonsoft.Json.JsonConverterCollection collection) -> void
|
||||
static readonly Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocumentComparer.Instance -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocumentComparer
|
||||
virtual Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpProjectWorkspaceStateGenerator.Update(Microsoft.CodeAnalysis.Project workspaceProject, Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot projectSnapshot) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerAccessor
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerDispatcher
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.DefaultOmniSharpProjectSnapshotManagerDispatcher.DefaultOmniSharpProjectSnapshotManagerDispatcher() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.FallbackRazorConfiguration
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.FallbackRazorConfiguration.FallbackRazorConfiguration() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.IOmniSharpProjectSnapshotManagerChangeTrigger
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpDocumentSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocumentComparer
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostProject
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeEventArgs.Kind.get -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind.DocumentAdded = 3 -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind.DocumentRemoved = 4 -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind.ProjectAdded = 0 -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind.ProjectChanged = 2 -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind.ProjectRemoved = 1 -> Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectChangeKind
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshot
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManager.OmniSharpProjectSnapshotManager() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerAccessor
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerAccessor.OmniSharpProjectSnapshotManagerAccessor() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerBase.OmniSharpProjectSnapshotManagerBase() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpProjectSnapshotManagerDispatcher.OmniSharpProjectSnapshotManagerDispatcher() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpRazorCodeDocumentExtensions
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpBackgroundDocumentGenerator
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpDocumentProcessedListener
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpDocumentProcessedListener.OmniSharpDocumentProcessedListener() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpLanguageServerFeatureOptions
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpLanguageServerFeatureOptions.OmniSharpLanguageServerFeatureOptions() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpProjectWorkspaceStateGenerator
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.OmniSharpWorkspaceProjectStateChangeDetector
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.StrongNamed.Serialization.JsonConverterCollectionExtensions
|
|
@ -28,7 +28,7 @@ namespace Microsoft.AspNetCore.Razor.OmniSharpPlugin;
|
|||
// the project instance.
|
||||
[Shared]
|
||||
[Export(typeof(ProjectInstanceEvaluator))]
|
||||
public class DefaultProjectInstanceEvaluator : ProjectInstanceEvaluator
|
||||
internal class DefaultProjectInstanceEvaluator : ProjectInstanceEvaluator
|
||||
{
|
||||
internal const string TargetFrameworkPropertyName = "TargetFramework";
|
||||
internal const string TargetFrameworksPropertyName = "TargetFrameworks";
|
||||
|
|
|
@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Razor.OmniSharpPlugin;
|
|||
|
||||
[Shared]
|
||||
[Export(typeof(IHostServicesProvider))]
|
||||
public class OmniSharpPluginStrongNamedRoslynServiceProvider : IHostServicesProvider
|
||||
internal class OmniSharpPluginStrongNamedRoslynServiceProvider : IHostServicesProvider
|
||||
{
|
||||
public OmniSharpPluginStrongNamedRoslynServiceProvider()
|
||||
{
|
||||
|
|
|
@ -44,7 +44,7 @@ internal class ExportDefaultOmniSharpProjectSnapshotManagerAccessor : DefaultOmn
|
|||
|
||||
[Shared]
|
||||
[Export(typeof(IOmniSharpProjectSnapshotManagerChangeTrigger))]
|
||||
public class ExportOmniSharpWorkspaceProjectStateChangeDetector : OmniSharpWorkspaceProjectStateChangeDetector
|
||||
internal class ExportOmniSharpWorkspaceProjectStateChangeDetector : OmniSharpWorkspaceProjectStateChangeDetector
|
||||
{
|
||||
[ImportingConstructor]
|
||||
public ExportOmniSharpWorkspaceProjectStateChangeDetector(
|
||||
|
@ -59,7 +59,7 @@ public class ExportOmniSharpWorkspaceProjectStateChangeDetector : OmniSharpWorks
|
|||
[Shared]
|
||||
[Export(typeof(IOmniSharpProjectSnapshotManagerChangeTrigger))]
|
||||
[Export(typeof(OmniSharpProjectWorkspaceStateGenerator))]
|
||||
public class ExportOmniSharpProjectWorkspaceStateGenerator : OmniSharpProjectWorkspaceStateGenerator
|
||||
internal class ExportOmniSharpProjectWorkspaceStateGenerator : OmniSharpProjectWorkspaceStateGenerator
|
||||
{
|
||||
[ImportingConstructor]
|
||||
public ExportOmniSharpProjectWorkspaceStateGenerator(OmniSharpProjectSnapshotManagerDispatcher projectSnapshotManagerDispatcher) : base(projectSnapshotManagerDispatcher)
|
||||
|
@ -69,7 +69,7 @@ public class ExportOmniSharpProjectWorkspaceStateGenerator : OmniSharpProjectWor
|
|||
|
||||
[Shared]
|
||||
[Export(typeof(IOmniSharpProjectSnapshotManagerChangeTrigger))]
|
||||
public class ExportOmniSharpBackgroundDocumentGenerator : OmniSharpBackgroundDocumentGenerator
|
||||
internal class ExportOmniSharpBackgroundDocumentGenerator : OmniSharpBackgroundDocumentGenerator
|
||||
{
|
||||
[ImportingConstructor]
|
||||
public ExportOmniSharpBackgroundDocumentGenerator(
|
||||
|
@ -82,7 +82,7 @@ public class ExportOmniSharpBackgroundDocumentGenerator : OmniSharpBackgroundDoc
|
|||
|
||||
[Shared]
|
||||
[Export(typeof(OmniSharpLanguageServerFeatureOptions))]
|
||||
public class ExportOmniSharpLanguageServerFeatureOptions : OmniSharpLanguageServerFeatureOptions
|
||||
internal class ExportOmniSharpLanguageServerFeatureOptions : OmniSharpLanguageServerFeatureOptions
|
||||
{
|
||||
[ImportingConstructor]
|
||||
public ExportOmniSharpLanguageServerFeatureOptions() : base()
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Microsoft.AspNetCore.Razor.OmniSharpPlugin;
|
|||
|
||||
[Shared]
|
||||
[Export(typeof(IMSBuildEventSink))]
|
||||
public class PrecompiledRazorPageSuppressor : IMSBuildEventSink
|
||||
internal class PrecompiledRazorPageSuppressor : IMSBuildEventSink
|
||||
{
|
||||
private readonly OmniSharpWorkspace _workspace;
|
||||
|
||||
|
|
|
@ -0,0 +1,19 @@
|
|||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProvider.TryResolveConfiguration(Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext context, out Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration configuration) -> bool
|
||||
abstract Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectInstanceEvaluator.Evaluate(Microsoft.Build.Execution.ProjectInstance projectInstance) -> Microsoft.Build.Execution.ProjectInstance
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.CoreProjectConfigurationProvider.HasRazorCoreCapability(Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext context) -> bool
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.CoreProjectConfigurationProvider.HasRazorCoreConfigurationCapability(Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext context) -> bool
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration.Configuration.get -> Microsoft.AspNetCore.Razor.Language.RazorConfiguration
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration.Documents.get -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument>
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration.ProjectConfiguration(Microsoft.AspNetCore.Razor.Language.RazorConfiguration configuration, System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.OmniSharpPlugin.OmniSharpHostDocument> documents, string rootNamespace) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration.RootNamespace.get -> string
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext.ProjectCapabilities.get -> System.Collections.Generic.IReadOnlyList<string>
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext.ProjectConfigurationProviderContext(System.Collections.Generic.IReadOnlyList<string> projectCapabilities, Microsoft.Build.Execution.ProjectInstance projectInstance) -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext.ProjectInstance.get -> Microsoft.Build.Execution.ProjectInstance
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.CoreProjectConfigurationProvider
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.CoreProjectConfigurationProvider.CoreProjectConfigurationProvider() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfiguration
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProvider
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProvider.ProjectConfigurationProvider() -> void
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectConfigurationProviderContext
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectInstanceEvaluator
|
||||
Microsoft.AspNetCore.Razor.OmniSharpPlugin.ProjectInstanceEvaluator.ProjectInstanceEvaluator() -> void
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public class AttributeCompletionContext
|
||||
internal class AttributeCompletionContext
|
||||
{
|
||||
public AttributeCompletionContext(
|
||||
TagHelperDocumentContext documentContext,
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class AttributeCompletionResult
|
||||
internal abstract class AttributeCompletionResult
|
||||
{
|
||||
private AttributeCompletionResult()
|
||||
{
|
||||
|
|
|
@ -334,7 +334,7 @@ internal class DefaultRazorDynamicFileInfoProvider : RazorDynamicFileInfoProvide
|
|||
|
||||
// Using a separate handle to the 'current' file info so that can allow Roslyn to send
|
||||
// us the add/remove operations, while we process the update operations.
|
||||
public class Entry
|
||||
internal class Entry
|
||||
{
|
||||
// Can't ever be null for thread-safety reasons
|
||||
private RazorDynamicFileInfo _current;
|
||||
|
@ -477,7 +477,7 @@ internal class DefaultRazorDynamicFileInfoProvider : RazorDynamicFileInfoProvide
|
|||
public override TextLoader GetTextLoader(string filePath) => _textLoader;
|
||||
}
|
||||
|
||||
public class TestAccessor
|
||||
internal class TestAccessor
|
||||
{
|
||||
private readonly DefaultRazorDynamicFileInfoProvider _provider;
|
||||
|
||||
|
@ -492,6 +492,6 @@ internal class DefaultRazorDynamicFileInfoProvider : RazorDynamicFileInfoProvide
|
|||
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;
|
||||
|
||||
public readonly struct DocumentKey : IEquatable<DocumentKey>
|
||||
internal readonly struct DocumentKey : IEquatable<DocumentKey>
|
||||
{
|
||||
public DocumentKey(string projectFilePath, string documentFilePath)
|
||||
{
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.Extensions.Internal;
|
|||
|
||||
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);
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
|
||||
namespace Microsoft.CodeAnalysis.Razor.Editor;
|
||||
|
||||
public sealed class EditorSettingsChangedEventArgs : EventArgs
|
||||
internal sealed class EditorSettingsChangedEventArgs : EventArgs
|
||||
{
|
||||
public EditorSettingsChangedEventArgs(EditorSettings settings)
|
||||
{
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public sealed class ElementCompletionContext
|
||||
internal sealed class ElementCompletionContext
|
||||
{
|
||||
public ElementCompletionContext(
|
||||
TagHelperDocumentContext documentContext,
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class ElementCompletionResult
|
||||
internal abstract class ElementCompletionResult
|
||||
{
|
||||
private ElementCompletionResult()
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Microsoft.CodeAnalysis.Razor;
|
|||
|
||||
[MetadataAttribute]
|
||||
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
|
||||
public class ExportCustomProjectEngineFactoryAttribute : ExportAttribute, ICustomProjectEngineFactoryMetadata
|
||||
internal class ExportCustomProjectEngineFactoryAttribute : ExportAttribute, ICustomProjectEngineFactoryMetadata
|
||||
{
|
||||
public ExportCustomProjectEngineFactoryAttribute(string configurationName)
|
||||
: base(typeof(IProjectEngineFactory))
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.CodeAnalysis.Razor;
|
||||
|
||||
public interface ICustomProjectEngineFactoryMetadata
|
||||
internal interface ICustomProjectEngineFactoryMetadata
|
||||
{
|
||||
string ConfigurationName { get; }
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.CodeAnalysis.Razor;
|
||||
|
||||
public interface IProjectEngineFactory
|
||||
internal interface IProjectEngineFactory
|
||||
{
|
||||
RazorProjectEngine Create(RazorConfiguration configuration, RazorProjectFileSystem fileSystem, Action<RazorProjectEngineBuilder> configure);
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
|
||||
public sealed class ProjectWorkspaceState : IEquatable<ProjectWorkspaceState>
|
||||
{
|
||||
public static readonly ProjectWorkspaceState Default = new(Array.Empty<TagHelperDescriptor>(), LanguageVersion.Default);
|
||||
internal static readonly ProjectWorkspaceState Default = new(Array.Empty<TagHelperDescriptor>(), LanguageVersion.Default);
|
||||
|
||||
public ProjectWorkspaceState(
|
||||
IReadOnlyCollection<TagHelperDescriptor> tagHelpers,
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#nullable enable
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.Equals(Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState? other) -> bool
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.ProjectWorkspaceState(System.Collections.Generic.IReadOnlyCollection<Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor!>! tagHelpers, Microsoft.CodeAnalysis.CSharp.LanguageVersion csharpLanguageVersion) -> void
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.ProjectWorkspaceState(System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor!>! tagHelpers, Microsoft.CodeAnalysis.CSharp.LanguageVersion csharpLanguageVersion) -> void
|
||||
override Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.Equals(object? obj) -> bool
|
||||
override Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.GetHashCode() -> int
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.CSharpLanguageVersion.get -> Microsoft.CodeAnalysis.CSharp.LanguageVersion
|
||||
Microsoft.CodeAnalysis.Razor.ProjectSystem.ProjectWorkspaceState.TagHelpers.get -> System.Collections.Generic.IReadOnlyList<Microsoft.AspNetCore.Razor.Language.TagHelperDescriptor!>!
|
|
@ -0,0 +1 @@
|
|||
#nullable enable
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class TagHelperCompletionService
|
||||
internal abstract class TagHelperCompletionService
|
||||
{
|
||||
public abstract AttributeCompletionResult GetAttributeCompletions(AttributeCompletionContext completionContext);
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.AspNetCore.Razor.Language.Syntax;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class TagHelperFactsService
|
||||
internal abstract class TagHelperFactsService
|
||||
{
|
||||
public abstract TagHelperBinding? GetTagHelperBinding(TagHelperDocumentContext documentContext, string? tagName, IEnumerable<KeyValuePair<string, string>> attributes, string? parentTag, bool parentIsTagHelper);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
[Flags]
|
||||
public enum AcceptedCharacters
|
||||
internal enum AcceptedCharacters
|
||||
{
|
||||
None = 0,
|
||||
NewLine = 1,
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public enum BlockKind
|
||||
internal enum BlockKind
|
||||
{
|
||||
// Code
|
||||
Statement,
|
||||
|
|
|
@ -5,7 +5,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public struct ClassifiedSpan
|
||||
internal struct ClassifiedSpan
|
||||
{
|
||||
public ClassifiedSpan(SourceSpan span, SourceSpan blockSpan, SpanKind spanKind, BlockKind blockKind, AcceptedCharacters acceptedCharacters)
|
||||
{
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public sealed class ContextChangeEventArgs : EventArgs
|
||||
internal sealed class ContextChangeEventArgs : EventArgs
|
||||
{
|
||||
public ContextChangeEventArgs(ContextChangeKind kind)
|
||||
{
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public enum ContextChangeKind
|
||||
internal enum ContextChangeKind
|
||||
{
|
||||
ProjectChanged,
|
||||
EditorSettingsChanged,
|
||||
TagHelpersChanged,
|
||||
ImportsChanged,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public sealed class DocumentStructureChangedEventArgs : EventArgs
|
||||
internal sealed class DocumentStructureChangedEventArgs : EventArgs
|
||||
{
|
||||
public DocumentStructureChangedEventArgs(
|
||||
SourceChange? change,
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.CodeAnalysis.Razor.Editor;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class EditorSettingsManager
|
||||
internal abstract class EditorSettingsManager
|
||||
{
|
||||
public abstract event EventHandler<EditorSettingsChangedEventArgs>? Changed;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class RazorEditorFactoryService
|
||||
internal abstract class RazorEditorFactoryService
|
||||
{
|
||||
public abstract bool TryGetDocumentTracker(ITextBuffer textBuffer, [NotNullWhen(returnValue: true)] out VisualStudioDocumentTracker? documentTracker);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class RazorIndentationFactsService : ILanguageService
|
||||
internal abstract class RazorIndentationFactsService : ILanguageService
|
||||
{
|
||||
public abstract int? GetDesiredIndentation(RazorSyntaxTree syntaxTree, ITextSnapshot syntaxTreeSnapshot, ITextSnapshotLine line, int indentSize, int tabSize);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis.Host;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class RazorSyntaxFactsService : ILanguageService
|
||||
internal abstract class RazorSyntaxFactsService : ILanguageService
|
||||
{
|
||||
public abstract IReadOnlyList<ClassifiedSpan> GetClassifiedSpans(RazorSyntaxTree syntaxTree);
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public static class RazorSyntaxFactsServiceExtensions
|
||||
internal static class RazorSyntaxFactsServiceExtensions
|
||||
{
|
||||
public static bool IsTagHelperSpan(this RazorSyntaxFactsService syntaxFactsService, RazorSyntaxTree syntaxTree, SourceSpan span)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public enum SpanKind
|
||||
internal enum SpanKind
|
||||
{
|
||||
Transition,
|
||||
MetaCode,
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.AspNetCore.Razor.Language;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public struct TagHelperSpan
|
||||
internal struct TagHelperSpan
|
||||
{
|
||||
public TagHelperSpan(SourceSpan span, TagHelperBinding binding)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ using Microsoft.VisualStudio.Text.Editor;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class VisualStudioDocumentTracker
|
||||
internal abstract class VisualStudioDocumentTracker
|
||||
{
|
||||
public abstract event EventHandler<ContextChangeEventArgs> ContextChanged;
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.Editor.Razor;
|
||||
|
||||
public abstract class VisualStudioRazorParser
|
||||
internal abstract class VisualStudioRazorParser
|
||||
{
|
||||
public abstract event EventHandler<DocumentStructureChangedEventArgs> DocumentStructureChanged;
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.VisualStudio.LanguageServer.Protocol;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class FormattingOptionsProvider
|
||||
internal abstract class FormattingOptionsProvider
|
||||
{
|
||||
public abstract FormattingOptions? GetOptions(Uri uri);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class LSPDocument : IDisposable
|
||||
internal abstract class LSPDocument : IDisposable
|
||||
{
|
||||
public abstract int Version { get; }
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public enum LSPDocumentChangeKind
|
||||
internal enum LSPDocumentChangeKind
|
||||
{
|
||||
Added,
|
||||
Removed,
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Diagnostics.CodeAnalysis;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class LSPDocumentManager
|
||||
internal abstract class LSPDocumentManager
|
||||
{
|
||||
public abstract bool TryGetDocument(Uri uri, [NotNullWhen(returnValue: true)] out LSPDocumentSnapshot? lspDocumentSnapshot);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class LSPDocumentSnapshot
|
||||
internal abstract class LSPDocumentSnapshot
|
||||
{
|
||||
public abstract int Version { get; }
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage.MessageInterce
|
|||
/// <summary>
|
||||
/// Receives notification messages from the server and invokes any applicable message interception layers.
|
||||
/// </summary>
|
||||
public class InterceptionMiddleLayer : ILanguageClientMiddleLayer
|
||||
internal class InterceptionMiddleLayer : ILanguageClientMiddleLayer
|
||||
{
|
||||
private readonly InterceptorManager _interceptorManager;
|
||||
private readonly string _contentType;
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage.MessageInterce
|
|||
/// <summary>
|
||||
/// Contains an updated message token and a signal of whether the document Uri was changed.
|
||||
/// </summary>
|
||||
public struct InterceptionResult
|
||||
internal struct InterceptionResult
|
||||
{
|
||||
public static readonly InterceptionResult NoChange = new(null, false);
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using Newtonsoft.Json.Linq;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage.MessageInterception;
|
||||
|
||||
public abstract class InterceptorManager
|
||||
internal abstract class InterceptorManager
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns whether there is an interceptor available for the given message name.
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage.MessageInterce
|
|||
/// <summary>
|
||||
/// Intercepts an LSP message and applies changes to the payload.
|
||||
/// </summary>
|
||||
public abstract class MessageInterceptor
|
||||
internal abstract class MessageInterceptor
|
||||
{
|
||||
/// <summary>
|
||||
/// Applies changes to the message token, and signals if the document path has been changed.
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class VirtualDocument : IDisposable
|
||||
internal abstract class VirtualDocument : IDisposable
|
||||
{
|
||||
public abstract Uri Uri { get; }
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class VirtualDocumentBase<T> : VirtualDocument where T : VirtualDocumentSnapshot
|
||||
internal abstract class VirtualDocumentBase<T> : VirtualDocument where T : VirtualDocumentSnapshot
|
||||
{
|
||||
private T _currentSnapshot;
|
||||
private int _hostDocumentSyncVersion;
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
|||
/// These <see cref="VirtualDocument"/>s are addressable via their <see cref="VirtualDocument.Uri"/>'s and represnt an embedded, addressable LSP
|
||||
/// document for a provided <see cref="ITextBuffer"/>.
|
||||
/// </summary>
|
||||
public abstract class VirtualDocumentFactory
|
||||
internal abstract class VirtualDocumentFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Attempts to create a <see cref="VirtualDocument"/> for the provided <paramref name="hostDocumentBuffer"/>.
|
||||
|
|
|
@ -6,7 +6,7 @@ using Microsoft.VisualStudio.Text;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServer.ContainedLanguage;
|
||||
|
||||
public abstract class VirtualDocumentSnapshot
|
||||
internal abstract class VirtualDocumentSnapshot
|
||||
{
|
||||
public abstract Uri Uri { get; }
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LanguageServerClient.Razor.HtmlCSharp;
|
|||
|
||||
internal class ClassifiedTextElementComparer : IEqualityComparer<ClassifiedTextElement>
|
||||
{
|
||||
public static ClassifiedTextElementComparer Default = new();
|
||||
internal static ClassifiedTextElementComparer Default = new();
|
||||
|
||||
public bool Equals(ClassifiedTextElement x, ClassifiedTextElement y)
|
||||
{
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace Microsoft.VisualStudio.LanguageServerClient.Razor.HtmlCSharp;
|
|||
|
||||
internal class ClassifiedTextRunComparer : IEqualityComparer<ClassifiedTextRun>
|
||||
{
|
||||
public static ClassifiedTextRunComparer Default = new();
|
||||
internal static ClassifiedTextRunComparer Default = new();
|
||||
|
||||
public bool Equals(ClassifiedTextRun? x, ClassifiedTextRun? y)
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ using Newtonsoft.Json.Linq;
|
|||
|
||||
namespace Microsoft.VisualStudio.LanguageServerClient.Razor;
|
||||
|
||||
public abstract class RazorLanguageClientMiddleLayer : ILanguageClientMiddleLayer
|
||||
internal abstract class RazorLanguageClientMiddleLayer : ILanguageClientMiddleLayer
|
||||
{
|
||||
public abstract bool CanHandle(string methodName);
|
||||
|
||||
|
|
|
@ -6,28 +6,28 @@ namespace Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
// Well-Known Schema and property names defined by the ManagedProjectSystem
|
||||
internal static class ManagedProjectSystemSchema
|
||||
{
|
||||
public static class ResolvedCompilationReference
|
||||
internal static class ResolvedCompilationReference
|
||||
{
|
||||
public const string SchemaName = "ResolvedCompilationReference";
|
||||
|
||||
public const string ItemName = "ResolvedCompilationReference";
|
||||
}
|
||||
|
||||
public static class ContentItem
|
||||
internal static class ContentItem
|
||||
{
|
||||
public const string SchemaName = "Content";
|
||||
|
||||
public const string ItemName = "Content";
|
||||
}
|
||||
|
||||
public static class NoneItem
|
||||
internal static class NoneItem
|
||||
{
|
||||
public const string SchemaName = "None";
|
||||
|
||||
public const string ItemName = "None";
|
||||
}
|
||||
|
||||
public static class ItemReference
|
||||
internal static class ItemReference
|
||||
{
|
||||
public const string FullPathPropertyName = "FullPath";
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
|||
|
||||
[System.Composition.Shared]
|
||||
[Export(typeof(ProxyAccessor))]
|
||||
public class DefaultProxyAccessor : ProxyAccessor
|
||||
internal class DefaultProxyAccessor : ProxyAccessor
|
||||
{
|
||||
private readonly LiveShareSessionAccessor _liveShareSessionAccessor;
|
||||
private readonly JoinableTaskFactory _joinableTaskFactory;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
|
||||
public abstract class LiveShareSessionAccessor
|
||||
internal abstract class LiveShareSessionAccessor
|
||||
{
|
||||
public abstract CollaborationSession? Session { get; }
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor.Guest;
|
||||
|
||||
public abstract class ProxyAccessor
|
||||
internal abstract class ProxyAccessor
|
||||
{
|
||||
public abstract IProjectHierarchyProxy GetProjectHierarchyProxy();
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ internal class RazorGuestInitializationService : ICollaborationServiceFactory
|
|||
}
|
||||
}
|
||||
|
||||
public class SessionActiveDetector : ICollaborationService, IDisposable
|
||||
internal class SessionActiveDetector : ICollaborationService, IDisposable
|
||||
{
|
||||
private readonly Action _onDispose;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public interface IProjectHierarchyProxy
|
||||
internal interface IProjectHierarchyProxy
|
||||
{
|
||||
Task<Uri?> GetProjectPathAsync(Uri documentFilePath, CancellationToken cancellationToken);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public interface IProjectSnapshotManagerProxy
|
||||
internal interface IProjectSnapshotManagerProxy
|
||||
{
|
||||
event EventHandler<ProjectChangeEventProxyArgs>? Changed;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
// This type must be a public interface in order to properly advertise itself as part of the LiveShare ICollaborationService infrastructure.
|
||||
public interface IRemoteHierarchyService : ICollaborationService
|
||||
internal interface IRemoteHierarchyService : ICollaborationService
|
||||
{
|
||||
public Task<bool> HasCapabilityAsync(Uri pathOfFileInProject, string capability, CancellationToken cancellationToken);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ using System;
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public sealed class ProjectChangeEventProxyArgs : EventArgs
|
||||
internal sealed class ProjectChangeEventProxyArgs : EventArgs
|
||||
{
|
||||
public ProjectChangeEventProxyArgs(ProjectSnapshotHandleProxy? older, ProjectSnapshotHandleProxy? newer, ProjectProxyChangeKind kind)
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public enum ProjectProxyChangeKind
|
||||
internal enum ProjectProxyChangeKind
|
||||
{
|
||||
ProjectAdded,
|
||||
ProjectRemoved,
|
||||
|
|
|
@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis.Razor.ProjectSystem;
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public sealed class ProjectSnapshotHandleProxy
|
||||
internal sealed class ProjectSnapshotHandleProxy
|
||||
{
|
||||
public ProjectSnapshotHandleProxy(
|
||||
Uri filePath,
|
||||
|
|
|
@ -6,7 +6,7 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Microsoft.VisualStudio.LiveShare.Razor;
|
||||
|
||||
public sealed class ProjectSnapshotManagerProxyState
|
||||
internal sealed class ProjectSnapshotManagerProxyState
|
||||
{
|
||||
public ProjectSnapshotManagerProxyState(IReadOnlyList<ProjectSnapshotHandleProxy> projectHandles)
|
||||
{
|
||||
|
|
|
@ -108,7 +108,7 @@ internal class RazorDynamicDocumentInfoProvider : IDynamicDocumentInfoProvider
|
|||
|
||||
// Using a separate handle to the 'current' file info so that can allow Roslyn to send
|
||||
// us the add/remove operations, while we process the update operations.
|
||||
public class Entry
|
||||
internal class Entry
|
||||
{
|
||||
// Can't ever be null for thread-safety reasons
|
||||
private DocumentInfo _current;
|
||||
|
|
|
@ -8,7 +8,7 @@ using Microsoft.VisualStudio.Shell;
|
|||
|
||||
namespace Microsoft.VisualStudio.RazorExtension;
|
||||
|
||||
public class AboutDialogInfoAttribute : RegistrationAttribute
|
||||
internal class AboutDialogInfoAttribute : RegistrationAttribute
|
||||
{
|
||||
private readonly string _detailsId;
|
||||
private readonly string _name;
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#nullable enable
|
||||
Microsoft.VisualStudio.RazorExtension.SyntaxVisualizer.SyntaxVisualizerControl
|
|
@ -0,0 +1 @@
|
|||
#nullable enable
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче