This commit is contained in:
David Wengier 2022-09-07 11:55:00 +10:00
Родитель 0ee3665a52
Коммит 15f2af14f4
4 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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.")
});
}