diff options
author | wxb1ank <[email protected]> | 2021-06-15 19:03:34 +0100 |
---|---|---|
committer | wxb1ank <[email protected]> | 2021-06-15 19:03:34 +0100 |
commit | a6b0c056dedb17fa2056e5186bd73af66c5e84e3 (patch) | |
tree | 8f75f32bc38744a89abb05f5c6c61e10331d3e5d /editors/code | |
parent | 56e128a979082de4ea58b7739049405fbc43f394 (diff) |
Use `.then()` for Thenable
Diffstat (limited to 'editors/code')
-rw-r--r-- | editors/code/src/main.ts | 4 |
1 files changed, 1 insertions, 3 deletions
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() { | |||
158 | } | 158 | } |
159 | 159 | ||
160 | async function bootstrap(config: Config, state: PersistentState): Promise<string> { | 160 | async function bootstrap(config: Config, state: PersistentState): Promise<string> { |
161 | try { | 161 | await vscode.workspace.fs.createDirectory(config.globalStorageUri).then(); |
162 | await vscode.workspace.fs.createDirectory(config.globalStorageUri); | ||
163 | } catch {} | ||
164 | 162 | ||
165 | if (!config.currentExtensionIsNightly) { | 163 | if (!config.currentExtensionIsNightly) { |
166 | await state.updateNightlyReleaseId(undefined); | 164 | await state.updateNightlyReleaseId(undefined); |