Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add migration dialog #5144

Merged
merged 12 commits into from
Aug 15, 2024
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "",
"Generating plugin...": "",
"Re-generating client...": "",
"Re-generating plugin...": ""
"Re-generating plugin...": "",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "لا يمكن تحديد مجلد مساحة العمل."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Generování manifestu...",
"Generating plugin...": "Generování pluginu...",
"Re-generating client...": "Opětovné generování klienta...",
"Re-generating plugin...": "Opětovné generování pluginu..."
"Re-generating plugin...": "Opětovné generování pluginu...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Nepodařilo se určit složku pracovního prostoru."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Generando manifesto...",
"Generating plugin...": "Generando plugin...",
"Re-generating client...": "Re-generando cliente...",
"Re-generating plugin...": "Re-generando plugin..."
"Re-generating plugin...": "Re-generando plugin...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "No se pudo determinar la carpeta de espacio de trabajo."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Génération du manifeste...",
"Generating plugin...": "Génération du composant...",
"Re-generating client...": "Rafraichissement du client...",
"Re-generating plugin...": "Refraichissement du composant..."
"Re-generating plugin...": "Refraichissement du composant...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Impossible de déterminer le dossier de l'espace de travail."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Generando il manifest...",
"Generating plugin...": "Generando il plugin...",
"Re-generating client...": "Ri-generando il client...",
"Re-generating plugin...": "Ri-generando il plugin..."
"Re-generating plugin...": "Ri-generando il plugin...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Impossibile determinare la cartella di lavoro."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "",
"Generating plugin...": "",
"Re-generating client...": "",
"Re-generating plugin...": ""
"Re-generating plugin...": "",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "ワークスペースフォルダを特定できませんでした。"
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Generowanie manifestu...",
"Generating plugin...": "Generowanie wtyczki",
"Re-generating client...": "Ponowne generowanie klienta...",
"Re-generating plugin...": "Ponowne generowanie wtyczki..."
"Re-generating plugin...": "Ponowne generowanie wtyczki...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Nie można określić folderu przestrzeni roboczej."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Gerando o manifesto...",
"Generating plugin...": "Gerando o plugin...",
"Re-generating client...": "Regerando o cliente...",
"Re-generating plugin...": "Regerando o plugin..."
"Re-generating plugin...": "Regerando o plugin...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Não foi possível determinar a pasta de trabalho."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,12 @@
"Generating manifest...": "Генерация манифеста...",
"Generating plugin...": "Генерация плагина...",
"Re-generating client...": "Перегенерация клиента...",
"Re-generating plugin...": "Перегенерация плагина..."
"Re-generating plugin...": "Перегенерация плагина...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "Не удалось определить папку рабочего пространства."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "Inatengeneza dhariri..",
"Generating plugin...": "Inatengeneza programu-jalizi...",
"Re-generating client...": "Inatengeneza mteja upya...",
"Re-generating plugin...": "Inatengeneza programu-jalizi upya ..."
"Re-generating plugin...": "Inatengeneza programu-jalizi upya ...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api client migrateds successfully!":"",
"Could not determine the workspace folder.": "Haiwezekani kubaini folda ya kazi."
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,12 @@
"Generating manifest...": "",
"Generating plugin...": "",
"Re-generating client...": "",
"Re-generating plugin...": ""
"Re-generating plugin...": "",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": ""
}
9 changes: 8 additions & 1 deletion vscode/microsoft-kiota/l10n/bundle.l10n.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,12 @@
"Generating manifest...": "正在生成清单...",
"Generating plugin...": "正在生成插件...",
"Re-generating client...": "重新生成客户端...",
"Re-generating plugin...": "正在重新生成插件..."
"Re-generating plugin...": "正在重新生成插件...",
"Please migrate your API clients to Kiota workspace.":"",
"Remind me later":"",
"Migrating your API clients...":"",
"Migration completed, but no changes were detected.":"",
"Migration failed":"",
"Api clients migrated successfully!":"",
"Could not determine the workspace folder.": "无法确定工作区文件夹"
}
17 changes: 17 additions & 0 deletions vscode/microsoft-kiota/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,11 @@
"command": "kiota.selectLock",
"group": "2_kiota@1",
"when": "resourceLangId == json && resourceFilename =~ /workspace\\.json$/"
},
{
"command": "kiota.migrateFromLockFile",
"when": "resourceExtname == .json && resourceFilename == kiota-lock.json",
"group": "navigation"
}
],
"view/title": [
Expand Down Expand Up @@ -315,6 +320,13 @@
"command": "kiota.openApiExplorer.removeAllFromSelectedEndpoints",
"when": "false"
}
],
"editor/context": [
{
"command": "kiota.migrateFromLockFile",
"when": "resourceExtname == .json && resourceFilename == kiota-lock.json",
"group": "navigation"
}
]
},
"commands": [
Expand Down Expand Up @@ -413,7 +425,12 @@
{
"command": "kiota.workspace.refresh",
"title": "%kiota.openApiExplorer.refresh.title%"
},
{
"command": "kiota.migrateFromLockFile",
"title": "%kiota.migrateClients.title%"
}

],
"languages": [
{
Expand Down
3 changes: 2 additions & 1 deletion vscode/microsoft-kiota/package.nls.ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"kiota.generate.includeAdditionalData.description": "سيتم تضمين خاصية 'Additional Data' للنماذج",
"kiota.workspace.name": "",
"kiota.openApiExplorer.regenerateButton.title": "",
"kiota.openApiExplorer.editPaths.title": ""
"kiota.openApiExplorer.editPaths.title": "",
"kiota.migrateClients.title": ""
}
3 changes: 2 additions & 1 deletion vscode/microsoft-kiota/package.nls.cs.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"kiota.generate.includeAdditionalData.description": "Bude zahrnuta vlastnost 'AdditionalData' pro modely",
"kiota.workspace.name": "Můj pracovní prostor",
"kiota.openApiExplorer.regenerateButton.title": "Znovu vygenerovat",
"kiota.openApiExplorer.editPaths.title": "Upravit cesty"
"kiota.openApiExplorer.editPaths.title": "Upravit cesty",
"kiota.migrateClients.title": "Migrovat API klienty"
}
4 changes: 3 additions & 1 deletion vscode/microsoft-kiota/package.nls.es.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"kiota.generate.includeAdditionalData.description": "Incluirá la propiedad 'AdditionalData' para modelos.",
"kiota.workspace.name": "Mi espacio de trabajo",
"kiota.openApiExplorer.regenerateButton.title": "Re-generar",
"kiota.openApiExplorer.editPaths.title": "Editar ruta de acceso"
"kiota.openApiExplorer.editPaths.title": "Editar ruta de acceso",
"kiota.openApiExplorer.refresh.title": "Actualizar",
"kiota.migrateClients.title": "Migrar clientes del API"
}
4 changes: 3 additions & 1 deletion vscode/microsoft-kiota/package.nls.fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"kiota.generate.includeAdditionalData.description": "Incluera la propriété 'AdditionalData' pour les modèles générés.",
"kiota.workspace.name": "Mon espace de travail",
"kiota.openApiExplorer.regenerateButton.title": "Générer de nouveau",
"kiota.openApiExplorer.editPaths.title": "Modifier les chemins"
"kiota.openApiExplorer.editPaths.title": "Modifier les chemins",
"kiota.openApiExplorer.refresh.title": "Rafraîchir",
"kiota.migrateClients.title": "Migrer les clients d'API"
}
4 changes: 3 additions & 1 deletion vscode/microsoft-kiota/package.nls.it.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"kiota.generate.includeAdditionalData.description": "Includerà la proprietà 'AdditionalData' per i modelli",
"kiota.workspace.name": "Il mio spazio di lavoro",
"kiota.openApiExplorer.regenerateButton.title": "Rigener",
"kiota.openApiExplorer.editPaths.title": "Modifica i percorsi"
"kiota.openApiExplorer.editPaths.title": "Modifica i percorsi",
"kiota.openApiExplorer.refresh.title": "Aggiorna",
"kiota.migrateClients.title": "Migra i client API"
}
8 changes: 5 additions & 3 deletions vscode/microsoft-kiota/package.nls.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"kiota.generate.deserializer.description": "デシリアライザの完全修飾クラス名",
"kiota.generate.structuredMimeTypes.description": "構造化データモデル生成に使用するMIMEタイプと設定(RFC 9110のAcceptヘッダー表記)",
"kiota.generate.includeAdditionalData.description": "モデルのための“AdditionalData”プロパティを含める",
"kiota.workspace.name": "My Workspace",
"kiota.openApiExplorer.regenerateButton.title": "Re-generate",
"kiota.openApiExplorer.editPaths.title": "Edit paths"
"kiota.workspace.name": "ワークスペース",
"kiota.openApiExplorer.regenerateButton.title": "再生成",
"kiota.openApiExplorer.editPaths.title": "パスを編集",
"kiota.openApiExplorer.refresh.title": "リフレッシュ",
"kiota.migrateClients.title": "APIクライアントを移行"
}
3 changes: 2 additions & 1 deletion vscode/microsoft-kiota/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@
"kiota.workspace.name": "My Workspace",
"kiota.openApiExplorer.regenerateButton.title": "Re-generate",
"kiota.openApiExplorer.editPaths.title": "Edit paths",
"kiota.openApiExplorer.refresh.title": "Refresh"
"kiota.openApiExplorer.refresh.title": "Refresh",
"kiota.migrateClients.title": "Migrate API clients"
}
8 changes: 5 additions & 3 deletions vscode/microsoft-kiota/package.nls.pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
"kiota.generate.deserializer.description": "Pełne nazwy klas dla deserializatorów",
"kiota.generate.structuredMimeTypes.description": "Typy MIME i preferencje do użycia dla generacji modeli danych strukturalnych. Zgodnie z notacją nagłówka Accept RFC9110.",
"kiota.generate.includeAdditionalData.description": "Doda właściwości 'AdditionalData' do modeli",
"kiota.workspace.name": "My Workspace",
"kiota.openApiExplorer.regenerateButton.title": "Re-generate",
"kiota.openApiExplorer.editPaths.title": "Edit paths"
"kiota.workspace.name": "Moja przestrzeń robocza",
"kiota.openApiExplorer.regenerateButton.title": "Ponownie wygeneruj",
"kiota.openApiExplorer.editPaths.title": "Edytuj ścieżki",
"kiota.openApiExplorer.refresh.title": "Odśwież",
"kiota.migrateClients.title": "Migruj klientów API"
}
4 changes: 3 additions & 1 deletion vscode/microsoft-kiota/package.nls.pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@
"kiota.generate.includeAdditionalData.description": "Será incluído a propriedade 'AdditionalData' para modelos",
"kiota.workspace.name": "Meu espaço de trabalho",
"kiota.openApiExplorer.regenerateButton.title": "Gerar novamente",
"kiota.openApiExplorer.editPaths.title": "Modificar endpoints"
"kiota.openApiExplorer.editPaths.title": "Modificar endpoints",
"kiota.openApiExplorer.refresh.title": "Atualizar",
"kiota.migrateClients.title": "Migrar clientes de API"
}
16 changes: 15 additions & 1 deletion vscode/microsoft-kiota/package.nls.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,19 @@
"kiota.openApiExplorer.openDescription.title": "Открыть описание API",
"kiota.searchLock.title": "Искать файл блокировки",
"kiota.openApiExplorer.filterDescription.title": "Отфильтровать описание API",
"kiota.openApiExplorer.openDocumentationPage.title": "Открыть страницу документации"
"kiota.openApiExplorer.openDocumentationPage.title": "Открыть страницу документации",
"kiota.generate.backingStore.description": "Включить резервное хранилище для моделей",
"kiota.generate.excludeBackwardCompatible.description": "Исключить совместимые с предыдущими версиями и устаревшие активы из сгенерированного результата. Следует использовать для новых клиентов",
"kiota.cleanOutput.description": "Удалить все файлы из каталога вывода перед созданием файлов кода",
"kiota.generate.disabledValidationRules.description": "Правила проверки описания OpenAPI для отключения: \nDivergentResponseSchema\nGetWithBody\nInconsistentTypeFormatPair\nKnownAndNotSupportedFormats\nMissingDiscriminator\nMultipleServerEntries\nNoContentWithBody\nNoServerEntry\nUrlFormEncodedComplex\nValidationRuleSetExtensions\nAll",
"kiota.clearCache.description": "Очистить любые кэшированные данные",
"kiota.generate.serializer.description": "Полностью квалифицированные имена классов для сериализаторов",
"kiota.generate.deserializer.description": "Полностью квалифицированные имена классов для десериализаторов",
"kiota.generate.structuredMimeTypes.description": "Типы MIME и предпочтения для использования при создании структурированных моделей данных. Согласно нотации заголовка Accept RFC9110.",
"kiota.generate.includeAdditionalData.description": "Будет включено свойство 'Дополнительные данные' для моделей",
"kiota.workspace.name": "Мое рабочее пространство",
"kiota.openApiExplorer.regenerateButton.title": "Пересоздать",
"kiota.openApiExplorer.editPaths.title": "Изменить пути",
"kiota.openApiExplorer.refresh.title": "Обновить",
"kiota.migrateClients.title": "Перенести API-клиенты"
}
4 changes: 3 additions & 1 deletion vscode/microsoft-kiota/package.nls.sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@
"kiota.openApiExplorer.openFile.title": "fungua faili",
"kiota.workspace.name": "Mahali pa kazi yangu",
"kiota.openApiExplorer.regenerateButton.title": "Kuunda upya",
"kiota.openApiExplorer.editPaths.title": "Hariri pointi za mwisho"
"kiota.openApiExplorer.editPaths.title": "Hariri pointi za mwisho",
"kiota.openApiExplorer.refresh.title": "Sasisha",
"kiota.migrateClients.title": "Hamisha wateja wa API"
}
8 changes: 5 additions & 3 deletions vscode/microsoft-kiota/package.nls.tr.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
"kiota.generate.deserializer.description": "Seri durumdan çıkarma işlemleri için tam nitelikli sınıf adları",
"kiota.generate.structuredMimeTypes.description": "Yapılandırılmış veri modeli oluşturmak için kullanılacak MIME türleri ve tercihi. RFC9110'a göre Başlık gösterimini kabul et.",
"kiota.generate.includeAdditionalData.description": "Modeller için 'AdditionalData' özelliğini içerecektir",
"kiota.workspace.name": "My Workspace",
"kiota.openApiExplorer.regenerateButton.title": "Re-generate",
"kiota.openApiExplorer.editPaths.title": "Edit paths"
"kiota.workspace.name": "Çalışma Alanım",
"kiota.openApiExplorer.regenerateButton.title": "Yeniden oluştur",
"kiota.openApiExplorer.editPaths.title": "Yolları düzenle",
"kiota.openApiExplorer.refresh.title": "Yenile",
"kiota.migrateClients.title": "API istemcilerini taşı"
}
2 changes: 2 additions & 0 deletions vscode/microsoft-kiota/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ export const statusBarCommandId = `${extensionId}.status`;
export const treeViewId = `${extensionId}.openApiExplorer`;
export const treeViewFocusCommand = `${treeViewId}${focusCommandId}`;
export const dependenciesInfo = `${extensionId}.dependenciesInfo`;
export const KIOTA_LOCK_FILE = "kiota-lock.json";
export const KIOTA_WORKSPACE_FILE = "workspace.json";
export const KIOTA_DIRECTORY = '.kiota';
export const CLIENTS = "clients";
export const PLUGINS = "plugins";
export const CLIENT = "client";
export const PLUGIN = "plugin";
export const APIMANIFEST = "apimanifest";
export const REMIND_ME_LATER_FLAG = 'remindMeLater';

Loading
Loading