mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Use .then()
for Thenable
This commit is contained in:
parent
56e128a979
commit
a6b0c056de
@ -158,9 +158,7 @@ export async function deactivate() {
|
||||
}
|
||||
|
||||
async function bootstrap(config: Config, state: PersistentState): Promise<string> {
|
||||
try {
|
||||
await vscode.workspace.fs.createDirectory(config.globalStorageUri);
|
||||
} catch {}
|
||||
await vscode.workspace.fs.createDirectory(config.globalStorageUri).then();
|
||||
|
||||
if (!config.currentExtensionIsNightly) {
|
||||
await state.updateNightlyReleaseId(undefined);
|
||||
|
Loading…
Reference in New Issue
Block a user