Skip to content

Commit

Permalink
Fix compatibility with updated lsp4j (LSP 3.15)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentjn committed Mar 28, 2020
1 parent 7df7c36 commit b2af512
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ public CompletableFuture<CompletionItem> resolveCompletionItem(CompletionItem un
}

@Override
public CompletableFuture<Hover> hover(TextDocumentPositionParams position) {
public CompletableFuture<Hover> hover(HoverParams position) {
return null;
}

@Override
public CompletableFuture<SignatureHelp> signatureHelp(TextDocumentPositionParams position) {
public CompletableFuture<SignatureHelp> signatureHelp(SignatureHelpParams position) {
return null;
}

@Override
public CompletableFuture<Either<List<? extends Location>,List<? extends LocationLink>>> definition(TextDocumentPositionParams position) {
public CompletableFuture<Either<List<? extends Location>,List<? extends LocationLink>>> definition(DefinitionParams position) {
return null;
}

Expand All @@ -57,7 +57,7 @@ public CompletableFuture<List<? extends Location>> references(ReferenceParams pa
}

@Override
public CompletableFuture<List<? extends DocumentHighlight>> documentHighlight(TextDocumentPositionParams position) {
public CompletableFuture<List<? extends DocumentHighlight>> documentHighlight(DocumentHighlightParams position) {
return null;
}

Expand Down Expand Up @@ -114,9 +114,6 @@ public void didChange(DidChangeTextDocumentParams params) {
if (changeEvent.getRange() != null) {
throw new UnsupportedOperationException(Tools.i18n("rangeShouldBeNull"));
}
if (changeEvent.getRangeLength() != null) {
throw new UnsupportedOperationException(Tools.i18n("rangeLengthShouldBeNull"));
}

documents.get(uri).setText(changeEvent.getText());
documents.get(uri).setVersion(params.getTextDocument().getVersion());
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/MessagesBundle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ latexAnnotatedTextBuilderPreventedInfiniteLoop = Prevented infinite loop in Late
notARecognizedLanguage = {0} is not a recognized language. Leaving LanguageTool uninitialized, checking disabled.
obtainedRuleMatch = Obtained 1 rule match
obtainedRuleMatches = Obtained {0} rule matches
rangeLengthShouldBeNull = Range length should be null for full document update
rangeShouldBeNull = Range should be null for full document update
removedIgnoredRuleMatch = Removed 1 ignored rule match
removedIgnoredRuleMatches = Removed {0} ignored rule matches
Expand Down

0 comments on commit b2af512

Please sign in to comment.