Skip to content

Commit

Permalink
fix typecase
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Aug 7, 2024
1 parent 3f85f95 commit c340bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vscode/microsoft-kiota/src/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export async function generateSteps(existingConfiguration: Partial<GenerateState
return (input: MultiStepInput) => inputPluginType(input, state);
}
async function inputPluginType(input: MultiStepInput, state: Partial<GenerateState>) {
const items = ['Api Plugin','Open AI'].map(x => ({ label: x})as QuickPickItem);
const items = ['API Plugin','Open AI'].map(x => ({ label: x})as QuickPickItem);
const pluginTypes = await input.showQuickPick({
title: l10n.t('Choose a plugin type'),
step: step++,
Expand All @@ -287,7 +287,7 @@ export async function generateSteps(existingConfiguration: Partial<GenerateState
validate: validateIsNotEmpty,
shouldResume: shouldResume
});
pluginTypes.label === 'Api Plugin' ? state.pluginTypes = ['ApiPlugin'] : state.pluginTypes = ['OpenAI'];
pluginTypes.label === 'API Plugin' ? state.pluginTypes = ['ApiPlugin'] : state.pluginTypes = ['OpenAI'];
return (input: MultiStepInput) => inputPluginOutputPath(input, state);
}
async function inputPluginOutputPath(input: MultiStepInput, state: Partial<GenerateState>) {
Expand Down

0 comments on commit c340bbf

Please sign in to comment.