зеркало из https://github.com/dotnet/razor.git
Nullable
This commit is contained in:
Родитель
ee8629cba6
Коммит
8a693528a4
|
@ -1,6 +1,8 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
#nullable enable
|
||||
|
||||
using Microsoft.AspNetCore.Razor.LanguageServer.Common;
|
||||
using Microsoft.VisualStudio.LanguageServerClient.Razor.WrapWithDiv;
|
||||
using OmniSharp.Extensions.JsonRpc;
|
||||
|
@ -8,7 +10,7 @@ using OmniSharp.Extensions.JsonRpc;
|
|||
namespace Microsoft.AspNetCore.Razor.LanguageServer.AutoInsert
|
||||
{
|
||||
[Parallel, Method(LanguageServerConstants.RazorWrapWithTagEndpoint)]
|
||||
internal interface IWrapWithTagHandler : IJsonRpcRequestHandler<WrapWithTagParams, WrapWithTagResponse>
|
||||
internal interface IWrapWithTagHandler : IJsonRpcRequestHandler<WrapWithTagParams, WrapWithTagResponse?>
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See License.txt in the project root for license information.
|
||||
|
||||
#nullable enable
|
||||
|
||||
using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
@ -61,7 +63,7 @@ namespace Microsoft.AspNetCore.Razor.LanguageServer.AutoInsert
|
|||
_logger = loggerFactory.CreateLogger<WrapWithTagEndpoint>();
|
||||
}
|
||||
|
||||
public async Task<WrapWithTagResponse> Handle(WrapWithTagParams request, CancellationToken cancellationToken)
|
||||
public async Task<WrapWithTagResponse?> Handle(WrapWithTagParams request, CancellationToken cancellationToken)
|
||||
{
|
||||
var documentSnapshot = await _projectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(() =>
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче