From e85832f2953964f0c00adc0c67d92ae707f3b8d7 Mon Sep 17 00:00:00 2001 From: Andrew Hall Date: Wed, 15 May 2024 16:21:36 -0700 Subject: [PATCH] Update attributes for STJ (#73495) --- .../Protocol/TextDocumentChangeRegistrationOptions.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/Features/LanguageServer/Protocol/Protocol/TextDocumentChangeRegistrationOptions.cs b/src/Features/LanguageServer/Protocol/Protocol/TextDocumentChangeRegistrationOptions.cs index 39de99b3501a0..fa152aa3d8140 100644 --- a/src/Features/LanguageServer/Protocol/Protocol/TextDocumentChangeRegistrationOptions.cs +++ b/src/Features/LanguageServer/Protocol/Protocol/TextDocumentChangeRegistrationOptions.cs @@ -2,13 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -using System; -using System.Collections.Generic; -using System.Linq; -using System.Runtime.Serialization; -using System.Text; -using System.Threading.Tasks; -using Roslyn.LanguageServer.Protocol; +using System.Text.Json.Serialization; namespace Roslyn.LanguageServer.Protocol { @@ -17,14 +11,13 @@ namespace Roslyn.LanguageServer.Protocol /// /// See the Language Server Protocol specification for additional information. /// - [DataContract] internal class TextDocumentChangeRegistrationOptions : TextDocumentRegistrationOptions { /// /// How documents are synced to the server. See /// and . /// - [DataMember(Name = "syncKind")] + [JsonPropertyName("syncKind")] public TextDocumentSyncKind SyncKind { get;