diff --git a/vscode/microsoft-kiota/src/extension.ts b/vscode/microsoft-kiota/src/extension.ts index 00e5531db3..05f3069d17 100644 --- a/vscode/microsoft-kiota/src/extension.ts +++ b/vscode/microsoft-kiota/src/extension.ts @@ -304,7 +304,7 @@ export async function activate( } } async function generatePluginAndRefreshUI(config: Partial, settings: ExtensionSettings, outputPath: string, selectedPaths: string[]):Promise { - const pluginTypes = typeof config.pluginTypes === 'string' ? parsePluginType(config.pluginTypes) : KiotaPluginType.Microsoft; + const pluginTypes = typeof config.pluginTypes === 'string' ? parsePluginType(config.pluginTypes) : KiotaPluginType.ApiPlugin; const result = await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, cancellable: false, @@ -446,7 +446,7 @@ export async function activate( void vscode.window.showInformationMessage(`Client ${clientKey} re-generated successfully.`); } async function regeneratePlugin(clientKey: string, clientObject:any, settings: ExtensionSettings, selectedPaths?: string[]) { - const pluginTypes = typeof clientObject.pluginTypes === 'string' ? parsePluginType(clientObject.pluginTypes) : KiotaPluginType.Microsoft; + const pluginTypes = typeof clientObject.pluginTypes === 'string' ? parsePluginType(clientObject.pluginTypes) : KiotaPluginType.ApiPlugin; await vscode.window.withProgress({ location: vscode.ProgressLocation.Notification, cancellable: false, diff --git a/vscode/microsoft-kiota/src/kiotaInterop.ts b/vscode/microsoft-kiota/src/kiotaInterop.ts index d48b828d55..974544ebfd 100644 --- a/vscode/microsoft-kiota/src/kiotaInterop.ts +++ b/vscode/microsoft-kiota/src/kiotaInterop.ts @@ -111,7 +111,7 @@ export enum KiotaPluginType { // eslint-disable-next-line @typescript-eslint/naming-convention ApiManifest = 1, // eslint-disable-next-line @typescript-eslint/naming-convention - Microsoft = 2, + ApiPlugin = 2, } export enum ConsumerOperation { @@ -130,8 +130,8 @@ export function parsePluginType(value: string): KiotaPluginType { return KiotaPluginType.OpenAI; case "ApiManifest": return KiotaPluginType.ApiManifest; - case "Microsoft": - return KiotaPluginType.Microsoft; + case "ApiPlugin": + return KiotaPluginType.ApiPlugin; default: throw new Error("unknown plugin type"); } diff --git a/vscode/microsoft-kiota/src/steps.ts b/vscode/microsoft-kiota/src/steps.ts index b9a7389b85..4a652552c3 100644 --- a/vscode/microsoft-kiota/src/steps.ts +++ b/vscode/microsoft-kiota/src/steps.ts @@ -236,7 +236,7 @@ export async function generateSteps(existingConfiguration: Partial inputPluginType(input, state); } async function inputPluginType(input: MultiStepInput, state: Partial) { - const items = ['Microsoft','Open AI'].map(x => ({ label: x})as QuickPickItem); + const items = ['ApiPlugin','Open AI'].map(x => ({ label: x})as QuickPickItem); const pluginTypes = await input.showQuickPick({ title: l10n.t('Choose a plugin type'), step: step++, @@ -246,7 +246,7 @@ export async function generateSteps(existingConfiguration: Partial inputPluginOutputPath(input, state); } async function inputPluginOutputPath(input: MultiStepInput, state: Partial) {