"rules": {
"camelcase": ["error"],
"eqeqeq": ["error", "always", { "null": "ignore" }],
- "no-console": ["error"],
+ "no-console": ["error", { allow: ["warn", "error"] }],
"prefer-const": "error",
"@typescript-eslint/member-delimiter-style": [
"error",
command: "rust-analyzer.applyActionGroup",
title: "",
arguments: [items.map((item) => {
- return { label: item.title, arguments: item.command!!.arguments!![0] };
+ return { label: item.title, arguments: item.command.arguments[0] };
})],
};
maybeUpdater.onConfigChange, maybeUpdater, ctx.subscriptions
);
- maybeUpdater.onConfigChange();
+ maybeUpdater.onConfigChange().catch(console.error);
}
const typeHints = createHintStyle("type");
quickPick.onDidHide(() => close()),
quickPick.onDidAccept(() => close(quickPick.selectedItems[0])),
quickPick.onDidTriggerButton((_button) => {
- (async () => await makeDebugConfig(ctx, quickPick.activeItems[0].runnable))();
+ makeDebugConfig(ctx, quickPick.activeItems[0].runnable).catch(console.error);
close();
}),
quickPick.onDidChangeActive((active) => {