Skip to content

Commit

Permalink
fix: don't use deprecated LSP4E API method
Browse files Browse the repository at this point in the history
  • Loading branch information
sebthom committed Jan 16, 2025
1 parent 19f58b8 commit a383dde
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void inputDocumentChanged(IDocument oldInput, IDocument newInput) {
}
document.addDocumentListener(this);
}

private void autoInsert(DocumentEvent event) {
if (!isEnabled()) {
return;
Expand Down Expand Up @@ -126,7 +126,7 @@ private void autoInsert(DocumentEvent event) {
CompletableFuture.supplyAsync(() -> {
try {
TextDocumentPositionParams params = LSPEclipseUtils
.toTextDocumentPosistionParams(uri, offset, document);
.toTextDocumentPosistionParams(offset, document);
// consumes xml/closeTag from XML language server
info.closeTag(params).thenAccept(r -> {
if (r != null) {
Expand Down

0 comments on commit a383dde

Please sign in to comment.