Skip to content

Commit

Permalink
Merge pull request #630 from KamasamaK/lsp-3.17-late-additions
Browse files Browse the repository at this point in the history
Late updates for LSP 3.17
  • Loading branch information
cdietrich authored May 26, 2022
2 parents 425003e + f644c75 commit 0ca753d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum PrepareSupportDefaultBehavior {

/**
* The client's default behavior is to select the identifier
* according the to language's syntax rule.
* according to the language's syntax rule.
*/
Identifier(1);

Expand Down
27 changes: 19 additions & 8 deletions org.eclipse.lsp4j/src/main/java/org/eclipse/lsp4j/Protocol.xtend
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ class CompletionItemKindCapabilities {
@JsonRpcData
class CompletionListCapabilities {
/**
* The client supports the the following itemDefaults on
* The client supports the following itemDefaults on
* a completion list.
* <p>
* The value lists the supported property names of the
Expand Down Expand Up @@ -3125,6 +3125,12 @@ class CompletionItemDefaults {
*/
InsertTextMode insertTextMode

/**
* A default data value.
*/
@JsonAdapter(JsonElementTypeAdapter.Factory)
Object data

new() {
}
}
Expand Down Expand Up @@ -5136,7 +5142,7 @@ class LocationLink {

/**
* The range that should be selected and revealed when this link is being followed, e.g the name of a function.
* Must be contained by the the {@link #targetRange}. See also {@link DocumentSymbol#range}
* Must be contained by the {@link #targetRange}. See also {@link DocumentSymbol#range}
*/
@NonNull
Range targetSelectionRange
Expand Down Expand Up @@ -5465,7 +5471,7 @@ class ReferenceParams extends TextDocumentPositionAndWorkDoneProgressAndPartialR
* Since 3.12.0
*/
@JsonRpcData
class PrepareRenameParams extends TextDocumentPositionParams {
class PrepareRenameParams extends TextDocumentPositionAndWorkDoneProgressParams {
new() {
}

Expand Down Expand Up @@ -5660,6 +5666,11 @@ final class SemanticTokenTypes {

public static val Operator = 'operator'

/**
* Since 3.17.0
*/
public static val Decorator = 'decorator'

private new() {
}
}
Expand Down Expand Up @@ -6587,8 +6598,8 @@ class DocumentSymbol {

/**
* The range enclosing this symbol not including leading/trailing whitespace but everything else
* like comments. This information is typically used to determine if the clients cursor is
* inside the symbol to reveal in the symbol in the UI.
* like comments. This information is typically used to determine if the client's cursor is
* inside the symbol to reveal the symbol in the UI.
*/
@NonNull
Range range
Expand Down Expand Up @@ -8809,15 +8820,15 @@ class CallHierarchyItem {

/**
* The range enclosing this symbol not including leading/trailing whitespace but everything else
* like comments. This information is typically used to determine if the the clients cursor is
* inside the symbol to reveal in the symbol in the UI.
* like comments. This information is typically used to determine if the client's cursor is
* inside the symbol to reveal the symbol in the UI.
*/
@NonNull
Range range

/**
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
* Must be contained by the the {@link CallHierarchyItem#getRange range}.
* Must be contained by the {@link CallHierarchyItem#getRange range}.
*/
@NonNull
Range selectionRange
Expand Down

0 comments on commit 0ca753d

Please sign in to comment.