Skip to content

Commit 9c68826

Browse files
committed
fix: update webview message handler and internationalization files
1 parent e334ae2 commit 9c68826

File tree

19 files changed

+24
-6
lines changed

19 files changed

+24
-6
lines changed

src/core/webview/webviewMessageHandler.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -744,16 +744,16 @@ export const webviewMessageHandler = async (
744744
} else {
745745
const selection = await vscode.window.showQuickPick(
746746
[
747-
{
748-
label: t("common:settingsFooter.importFromRemoteFile"),
749-
description: t("common:settingsFooter.importFromRemoteFileDescription"),
750-
id: "remote",
751-
},
752747
{
753748
label: t("common:settingsFooter.importFromLocalFile"),
754749
description: t("common:settingsFooter.importFromLocalFileDescription"),
755750
id: "local",
756751
},
752+
{
753+
label: t("common:settingsFooter.importFromRemoteFile"),
754+
description: t("common:settingsFooter.importFromRemoteFileDescription"),
755+
id: "remote",
756+
},
757757
],
758758
{ placeHolder: t("common:settingsFooter.chooseImportSource") },
759759
)
@@ -776,7 +776,7 @@ export const webviewMessageHandler = async (
776776
case "importSettingsFromLocal": {
777777
const content = message.text || ""
778778
if (!content) {
779-
vscode.window.showErrorMessage(t("common:errors.settings_import_failed"))
779+
vscode.window.showErrorMessage(t("common:errors.settings_import_no_content"))
780780
break
781781
}
782782

src/i18n/locales/ca/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/de/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"custom_storage_path_unusable": "Custom storage path \"{{path}}\" is unusable, will use default path",
5151
"cannot_access_path": "Cannot access path {{path}}: {{error}}",
5252
"settings_import_failed": "Settings import failed: {{error}}.",
53+
"settings_import_no_content": "No content received for settings import.",
5354
"mistake_limit_guidance": "This may indicate a failure in the model's thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. \"Try breaking down the task into smaller steps\").",
5455
"violated_organization_allowlist": "Failed to run task: the current profile isn't compatible with your organization settings",
5556
"condense_failed": "Failed to condense context",

src/i18n/locales/es/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/fr/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/hi/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/id/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/it/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i18n/locales/ja/common.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)