Show template literal in navtree function call args

This commit is contained in:
Benjamin Lichtman
2018-12-27 17:01:05 -08:00
parent b8def16e92
commit c46090b8dc
2 changed files with 4 additions and 4 deletions

View File

@@ -660,7 +660,7 @@ namespace ts.NavigationBar {
else if (isCallExpression(parent)) {
const name = getCalledExpressionName(parent.expression);
if (name !== undefined) {
const args = mapDefined(parent.arguments, a => isStringLiteral(a) ? a.getText(curSourceFile) : undefined).join(", ");
const args = mapDefined(parent.arguments, a => isStringLiteralLike(a) ? a.getText(curSourceFile) : undefined).join(", ");
return `${name}(${args}) callback`;
}
}