Skip to content

Commit

Permalink
Use the URI as the human readable name of the change instead of the p…
Browse files Browse the repository at this point in the history
…ath (#1053)

in the filesystem to support files which are only in the Eclipse
filesystem (not in the IO filesystem)
  • Loading branch information
rubenporras authored Aug 14, 2024
1 parent a1d06f6 commit eea231a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ private static Change toChanges(URI uri, List<TextEdit> textEdits) {
Comparator.comparingInt(Position::getLine).thenComparingInt(Position::getCharacter).reversed()));
LSPTextChange[] changes = textEdits.stream().map(te -> new LSPTextChange("Line: %d".formatted(te.getRange().getStart().getLine() + 1), uri, te)) //$NON-NLS-1$
.toArray(LSPTextChange[]::new);
CompositeChange cc = new CompositeChange(Paths.get(uri).toString(), changes);
CompositeChange cc = new CompositeChange(uri.toString(), changes);
return cc;
}

Expand Down

0 comments on commit eea231a

Please sign in to comment.