diff --git a/org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend b/org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend index 5e5565113..4efbe8b0f 100644 --- a/org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend +++ b/org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend @@ -2240,6 +2240,8 @@ class TextDocumentClientCapabilities { * Since 3.17.0 */ DiagnosticCapabilities diagnostic + + InactiveRegionsCapabilities inactiveRegionsCapabilities new() { } @@ -9956,6 +9958,46 @@ class InlineValueWorkspaceCapabilities { } } +/** + * Capabilities specific to the `textDocument/inactiveRegionsCapabilities` notification. + */ +@JsonRpcData +class InactiveRegionsCapabilities { + + Boolean inactiveRegions + + new() { + } + + new(Boolean inactiveRegions) { + this.inactiveRegions = inactiveRegions + } +} + +@JsonRpcData +class InactiveRegionsParams { + /** + * The document for which inactive regions information is reported. + */ + @NonNull + TextDocumentIdentifier textDocument + + /** + * An array of ranges information items. + */ + @NonNull + List regions + + new() { + this.regions = new ArrayList + } + + new(@NonNull VersionedTextDocumentIdentifier textDocument, @NonNull List regions) { + this.textDocument = Preconditions.checkNotNull(textDocument, 'textDocument') + this.regions = Preconditions.checkNotNull(regions, 'regions') + } +} + /** * A set of predefined position encoding kinds indicating how * positions are encoded, specifically what column offsets mean.