Skip to content

Commit

Permalink
update french string
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed May 22, 2024
1 parent 8377932 commit 6ebfac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"Select an option": "Sélectionnez une option",
"class": "classe",
"namespace": "espace de nommage",
"output path": "chemin de sortie",
"output directory": "répertoire de sortie",
"language": "langage",
"Create a new API client": "Créer un nouveau client d'API",
"Create a new plugin": "Créer un nouveau composant",
Expand Down
5 changes: 1 addition & 4 deletions vscode/microsoft-kiota/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,7 @@ export async function activate(
await vscode.commands.executeCommand('setContext',`${treeViewId}.showIcons`, false);
await vscode.commands.executeCommand('setContext', `${treeViewId}.showRegenerateIcon`, true);
}),

registerCommandWithTelemetry(reporter,`${treeViewId}.regenerateButton`, async () => {
registerCommandWithTelemetry(reporter,`${treeViewId}.regenerateButton`, async () => {
const settings = getExtensionSettings(extensionId);
const selectedPaths = openApiTreeProvider.getSelectedPaths();
if (selectedPaths.length === 0) {
Expand All @@ -249,7 +248,6 @@ export async function activate(
await regeneratePlugin(clientOrPluginKey, clientOrPluginObject, settings, selectedPaths);
}
}),

registerCommandWithTelemetry(reporter, `${extensionId}.regenerate`, async (clientKey: string, clientObject: ClientOrPluginProperties, generationType: string) => {
const settings = getExtensionSettings(extensionId);
const workspaceJson = vscode.workspace.textDocuments.find(doc => doc.fileName.endsWith(kiotaWorkspaceFile));
Expand Down Expand Up @@ -445,7 +443,6 @@ 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;
await vscode.window.withProgress({
Expand Down

0 comments on commit 6ebfac1

Please sign in to comment.