Skip to content

Commit e002cd1

Browse files
sharpSteffbaronfel
authored andcommitted
Make PublishDiagnostics optional
1 parent 3232a65 commit e002cd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Types.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ type TextDocumentClientCapabilities =
777777
{ Synchronization: SynchronizationCapabilities option
778778

779779
/// Capabilities specific to `textDocument/publishDiagnostics`.
780-
PublishDiagnostics: PublishDiagnosticsCapabilities
780+
PublishDiagnostics: PublishDiagnosticsCapabilities option
781781

782782
/// Capabilities specific to the `textDocument/completion`
783783
Completion: CompletionCapabilities option

tests/Benchmarks.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ type MultipleTypesBenchmarks() =
412412
WillSave = Some true
413413
WillSaveWaitUntil = Some false
414414
DidSave = Some true }
415-
PublishDiagnostics = { RelatedInformation = None; TagSupport = None }
415+
PublishDiagnostics = Some { RelatedInformation = None; TagSupport = None }
416416
Completion = None
417417
Hover =
418418
Some

0 commit comments

Comments
 (0)