Skip to content

Commit 155948f

Browse files
ensure that one of the changes includes text document sync
1 parent a730b68 commit 155948f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Protocol/Server/Capabilities/TextDocumentSyncOptions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class TextDocumentSyncOptions : ITextDocumentSyncOptions
4040
public static TextDocumentSyncOptions Of(IEnumerable<ITextDocumentSyncOptions> options)
4141
{
4242
var change = TextDocumentSyncKind.None;
43-
if (options.Any())
43+
if (options.Any(x => x.Change != TextDocumentSyncKind.None))
4444
{
4545
change = options
4646
.Where(x => x.Change != TextDocumentSyncKind.None)

0 commit comments

Comments
 (0)