Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support inactive regions #845

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -2240,6 +2240,8 @@ class TextDocumentClientCapabilities {
* Since 3.17.0
*/
DiagnosticCapabilities diagnostic

InactiveRegionsCapabilities inactiveRegionsCapabilities

new() {
}
Expand Down Expand Up @@ -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<Range> regions

new() {
this.regions = new ArrayList
}

new(@NonNull VersionedTextDocumentIdentifier textDocument, @NonNull List<Range> 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.
Expand Down
Loading