Skip to content

Commit

Permalink
fix: skill bot missing skill diagnostics (microsoft#5218)
Browse files Browse the repository at this point in the history
* set botProjectFileState for skill bot

* update hint text

Co-authored-by: Dong Lei <donglei@microsoft.com>
  • Loading branch information
zhixzhan and boydc2014 authored Dec 8, 2020
1 parent 420458d commit 37e03bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,8 @@ export const openLocalSkill = async (callbackHelpers, pathToBot: string, storage
isRemote: false,
});
set(botNameIdentifierState(projectData.id), botNameIdentifier);
const currentBotProjectFileIndexed: BotProjectFile = botFiles.botProjectSpaceFiles[0];
set(botProjectFileState(projectData.id), currentBotProjectFileIndexed);

return {
projectId: projectData.id,
Expand Down
2 changes: 1 addition & 1 deletion Composer/packages/lib/indexers/src/botIndexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const checkSkillSetting = (assets: { dialogs: DialogInfo[]; botProjectFile: BotP
const skillName = getSkillNameFromSetting(skillId) || skillId;
diagnostics.push(
new Diagnostic(
`The skill '${skillName}' does not exist in in appsettings.json`,
`The skill '${skillName}' does not exist in bot project file`,
dialog.id,
DiagnosticSeverity.Error
)
Expand Down

0 comments on commit 37e03bb

Please sign in to comment.