Skip to content

Commit c30e9c0

Browse files
committed
fix: await setting config to not ask before UpdateTest and format
1 parent 22280b6 commit c30e9c0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

editors/code/src/commands.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,18 +1155,18 @@ export function runSingle(ctx: CtxInit): Cmd {
11551155

11561156
if (isUpdatingTest(runnable) && ctx.config.askBeforeUpdateTest) {
11571157
const selection = await vscode.window.showInformationMessage(
1158-
'rust-analyzer',
1159-
{ detail: 'Do you want to update tests?', modal: true },
1160-
'Update Now',
1161-
'Update (and Don\'t ask again)',
1158+
"rust-analyzer",
1159+
{ detail: "Do you want to update tests?", modal: true },
1160+
"Update Now",
1161+
"Update (and Don't ask again)",
11621162
);
11631163

1164-
if (selection !== 'Update Now' && selection !== 'Update (and Don\'t ask again)') {
1164+
if (selection !== "Update Now" && selection !== "Update (and Don't ask again)") {
11651165
return;
11661166
}
11671167

1168-
if (selection === 'Update (and Don\'t ask again)') {
1169-
ctx.config.setAskBeforeUpdateTest(false);
1168+
if (selection === "Update (and Don't ask again)") {
1169+
await ctx.config.setAskBeforeUpdateTest(false);
11701170
}
11711171
}
11721172

0 commit comments

Comments
 (0)