зеркало из https://github.com/dotnet/razor.git
Rename
This commit is contained in:
Родитель
0ee3665a52
Коммит
15f2af14f4
|
@ -43,6 +43,6 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.Common
|
|||
|
||||
public const string RazorImplementationEndpointName = "razor/implementation";
|
||||
|
||||
public const string RazorOnAutoInsertnEndpointName = "razor/onAutoInsert";
|
||||
public const string RazorOnAutoInsertEndpointName = "razor/onAutoInsert";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.AutoInsert
|
|||
_onAutoInsertProviders = onAutoInsertProvider?.ToList() ?? throw new ArgumentNullException(nameof(onAutoInsertProvider));
|
||||
}
|
||||
|
||||
protected override string CustomMessageTarget => RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertnEndpointName;
|
||||
protected override string CustomMessageTarget => RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertEndpointName;
|
||||
|
||||
public RegistrationExtensionResult GetRegistration(VSInternalClientCapabilities clientCapabilities)
|
||||
{
|
||||
|
|
|
@ -115,7 +115,7 @@ namespace Microsoft.VisualStudio.LanguageServerClient.Razor
|
|||
[JsonRpcMethod(RazorLanguageServerCustomMessageTargets.RazorImplementationEndpointName, UseSingleObjectParameterDeserialization = true)]
|
||||
public abstract Task<ImplementationResult> ImplementationAsync(DelegatedPositionParams request, CancellationToken cancellationToken);
|
||||
|
||||
[JsonRpcMethod(RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertnEndpointName, UseSingleObjectParameterDeserialization = true)]
|
||||
[JsonRpcMethod(RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertEndpointName, UseSingleObjectParameterDeserialization = true)]
|
||||
public abstract Task<VSInternalDocumentOnAutoInsertResponseItem?> OnAutoInsertAsync(DelegatedOnAutoInsertParams request, CancellationToken cancellationToken);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer
|
|||
RazorLanguageServerCustomMessageTargets.RazorImplementationEndpointName => HandleImplementationAsync(@params),
|
||||
RazorLanguageServerCustomMessageTargets.RazorSignatureHelpEndpointName => HandleSignatureHelpAsync(@params),
|
||||
RazorLanguageServerCustomMessageTargets.RazorRenameEndpointName => HandleRenameAsync(@params),
|
||||
RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertnEndpointName => HandleOnAutoInsertAsync(@params),
|
||||
RazorLanguageServerCustomMessageTargets.RazorOnAutoInsertEndpointName => HandleOnAutoInsertAsync(@params),
|
||||
_ => throw new NotImplementedException($"I don't know how to handle the '{method}' method.")
|
||||
});
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче