From 028a4aa99f7f6829cab2d8968ef6b5976e9b3ee9 Mon Sep 17 00:00:00 2001 From: Veetaha Date: Mon, 9 Mar 2020 20:53:01 +0200 Subject: vscode-postrefactor: unhandled promise rejections shall not pass --- editors/code/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editors') diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index ee67c750c..4f46345d6 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -35,7 +35,7 @@ export async function activate(context: vscode.ExtensionContext) { const config = new Config(context); - vscode.workspace.onDidChangeConfiguration(() => ensureProperExtensionVersion(config)); + vscode.workspace.onDidChangeConfiguration(() => ensureProperExtensionVersion(config).catch(log.error)); // Don't await the user response here, otherwise we will block the lsp server bootstrap void ensureProperExtensionVersion(config); -- cgit v1.2.3