Skip to content

Commit

Permalink
Fix opaque part error on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
srchase committed Apr 27, 2023
1 parent 813db56 commit 0555cfa
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ public CompletableFuture<List<Either<SymbolInformation, DocumentSymbol>>> docume
URI documentUri = documentIdentifierToUri(params.getTextDocument());

locations.forEach((shapeId, loc) -> {
boolean matchesDocument = URI.create(loc.getUri()).equals(documentUri);
String[] locSegments = loc.getUri().replace("\\", "/").split(":");
boolean matchesDocument = documentUri.toString().endsWith(locSegments[locSegments.length - 1]);

if (!matchesDocument) {
return;
Expand Down

0 comments on commit 0555cfa

Please sign in to comment.