diff --git a/libraries/botbuilder-lg/src/staticChecker.ts b/libraries/botbuilder-lg/src/staticChecker.ts index bed9b80480..5dc876de46 100644 --- a/libraries/botbuilder-lg/src/staticChecker.ts +++ b/libraries/botbuilder-lg/src/staticChecker.ts @@ -310,7 +310,7 @@ export class StaticChecker extends AbstractParseTreeVisitor implem const lineOffset = this.currentTemplate !== undefined ? this.currentTemplate.sourceRange.range.start.line : 0; let templateNameInfo = ''; - if (this.currentTemplate !== undefined && this.currentTemplate.name !== Templates.inlineTemplateId) { + if (this.currentTemplate !== undefined && this.currentTemplate.name.startsWith(Templates.inlineTemplateIdPrefix)) { templateNameInfo = `[${ this.currentTemplate.name }]`; } diff --git a/libraries/botbuilder-lg/src/templates.ts b/libraries/botbuilder-lg/src/templates.ts index a04ed9677d..f53181617e 100644 --- a/libraries/botbuilder-lg/src/templates.ts +++ b/libraries/botbuilder-lg/src/templates.ts @@ -30,7 +30,7 @@ export class Templates implements Iterable