diff --git a/Composer/packages/tools/language-servers/language-understanding/src/luParser.ts b/Composer/packages/tools/language-servers/language-understanding/src/luParser.ts index 9ff75c09f6..5eb1216de9 100644 --- a/Composer/packages/tools/language-servers/language-understanding/src/luParser.ts +++ b/Composer/packages/tools/language-servers/language-understanding/src/luParser.ts @@ -63,7 +63,7 @@ class LuParserWithWorker { luFeatures: ILUFeaturesConfig ): Promise { const msgId = uniqueId(); - const msg = { id: msgId, type: 'updateTemplate', payload: { luFile, intentName, intent, luFeatures } }; + const msg = { id: msgId, type: 'updateIntent', payload: { luFile, intentName, intent, luFeatures } }; return new Promise((resolve, reject) => { this.resolves[msgId] = resolve; this.rejects[msgId] = reject; @@ -73,7 +73,7 @@ class LuParserWithWorker { public async parseFile(text: string, log, locale: string): Promise { const msgId = uniqueId(); - const msg = { id: msgId, type: 'updateTemplate', payload: { text, log, locale } }; + const msg = { id: msgId, type: 'parseFile', payload: { text, log, locale } }; return new Promise((resolve, reject) => { this.resolves[msgId] = resolve; this.rejects[msgId] = reject;