Skip to content

Commit

Permalink
Replace <path> with its parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
nipunayf committed Nov 8, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 90eacfe commit a286dbb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -216,7 +216,8 @@ private static ResourceAccessPathPart getResourceAccessPartForSegment(PathSegmen
new ResourceAccessPathPart(computedInsertText, computedSignature);
if (context.currentSemanticModel().isPresent() &&
context.currentSemanticModel().get().types().STRING.subtypeOf(typeSymbol)) {
resourceAccessPathPart.namedPathSignature = "<path>";
resourceAccessPathPart.namedPathSignature = pathParameterSymbol.getName().isPresent() ?
"<" + pathParameterSymbol.getName().get() + ">" : "<path>";;
resourceAccessPathPart.namedPathInsertText = "${" + placeHolderIndex + ":" + "path" + "}";
resourceAccessPathPart.computedPathInsertText = "[${" + placeHolderIndex + ":" + "\"path\"" + "}]";
resourceAccessPathPart.isStringPathPram = true;

0 comments on commit a286dbb

Please sign in to comment.