vscode-postrefactor: unhandled promise rejections shall not pass

This commit is contained in:
Veetaha 2020-03-09 20:53:01 +02:00
parent b0bf495262
commit 028a4aa99f

View file

@ -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);