Skip to content

Commit

Permalink
fix lu language server (#6835)
Browse files Browse the repository at this point in the history
Co-authored-by: Soroush <[email protected]>
  • Loading branch information
hatpick and sorgh authored Apr 9, 2021
1 parent 5c0c6f3 commit 2c20585
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class LuParserWithWorker {
luFeatures: ILUFeaturesConfig
): Promise<LuFile> {
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;
Expand All @@ -73,7 +73,7 @@ class LuParserWithWorker {

public async parseFile(text: string, log, locale: string): Promise<any> {
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;
Expand Down

0 comments on commit 2c20585

Please sign in to comment.