public void SimpleTest(string expected) { var model = new TextDocumentSyncOptions { Change = TextDocumentSyncKind.Full, OpenClose = true, Save = new SaveOptions { IncludeText = true }, WillSave = true, WillSaveWaitUntil = true }; var result = Fixture.SerializeObject(model); result.Should().Be(expected); var deresult = new LspSerializer(ClientVersion.Lsp3).DeserializeObject <TextDocumentSyncOptions>(expected); deresult.Should().BeEquivalentTo(model); }
public ServerCapabilities(TextDocumentSyncKind syncKind) { TextDocumentSync = new TextDocumentSyncOptions(syncKind); HoverProvider = true; }
public TextDocumentSync(TextDocumentSyncOptions value) { Options = value; }