mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
handle promise catches
This commit is contained in:
parent
eb69f67ab7
commit
1d0e93b58e
4 changed files with 4 additions and 4 deletions
|
@ -14,7 +14,7 @@ module.exports = {
|
||||||
"rules": {
|
"rules": {
|
||||||
"camelcase": ["error"],
|
"camelcase": ["error"],
|
||||||
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
||||||
"no-console": ["error"],
|
"no-console": ["error", { allow: ["warn", "error"] }],
|
||||||
"prefer-const": "error",
|
"prefer-const": "error",
|
||||||
"@typescript-eslint/member-delimiter-style": [
|
"@typescript-eslint/member-delimiter-style": [
|
||||||
"error",
|
"error",
|
||||||
|
|
|
@ -138,7 +138,7 @@ export function createClient(serverPath: string, cwd: string, extraEnv: Env): lc
|
||||||
command: "rust-analyzer.applyActionGroup",
|
command: "rust-analyzer.applyActionGroup",
|
||||||
title: "",
|
title: "",
|
||||||
arguments: [items.map((item) => {
|
arguments: [items.map((item) => {
|
||||||
return { label: item.title, arguments: item.command!!.arguments!![0] };
|
return { label: item.title, arguments: item.command.arguments[0] };
|
||||||
})],
|
})],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ export function activateInlayHints(ctx: Ctx) {
|
||||||
maybeUpdater.onConfigChange, maybeUpdater, ctx.subscriptions
|
maybeUpdater.onConfigChange, maybeUpdater, ctx.subscriptions
|
||||||
);
|
);
|
||||||
|
|
||||||
maybeUpdater.onConfigChange();
|
maybeUpdater.onConfigChange().catch(console.error);
|
||||||
}
|
}
|
||||||
|
|
||||||
const typeHints = createHintStyle("type");
|
const typeHints = createHintStyle("type");
|
||||||
|
|
|
@ -66,7 +66,7 @@ export async function selectRunnable(ctx: Ctx, prevRunnable?: RunnableQuickPick,
|
||||||
quickPick.onDidHide(() => close()),
|
quickPick.onDidHide(() => close()),
|
||||||
quickPick.onDidAccept(() => close(quickPick.selectedItems[0])),
|
quickPick.onDidAccept(() => close(quickPick.selectedItems[0])),
|
||||||
quickPick.onDidTriggerButton((_button) => {
|
quickPick.onDidTriggerButton((_button) => {
|
||||||
(async () => await makeDebugConfig(ctx, quickPick.activeItems[0].runnable))();
|
makeDebugConfig(ctx, quickPick.activeItems[0].runnable).catch(console.error);
|
||||||
close();
|
close();
|
||||||
}),
|
}),
|
||||||
quickPick.onDidChangeActive((active) => {
|
quickPick.onDidChangeActive((active) => {
|
||||||
|
|
Loading…
Reference in a new issue