Unnamed repository; edit this file 'description' to name the repository.
fix: await setting config to `not ask before UpdateTest` and format
roife 2024-12-26
parent 22280b6 · commit c30e9c0
-rw-r--r--editors/code/src/commands.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index dc35fddf49..a4b53730ad 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -1155,18 +1155,18 @@ export function runSingle(ctx: CtxInit): Cmd {
if (isUpdatingTest(runnable) && ctx.config.askBeforeUpdateTest) {
const selection = await vscode.window.showInformationMessage(
- 'rust-analyzer',
- { detail: 'Do you want to update tests?', modal: true },
- 'Update Now',
- 'Update (and Don\'t ask again)',
+ "rust-analyzer",
+ { detail: "Do you want to update tests?", modal: true },
+ "Update Now",
+ "Update (and Don't ask again)",
);
- if (selection !== 'Update Now' && selection !== 'Update (and Don\'t ask again)') {
+ if (selection !== "Update Now" && selection !== "Update (and Don't ask again)") {
return;
}
- if (selection === 'Update (and Don\'t ask again)') {
- ctx.config.setAskBeforeUpdateTest(false);
+ if (selection === "Update (and Don't ask again)") {
+ await ctx.config.setAskBeforeUpdateTest(false);
}
}