diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/EndpointContracts/LinkedEditingRange/ILinkedEditingRangeEndpoint.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/EndpointContracts/LinkedEditingRange/ILinkedEditingRangeEndpoint.cs deleted file mode 100644 index b385a5ee311..00000000000 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/EndpointContracts/LinkedEditingRange/ILinkedEditingRangeEndpoint.cs +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright (c) .NET Foundation. All rights reserved. -// Licensed under the MIT license. See License.txt in the project root for license information. - -using Microsoft.CommonLanguageServerProtocol.Framework; -using Microsoft.VisualStudio.LanguageServer.Protocol; - -namespace Microsoft.AspNetCore.Razor.LanguageServer.EndpointContracts.LinkedEditingRange; - -[LanguageServerEndpoint(Methods.TextDocumentLinkedEditingRangeName)] -internal interface ILinkedEditingRangeEndpoint : IRazorRequestHandler, IRegistrationExtension -{ -} diff --git a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/LinkedEditingRange/LinkedEditingRangeEndpoint.cs b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/LinkedEditingRange/LinkedEditingRangeEndpoint.cs index 75572868cac..fcdc170468d 100644 --- a/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/LinkedEditingRange/LinkedEditingRangeEndpoint.cs +++ b/src/Razor/src/Microsoft.AspNetCore.Razor.LanguageServer/LinkedEditingRange/LinkedEditingRangeEndpoint.cs @@ -10,15 +10,16 @@ using Microsoft.AspNetCore.Razor.Language.Syntax; using Microsoft.AspNetCore.Razor.LanguageServer.Common.Extensions; using Microsoft.AspNetCore.Razor.LanguageServer.EndpointContracts; -using Microsoft.AspNetCore.Razor.LanguageServer.EndpointContracts.LinkedEditingRange; using Microsoft.AspNetCore.Razor.LanguageServer.Extensions; using Microsoft.CodeAnalysis.Text; +using Microsoft.CommonLanguageServerProtocol.Framework; using Microsoft.Extensions.Logging; using Microsoft.VisualStudio.LanguageServer.Protocol; namespace Microsoft.AspNetCore.Razor.LanguageServer.LinkedEditingRange; -internal class LinkedEditingRangeEndpoint : ILinkedEditingRangeEndpoint +[LanguageServerEndpoint(Methods.TextDocumentLinkedEditingRangeName)] +internal class LinkedEditingRangeEndpoint : IRazorRequestHandler, IRegistrationExtension { // The regex below excludes characters that can never be valid in a TagHelper name. // This is loosely based off logic from the Razor compiler: diff --git a/src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/LinkedEditingRange/LinkedEditingRangeEndpointTest.cs b/src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/LinkedEditingRange/LinkedEditingRangeEndpointTest.cs index 0c458286e76..22f5da9d158 100644 --- a/src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/LinkedEditingRange/LinkedEditingRangeEndpointTest.cs +++ b/src/Razor/test/Microsoft.AspNetCore.Razor.LanguageServer.Test/LinkedEditingRange/LinkedEditingRangeEndpointTest.cs @@ -7,12 +7,11 @@ using System.Text.RegularExpressions; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.LanguageServer.Completion; -using Microsoft.AspNetCore.Razor.LanguageServer.LinkedEditingRange; using Microsoft.VisualStudio.LanguageServer.Protocol; using Xunit; using Xunit.Abstractions; -namespace Microsoft.AspNetCore.Razor.LanguageServer.Test.LinkedEditingRange; +namespace Microsoft.AspNetCore.Razor.LanguageServer.LinkedEditingRange; public class LinkedEditingRangeEndpointTest : TagHelperServiceTestBase {