Beispiel #1
0
        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);
        }
Beispiel #2
0
 public ServerCapabilities(TextDocumentSyncKind syncKind)
 {
     TextDocumentSync = new TextDocumentSyncOptions(syncKind);
     HoverProvider    = true;
 }
Beispiel #3
0
 public TextDocumentSync(TextDocumentSyncOptions value)
 {
     Options = value;
 }