From a6b0c056dedb17fa2056e5186bd73af66c5e84e3 Mon Sep 17 00:00:00 2001 From: wxb1ank Date: Tue, 15 Jun 2021 14:03:34 -0400 Subject: Use `.then()` for Thenable --- editors/code/src/main.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editors/code/src') diff --git a/editors/code/src/main.ts b/editors/code/src/main.ts index 049d6cb8e..15f2151ad 100644 --- a/editors/code/src/main.ts +++ b/editors/code/src/main.ts @@ -158,9 +158,7 @@ export async function deactivate() { } async function bootstrap(config: Config, state: PersistentState): Promise { - try { - await vscode.workspace.fs.createDirectory(config.globalStorageUri); - } catch {} + await vscode.workspace.fs.createDirectory(config.globalStorageUri).then(); if (!config.currentExtensionIsNightly) { await state.updateNightlyReleaseId(undefined); -- cgit v1.2.3