From fe0276c6149b8c4dfe0e204f64f5d5466cdc80f9 Mon Sep 17 00:00:00 2001 From: Micah Morrison Date: Wed, 10 Apr 2024 14:04:53 -0400 Subject: [PATCH] Integrate Run on Save --- .vscode/extensions.json | 3 ++- .vscode/settings.json | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index b8238078b..19fef92c0 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ - "ipcjs.i18n-ally-ipcjs" + "ipcjs.i18n-ally-ipcjs", + "emeraldwalk.runonsave" ] } \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index 1f2212026..6e729f5ec 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -36,5 +36,14 @@ "l10n.{key}({args})" ] } - ] + ], + "emeraldwalk.runonsave": { + "commands": [ + { + "match": ".*.arb", + "isAsync": false, + "cmd": "dart pub global activate arb_utils && arb_utils generate-meta ./lib/l10n/app_en.arb && arb_utils sort ./lib/l10n/app_en.arb && flutter gen-l10n" + }, + ] + } } \ No newline at end of file