This commit is contained in:
David Wengier 2021-12-03 15:01:36 +11:00
Родитель ee8629cba6
Коммит 8a693528a4
2 изменённых файлов: 6 добавлений и 2 удалений

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

@ -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(() =>
{