in src/main/java/software/amazon/smithy/lsp/SmithyTextDocumentService.java [245:259]
public void updateLocations(Model model) {
model.shapes().forEach(shape -> {
SourceLocation sourceLocation = shape.getSourceLocation();
String uri = sourceLocation.getFilename();
if (uri.startsWith("jar:file:")) {
uri = "smithyjar:" + uri.substring(9);
} else if (!uri.startsWith("file:")) {
uri = "file:" + uri;
}
Position pos = new Position(sourceLocation.getLine() - 1, sourceLocation.getColumn() - 1);
Location location = new Location(uri, new Range(pos, pos));
locations.put(shape.getId().getName(), Arrays.asList(location));
});
}